FdAllocator

Base class for allocators with fd-backed memory

Constructors

this
this()

Return a new fd allocator.

Members

Static functions

alloc
gst.memory.Memory alloc(gst.allocator.Allocator allocator, int fd, size_t size, gstallocators.types.FdMemoryFlags flags)

Return a gst.memory.Memory that wraps a generic file descriptor.

Inherited Members

From Allocator

find
gst.allocator.Allocator find(string name)

Find a previously registered allocator with name. When name is null, the default allocator will be returned.

register
void register(string name, gst.allocator.Allocator allocator)

Registers the memory allocator with name.

alloc
gst.memory.Memory alloc(size_t size, gst.allocation_params.AllocationParams params)

Use allocator to allocate a new memory block with memory that is at least size big.

setDefault
void setDefault()

Set the default allocator.