Return a %GstMemory that wraps a dmabuf file descriptor.
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_mmap() request.
allocator to be used for this memory
dmabuf file descriptor
memory size
Return a new dmabuf allocator.
a new dmabuf allocator, or NULL if the allocator isn't available. Use gst_object_unref() to release the allocator after usage
Return the file descriptor associated with @mem.
the file descriptor associated with the memory, or -1
the memory to get the file descriptor
Check if @mem is dmabuf memory.
%TRUE if @mem is dmabuf memory, otherwise %FALSE
the memory to be check