Meta sequence number compare function. Can be used as GLib.CompareFunc or a GLib.CompareDataFunc.
a negative number if meta1 comes before meta2, 0 if both metas have an equal sequence number, or a positive integer if meta1 comes after meta2.
Gets seqnum for this meta.
Serialize meta into a format that can be stored or transmitted and later
deserialized by gst_meta_deserialize().
This is only supported for meta that implements Gst.MetaInfo.serialize_func,
false is returned otherwise.
Upon failure, data->data pointer could have been reallocated, but data->len
won't be modified. This is intended to be able to append multiple metas
into the same GLib.ByteArray.
Since serialization size is often the same for every buffer, caller may want to remember the size of previous data to preallocate the next.
Gst.ByteArrayInterface to append serialization data
true on success, false otherwise.
Same as gst_meta_serialize() but with a GLib.ByteArray instead of
Gst.ByteArrayInterface.
GLib.ByteArray to append serialization data
true on success, false otherwise.
Staticapi_When a element like tee decides the allocation, each downstream element may
fill different parameters and pass them to gst_query_add_allocation_meta().
In order to keep these parameters, a merge operation is needed. This
aggregate function can combine the parameters from params0 and param1, and
write the result back into aggregated_params.
the GType of the API for which the parameters are being aggregated.
This structure will be updated with the combined parameters from both params0 and params1.
a Gst.Structure containing the new parameters to be aggregated.
a Gst.Structure containing the new parameters to be aggregated.
Staticapi_an API
Staticapi_Check if api was registered with tag.
an API
the tag to check
Staticapi_Register and return a GType for the api and associate it with
tags.
an API to register
tags for api
Staticapi_This function sets the aggregator function for a specific API type.
the GObject.GType of the API for which the aggregator function is being set.
the aggregator function to be associated with the given API type.
StaticdeserializeRecreate a Gst.Meta from serialized data returned by
gst_meta_serialize() and add it to buffer.
Note that the meta must have been previously registered by calling one of
gst_*_meta_get_info () functions.
consumed is set to the number of bytes that can be skipped from data to
find the next meta serialization, if any. In case of parsing error that does
not allow to determine that size, consumed is set to 0.
Staticget_Staticregister_Register a new custom Gst.Meta implementation, backed by an opaque structure holding a Gst.Structure.
The registered info can be retrieved later with gst_meta_get_info() by using
name as the key.
The backing Gst.Structure can be retrieved with
gst_custom_meta_get_structure(), 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 Gst.Structure
will always be copied when the transform operation is copy, other operations
are discarded, copy regions are ignored.
the name of the Gst.Meta implementation
tags for api
Optionaltransform_func: CustomMetaTransformFunctionStaticregister_
The Gst.Meta structure should be included as the first member of a Gst.Buffer metadata structure. The structure defines the API of the metadata and should be accessible to all elements using the metadata.
A metadata API is registered with
gst_meta_api_type_register()which takes a name for the metadata API and some tags associated with the metadata. Withgst_meta_api_type_has_tag()one can check if a certain metadata API contains a given tag.Multiple implementations of a metadata API can be registered. To implement a metadata API,
gst_meta_register()should be used. This function takes all parameters needed to create, free and transform metadata along with the size of the metadata. The function returns a Gst.MetaInfo structure that contains the information for the implementation of the API.A specific implementation can be retrieved by name with
gst_meta_get_info().See Gst.Buffer for how the metadata can be added, retrieved and removed from buffers.