GstAllocators.FdAllocator¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class GstAllocators.FdAllocator(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Base class for allocators with fd-backed memory
New in version 1.6.
- classmethod alloc(allocator, fd, size, flags)[source]¶
- Parameters:
allocator (
Gst.Allocator) – allocator to be used for this memoryfd (
int) – file descriptorsize (
int) – memory sizeflags (
GstAllocators.FdMemoryFlags) – extraGstAllocators.FdMemoryFlags
- Returns:
a
Gst.Memorybased on allocator. When the buffer will be released the allocator will close the fd unless theGstAllocators.FdMemoryFlags.DONT_CLOSEflag is specified. The memory is only mmapped onGst.Buffer.map() request.- Return type:
Gst.MemoryorNone
Return a
Gst.Memorythat wraps a generic file descriptor.New in version 1.6.
- classmethod new()[source]¶
- Returns:
a new fd allocator. Use
Gst.Object.unref() to release the allocator after usage- Return type:
Return a new fd allocator.
New in version 1.6.