mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
docs: add copy and conv function to buffer2 draft
This commit is contained in:
parent
ac2f2c6122
commit
b181094798
1 changed files with 7 additions and 2 deletions
|
@ -148,9 +148,11 @@ GstBufferMetaInfo will point to more information about the metadata and looks li
|
|||
|
||||
GstMetaInitFunction init_func;
|
||||
GstMetaFreeFunction free_func;
|
||||
GstMetaCopyFunction copy_func;
|
||||
GstMetaSubFunction sub_func;
|
||||
GstMetaSerializeFunction serialize_func
|
||||
GstMetaDeserializeFunction deserialize_func
|
||||
GstMetaConvFunction conv_func;
|
||||
}
|
||||
|
||||
Tag will contain a GQuark of the metadata name. We will be able to refer to specific
|
||||
|
@ -167,6 +169,9 @@ We also add serialize and deserialize function for the metadata in case we need
|
|||
logic for reading and writing the metadata. This is needed for GDP payloading of the
|
||||
metadata.
|
||||
|
||||
We add a conv function to the Info structure that will be called when a buffer
|
||||
should be converted to an old-style buffer for backward compatibility.
|
||||
|
||||
The purpose of the separate MetaInfo is to not have to carry the free/init functions in
|
||||
each buffer instance but to define them globally. We still want quick access to the info
|
||||
so we need to make the buffer metadata point to the info.
|
||||
|
@ -310,8 +315,8 @@ Memory management
|
|||
MetaInfo associated with the entries. Usually, this function will be NULL.
|
||||
|
||||
|
||||
Subbufers
|
||||
---------
|
||||
Subbuffers
|
||||
----------
|
||||
|
||||
Subbuffers are a first class feature of the GstBuffer.
|
||||
|
||||
|
|
Loading…
Reference in a new issue