GstAllocators.DmaBufAllocator¶
- Subclasses:
None
Methods¶
- Inherited:
GstAllocators.FdAllocator (2), Gst.Allocator (5), Gst.Object (27), GObject.Object (37)
- Structs:
class |
|
class |
|
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GstAllocators.DmaBufAllocator(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Base class for allocators with dmabuf-backed memory
New in version 1.12.
- classmethod alloc(allocator, fd, size)[source]¶
- Parameters:
allocator (
Gst.Allocator
) – allocator to be used for this memoryfd (
int
) – dmabuf file descriptorsize (
int
) – memory size
- Returns:
a
Gst.Memory
based on allocator. When the buffer will be released dmabuf allocator will close the fd. The memory is only mmapped onGst.Buffer.map
() request.- Return type:
Gst.Memory
orNone
Return a
Gst.Memory
that wraps a dmabuf file descriptor.New in version 1.2.
- classmethod alloc_with_flags(allocator, fd, size, flags)[source]¶
- Parameters:
allocator (
Gst.Allocator
) – allocator to be used for this memoryfd (
int
) – dmabuf file descriptorsize (
int
) – memory sizeflags (
GstAllocators.FdMemoryFlags
) – extraGstAllocators.FdMemoryFlags
- Returns:
a
Gst.Memory
based on allocator.When the buffer will be released the allocator will close the fd unless the
GstAllocators.FdMemoryFlags.DONT_CLOSE
flag is specified. The memory is only mmapped on gst_buffer_mmap() request.- Return type:
Gst.Memory
orNone
Return a
Gst.Memory
that wraps a dmabuf file descriptor.New in version 1.16.
- classmethod new()[source]¶
- Returns:
a new dmabuf allocator. Use
Gst.Object.unref
() to release the allocator after usage- Return type:
Return a new dmabuf allocator.
New in version 1.2.