gstallocators.c.types

C types for gstallocators1 library

Types 11

enumGstFdMemoryFlags : uint

Various flags to control the operation of the fd backed memory.

None = 0no flag
KeepMapped = 1once the memory is mapped, keep it mapped until the memory is destroyed.
MapPrivate = 2do a private mapping instead of the default shared mapping.
DontClose = 4don't close the file descriptor when the memory is freed. Since: 1.10

Private intance object for #GstDRMDumbAllocator.

Fields
GstAllocatorClass parentClassParent Class.

Base class for allocators with dmabuf-backed memory

Fields
void *[4] GstReserved
Fields
void *[4] GstReserved

Base class for allocators with fd-backed memory

Fields
Fields
GstAllocatorClass parentClass

Marker interface for allocators with physical address backed memory

Fields
GTypeInterface parentIface
size_t function(GstPhysMemoryAllocator * allocator, GstMemory * mem) getPhysAddrImplementations shall return the physicall memory address that is backing the provided memory, or 0 if none.

This is a subclass of #GstFdAllocator that implements the [gst.allocator.Allocator.alloc] method using memfd_create() when available, POSIX shm_open() otherwise. Platforms not supporting any of those (Windows) will always return null.

Note that allocating new shared memories has a significant performance cost, it is thus recommended to keep a pool of pre-allocated #GstMemory, using #GstBufferPool. For that reason, this allocator has the [gst.types.AllocatorFlags.NoCopy] flag set.

Fields
GstFdAllocatorClass parentClassParent Class.