When the buffer will be released dmabuf allocator will close the fd. The memory is only mmapped on [gst.buffer.Buffer.map] request.
DmaBufAllocator.alloc
gst.memory.Memory alloc(gst.allocator.Allocator allocator, int fd, size_t size)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 |
Returns
a GstMemory based on allocator.