Gst.Meta¶
Fields¶
| Name | Type | Access | Description | 
|---|---|---|---|
| flags | Gst.MetaFlags | r/w | extra flags for the metadata | 
| info | Gst.MetaInfo | r/w | pointer to the Gst.MetaInfo | 
Methods¶
| class | api_type_get_tags(api) | 
| class | api_type_has_tag(api, tag) | 
| class | api_type_register(api, tags) | 
| class | get_info(impl) | 
| class | register(api, impl, size, init_func, free_func, transform_func) | 
| compare_seqnum(meta2) | |
| get_seqnum() | 
Details¶
- 
class Gst.Meta¶
- The - Gst.Metastructure should be included as the first member of a- Gst.Buffermetadata 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. With- Gst.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.MetaInfostructure 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.Bufferfor how the metadata can be added, retrieved and removed from buffers.- Parameters: - api ( - GObject.GType) – an API- Returns: - an array of tags as strings. - Return type: - [ - str]- New in version 1.2. 
 - 
classmethod api_type_has_tag(api, tag)[source]¶
- Parameters: - api (GObject.GType) – an API
- tag (int) – the tag to check
 - Returns: - Trueif api was registered with tag.- Return type: - Check if api was registered with tag. 
- api (
 - 
classmethod api_type_register(api, tags)[source]¶
- Parameters: - Returns: - a unique - GObject.GTypefor api.- Return type: - Register and return a - GObject.GTypefor the api and associate it with tags.
 - 
classmethod get_info(impl)[source]¶
- Parameters: - impl ( - str) – the name- Returns: - a - Gst.MetaInfowith impl, or- Nonewhen no such metainfo exists.- Return type: - Gst.MetaInfoor- None- Lookup a previously registered meta info structure by its implementation name impl. 
 - 
classmethod register(api, impl, size, init_func, free_func, transform_func)[source]¶
- Parameters: - api (GObject.GType) – the type of theGst.MetaAPI
- impl (str) – the name of theGst.Metaimplementation
- size (int) – the size of theGst.Metastructure
- init_func (Gst.MetaInitFunction) – aGst.MetaInitFunction
- free_func (Gst.MetaFreeFunction) – aGst.MetaFreeFunction
- transform_func (Gst.MetaTransformFunction) – aGst.MetaTransformFunction
 - Returns: - a - Gst.MetaInfothat can be used to access metadata.- Return type: - Gst.MetaInfoor- None- Register a new - Gst.Metaimplementation.- The same info can be retrieved later with - Gst.Meta.get_info() by using impl as the key.
- api (
 - 
compare_seqnum(meta2)[source]¶
- Parameters: - meta2 ( - Gst.Meta) – a- Gst.Meta- Returns: - a negative number if self comes before meta2, 0 if both metas have an equal sequence number, or a positive integer if self comes after meta2. - Return type: - int- Meta sequence number compare function. Can be used as - GLib.CompareFuncor a- GLib.CompareDataFunc.- New in version 1.16.