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.
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.