mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:36:20 +00:00
porting: hopefully clarify a little
This commit is contained in:
parent
700be18f11
commit
21851c0e04
1 changed files with 5 additions and 4 deletions
|
@ -233,16 +233,17 @@ CHANGES
|
||||||
a GstBuffer that can then be retrieved with gst_buffer_peek_memory().
|
a GstBuffer that can then be retrieved with gst_buffer_peek_memory().
|
||||||
|
|
||||||
GST_BUFFER_DATA(), GST_BUFFER_MALLOCDATA(), GST_BUFFER_FREE_FUNC() and
|
GST_BUFFER_DATA(), GST_BUFFER_MALLOCDATA(), GST_BUFFER_FREE_FUNC() and
|
||||||
GST_BUFFER_SIZE() are gone, along with the fields in GstBuffer. Use the
|
GST_BUFFER_SIZE() are gone, along with the fields in GstBuffer.
|
||||||
memory API to get access to the buffer data. GST_BUFFER_SIZE() can be
|
|
||||||
replaced with gst_buffer_get_size() but if also access to the data is
|
|
||||||
required, gst_buffer_map() can return both the size and data in one go.
|
|
||||||
|
|
||||||
The most common way to access all the data in a buffer is by using
|
The most common way to access all the data in a buffer is by using
|
||||||
gst_buffer_map() and gst_buffer_unmap(). These calls require you to specify
|
gst_buffer_map() and gst_buffer_unmap(). These calls require you to specify
|
||||||
the access mode required to the data and will automatically merge and return
|
the access mode required to the data and will automatically merge and return
|
||||||
a writable copy of the data.
|
a writable copy of the data.
|
||||||
|
|
||||||
|
GST_BUFFER_SIZE() can be replaced with gst_buffer_get_size() but if also
|
||||||
|
access to the data is required, gst_buffer_map() can return both the size
|
||||||
|
and data in one go.
|
||||||
|
|
||||||
The buffer must be writable (gst_buffer_is_writable()) in order to modify
|
The buffer must be writable (gst_buffer_is_writable()) in order to modify
|
||||||
the fields, metadata or buffer memory. gst_buffer_make_writable() will not
|
the fields, metadata or buffer memory. gst_buffer_make_writable() will not
|
||||||
automatically make a writable copy of the memory but will instead increase
|
automatically make a writable copy of the memory but will instead increase
|
||||||
|
|
Loading…
Reference in a new issue