| Top |  |  |  |  | 
GstMemory * gst_fd_allocator_alloc (GstAllocator *allocator,gint fd,gsize size,GstFdMemoryFlags flags);
Return a GstMemory that wraps a generic file descriptor.
| allocator | allocator to be used for this memory | |
| fd | file descriptor | |
| size | memory size | |
| flags | extra GstFdMemoryFlags | 
 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. 
[transfer full]
Since: 1.6
GstAllocator *
gst_fd_allocator_new (void);
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. 
[transfer full]
Since: 1.6
gint
gst_fd_memory_get_fd (GstMemory *mem);
Get the fd from mem
. Call gst_is_fd_memory() to check if mem
 has
an fd.
Since: 1.6