Meta.registerCustom

Register a new custom #GstMeta implementation, backed by an opaque structure holding a #GstStructure.

The registered info can be retrieved later with gst.meta.Meta.getInfo by using name as the key.

The backing #GstStructure can be retrieved with gst.custom_meta.CustomMeta.getStructure, its mutability is conditioned by the writability of the buffer the meta is attached to.

When transform_func is null, the meta and its backing #GstStructure will always be copied when the transform operation is copy, other operations are discarded, copy regions are ignored.

class Meta
static
registerCustom

Parameters

name string

the name of the #GstMeta implementation

tags string[]

tags for api

transformFunc gst.types.CustomMetaTransformFunction

a #GstMetaTransformFunction

Return Value

Type: gst.meta_info.MetaInfo

a #GstMetaInfo that can be used to access metadata.