mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
memory: Add memory flag to mark physically continous memory
This commit is contained in:
parent
5a73d15c80
commit
221b6fc479
2 changed files with 12 additions and 0 deletions
|
@ -1321,6 +1321,7 @@ GST_MEMORY_IS_READONLY
|
|||
GST_MEMORY_IS_NO_SHARE
|
||||
GST_MEMORY_IS_ZERO_PADDED
|
||||
GST_MEMORY_IS_ZERO_PREFIXED
|
||||
GST_MEMORY_IS_PHYSICALLY_CONTINOUS
|
||||
|
||||
GstMemory
|
||||
|
||||
|
|
|
@ -45,6 +45,7 @@ typedef struct _GstAllocator GstAllocator;
|
|||
* made when this memory needs to be shared between buffers.
|
||||
* @GST_MEMORY_FLAG_ZERO_PREFIXED: the memory prefix is filled with 0 bytes
|
||||
* @GST_MEMORY_FLAG_ZERO_PADDED: the memory padding is filled with 0 bytes
|
||||
* @GST_MEMORY_FLAG_PHYSICALLY_CONTINOUS: the memory is physically continous. Since 1.2
|
||||
* @GST_MEMORY_FLAG_LAST: first flag that can be used for custom purposes
|
||||
*
|
||||
* Flags for wrapped memory.
|
||||
|
@ -54,6 +55,7 @@ typedef enum {
|
|||
GST_MEMORY_FLAG_NO_SHARE = (GST_MINI_OBJECT_FLAG_LAST << 0),
|
||||
GST_MEMORY_FLAG_ZERO_PREFIXED = (GST_MINI_OBJECT_FLAG_LAST << 1),
|
||||
GST_MEMORY_FLAG_ZERO_PADDED = (GST_MINI_OBJECT_FLAG_LAST << 2),
|
||||
GST_MEMORY_FLAG_PHYSICALLY_CONTINOUS = (GST_MINI_OBJECT_FLAG_LAST << 3),
|
||||
|
||||
GST_MEMORY_FLAG_LAST = (GST_MINI_OBJECT_FLAG_LAST << 16)
|
||||
} GstMemoryFlags;
|
||||
|
@ -111,6 +113,15 @@ typedef enum {
|
|||
*/
|
||||
#define GST_MEMORY_IS_ZERO_PADDED(mem) GST_MEMORY_FLAG_IS_SET(mem,GST_MEMORY_FLAG_ZERO_PADDED)
|
||||
|
||||
/**
|
||||
* GST_MEMORY_IS_PHYSICALLY_CONTINOUS:
|
||||
* @mem: a #GstMemory.
|
||||
*
|
||||
* Check if @mem is physically continous.
|
||||
*
|
||||
* Since: 1.2
|
||||
*/
|
||||
#define GST_MEMORY_IS_PHYSICALLY_CONTINOUS(mem) GST_MEMORY_FLAG_IS_SET(mem,GST_MEMORY_FLAG_PHYSICALLY_CONTINOUS)
|
||||
|
||||
/**
|
||||
* GstMemory:
|
||||
|
|
Loading…
Reference in a new issue