Top | ![]() |
![]() |
![]() |
![]() |
GstMemory * gst_dmabuf_allocator_alloc (GstAllocator *allocator
,gint fd
,gsize size
);
Return a GstMemory
that wraps a dmabuf file descriptor.
allocator |
allocator to be used for this memory. |
[allow-none] |
fd |
dmabuf file descriptor |
|
size |
memory size |
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.
[transfer full]
Since 1.2
gint
gst_dmabuf_memory_get_fd (GstMemory *mem
);
Return the file descriptor associated with mem
.
Since 1.2