DmaBufAllocator.alloc

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

class DmaBufAllocator
static
alloc

Parameters

allocator gst.allocator.Allocator

allocator to be used for this memory

fd int

dmabuf file descriptor

size size_t

memory size

Return Value

Type: gst.memory.Memory

a GstMemory based on allocator. When the buffer will be released dmabuf allocator will close the fd. The memory is only mmapped on gst.buffer.Buffer.map request.