mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-05 10:12:20 +00:00
buffer: rework flags a little
Reorder buffer flags and add some new ones. Remove the media specific flags, we can now easily do this with the FLAG_LAST flag because we don't extend from GstBuffer anymore.
This commit is contained in:
parent
b5ef693e88
commit
fa8f9b50ea
1 changed files with 29 additions and 22 deletions
|
@ -159,35 +159,42 @@ typedef struct _GstBufferPool GstBufferPool;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GstBufferFlags:
|
* GstBufferFlags:
|
||||||
* @GST_BUFFER_FLAG_LIVE: the buffer is live data and should be discarded in
|
* @GST_BUFFER_FLAG_LIVE: the buffer is live data and should be discarded in
|
||||||
* the PAUSED state.
|
* the PAUSED state.
|
||||||
* @GST_BUFFER_FLAG_DISCONT: the buffer marks a discontinuity in the stream.
|
* @GST_BUFFER_FLAG_DISCONT: the buffer marks a data discontinuity in the stream.
|
||||||
* This typically occurs after a seek or a dropped buffer
|
* This typically occurs after a seek or a dropped buffer
|
||||||
* from a live or network source.
|
* from a live or network source.
|
||||||
* @GST_BUFFER_FLAG_IN_CAPS: the buffer has been added as a field in a #GstCaps.
|
* @GST_BUFFER_FLAG_RESYNC: the buffer timestamp might have a discontinuity
|
||||||
* @GST_BUFFER_FLAG_GAP: the buffer has been created to fill a gap in the
|
* and this buffer is a good point to resynchronize.
|
||||||
* stream and contains media neutral data (elements can
|
* @GST_BUFFER_FLAG_CORRUPTED: the buffer data is corrupted
|
||||||
* switch to optimized code path that ignores the buffer
|
* @GST_BUFFER_FLAG_MARKER: the buffer contains a media specific marker. for
|
||||||
* content).
|
* video this is typically the end of a frame boundary, for audio
|
||||||
|
* this is usually the end of a talkspurt.
|
||||||
|
* @GST_BUFFER_FLAG_HEADER: the buffer contains header information that is
|
||||||
|
* needed to decode the following data
|
||||||
|
* @GST_BUFFER_FLAG_GAP: the buffer has been created to fill a gap in the
|
||||||
|
* stream and contains media neutral data (elements can
|
||||||
|
* switch to optimized code path that ignores the buffer
|
||||||
|
* content).
|
||||||
* @GST_BUFFER_FLAG_DELTA_UNIT: this unit cannot be decoded independently.
|
* @GST_BUFFER_FLAG_DELTA_UNIT: this unit cannot be decoded independently.
|
||||||
* @GST_BUFFER_FLAG_MEDIA1: a flag whose use is specific to the caps of the buffer. Since: 0.10.23.
|
* @GST_BUFFER_FLAG_IN_CAPS: the buffer has been added as a field in a #GstCaps.
|
||||||
* @GST_BUFFER_FLAG_MEDIA2: a flag whose use is specific to the caps of the buffer. Since: 0.10.23.
|
*
|
||||||
* @GST_BUFFER_FLAG_MEDIA3: a flag whose use is specific to the caps of the buffer. Since: 0.10.23.
|
* @GST_BUFFER_FLAG_LAST: additional media specific flags can be added starting from
|
||||||
* @GST_BUFFER_FLAG_MEDIA4: a flag whose use is specific to the caps of the buffer. Since: 0.10.33.
|
* this flag.
|
||||||
* @GST_BUFFER_FLAG_LAST: additional flags can be added starting from this flag.
|
|
||||||
*
|
*
|
||||||
* A set of buffer flags used to describe properties of a #GstBuffer.
|
* A set of buffer flags used to describe properties of a #GstBuffer.
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
GST_BUFFER_FLAG_LIVE = (GST_MINI_OBJECT_FLAG_LAST << 0),
|
GST_BUFFER_FLAG_LIVE = (GST_MINI_OBJECT_FLAG_LAST << 0),
|
||||||
GST_BUFFER_FLAG_DISCONT = (GST_MINI_OBJECT_FLAG_LAST << 1),
|
GST_BUFFER_FLAG_DISCONT = (GST_MINI_OBJECT_FLAG_LAST << 1),
|
||||||
GST_BUFFER_FLAG_IN_CAPS = (GST_MINI_OBJECT_FLAG_LAST << 2),
|
GST_BUFFER_FLAG_RESYNC = (GST_MINI_OBJECT_FLAG_LAST << 2),
|
||||||
GST_BUFFER_FLAG_GAP = (GST_MINI_OBJECT_FLAG_LAST << 3),
|
GST_BUFFER_FLAG_CORRUPTED = (GST_MINI_OBJECT_FLAG_LAST << 3),
|
||||||
GST_BUFFER_FLAG_DELTA_UNIT = (GST_MINI_OBJECT_FLAG_LAST << 4),
|
GST_BUFFER_FLAG_MARKER = (GST_MINI_OBJECT_FLAG_LAST << 4),
|
||||||
GST_BUFFER_FLAG_MEDIA1 = (GST_MINI_OBJECT_FLAG_LAST << 5),
|
GST_BUFFER_FLAG_HEADER = (GST_MINI_OBJECT_FLAG_LAST << 5),
|
||||||
GST_BUFFER_FLAG_MEDIA2 = (GST_MINI_OBJECT_FLAG_LAST << 6),
|
GST_BUFFER_FLAG_GAP = (GST_MINI_OBJECT_FLAG_LAST << 6),
|
||||||
GST_BUFFER_FLAG_MEDIA3 = (GST_MINI_OBJECT_FLAG_LAST << 7),
|
GST_BUFFER_FLAG_DELTA_UNIT = (GST_MINI_OBJECT_FLAG_LAST << 7),
|
||||||
GST_BUFFER_FLAG_MEDIA4 = (GST_MINI_OBJECT_FLAG_LAST << 8),
|
GST_BUFFER_FLAG_IN_CAPS = (GST_MINI_OBJECT_FLAG_LAST << 8),
|
||||||
|
|
||||||
GST_BUFFER_FLAG_LAST = (GST_MINI_OBJECT_FLAG_LAST << 16)
|
GST_BUFFER_FLAG_LAST = (GST_MINI_OBJECT_FLAG_LAST << 16)
|
||||||
} GstBufferFlags;
|
} GstBufferFlags;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue