Meta.register

Register a new #GstMeta implementation.

The same @info can be retrieved later with gst_meta_get_info() by using @impl as the key.

struct Meta
static
GstMetaInfo*
register
(,
string impl
,
size_t size
,
GstMetaInitFunction initFunc
,
GstMetaFreeFunction freeFunc
,
GstMetaTransformFunction transformFunc
)

Parameters

api GType

the type of the #GstMeta API

impl string

the name of the #GstMeta implementation

size size_t

the size of the #GstMeta structure

initFunc GstMetaInitFunction

a #GstMetaInitFunction

freeFunc GstMetaFreeFunction

a #GstMetaFreeFunction

transformFunc GstMetaTransformFunction

a #GstMetaTransformFunction

Return Value

Type: GstMetaInfo*

a #GstMetaInfo that can be used to access metadata.

Meta