mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-16 19:25:18 +00:00
memory: make subclasses add other flags
Add GST_MAP_FLAG_LAST so that implementations can add additional flags when mapping memory.
This commit is contained in:
parent
33a566bcc5
commit
079a86b78b
1 changed files with 6 additions and 3 deletions
|
@ -52,7 +52,7 @@ typedef enum {
|
|||
GST_MEMORY_FLAG_READONLY = (1 << 0),
|
||||
GST_MEMORY_FLAG_NO_SHARE = (1 << 1),
|
||||
|
||||
GST_MEMORY_FLAG_LAST = (1 << 24)
|
||||
GST_MEMORY_FLAG_LAST = (1 << 16)
|
||||
} GstMemoryFlags;
|
||||
|
||||
/**
|
||||
|
@ -87,12 +87,15 @@ struct _GstMemory {
|
|||
* GstMapFlags:
|
||||
* @GST_MAP_READ: map for read access
|
||||
* @GST_MAP_WRITE: map for write access
|
||||
* @GST_MAP_FLAG_LAST: first flag that can be used for custom purposes
|
||||
*
|
||||
* Flags used when mapping memory
|
||||
*/
|
||||
typedef enum {
|
||||
GST_MAP_READ = (1 << 0),
|
||||
GST_MAP_WRITE = (1 << 1),
|
||||
GST_MAP_READ = (1 << 0),
|
||||
GST_MAP_WRITE = (1 << 1),
|
||||
|
||||
GST_MAP_FLAG_LAST = (1 << 16)
|
||||
} GstMapFlags;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue