Base class for allocators with fd-backed memory Return a new fd allocator. a new fd allocator, or NULL if the allocator isn't available. Use gst_object_unref() to release the allocator after usage Return a %GstMemory that wraps a generic file descriptor. a GstMemory based on @allocator. When the buffer will be released the allocator will close the @fd. The memory is only mmapped on gst_buffer_mmap() request. allocator to be used for this memory file descriptor memory size extra #GstFdMemoryFlags Various flags to control the operation of the fd backed memory. no flag once the memory is mapped, keep it mapped until the memory is destroyed. do a private mapping instead of the default shared mapping. 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 file descriptor is still owned by the GstMemory. Use dup to take a copy if you intend to use it beyond the lifetime of this GstMemory. the memory to get the file descriptor Get the fd from @mem. Call gst_is_fd_memory() to check if @mem has an fd. the fd of @mem or -1 when there is no fd on @mem #GstMemory Check if @mem is dmabuf memory. %TRUE if @mem is dmabuf memory, otherwise %FALSE the memory to be check Check if @mem is memory backed by an fd %TRUE when @mem has an fd that can be retrieved with gst_fd_memory_get_fd(). #GstMemory