alloc


Description:

[ Version ( since = "1.2" ) ]
public static Memory? alloc (Allocator allocator, int fd, size_t size)

Return a 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. When the buffer will be released dmabuf allocator will close the fd. The memory is only mmapped on map request.