alloc_with_flags


Description:

[ Version ( since = "1.16" ) ]
public static Memory? alloc_with_flags (Allocator allocator, int fd, size_t size, FdMemoryFlags flags)

Return a gstmemory that wraps a dmabuf file descriptor.

Parameters:

allocator

allocator to be used for this memory

fd

dmabuf file descriptor

size

memory size

flags

extra FdMemoryFlags

Returns:

a GstMemory based on allocator.

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.