When the buffer will be released the allocator will close the fd unless the GST_FD_MEMORY_FLAG_DONT_CLOSE flag is specified. The memory is only mmapped on gst_buffer_mmap() request.
DmaBufAllocator.allocWithFlags
gst.memory.Memory allocWithFlags(gst.allocator.Allocator allocator, int fd, size_t size, gstallocators.types.FdMemoryFlags flags)Return a [gst.memory.Memory] that wraps a dmabuf file descriptor.
Parameters
allocator | allocator to be used for this memory |
fd | dmabuf file descriptor |
size | memory size |
flags | extra #GstFdMemoryFlags |
Returns
a GstMemory based on allocator.