GstAllocators.FdAllocator

g GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gst.Allocator Gst.Allocator GstAllocators.FdAllocator GstAllocators.FdAllocator Gst.Allocator->GstAllocators.FdAllocator Gst.Object->Gst.Allocator

Subclasses:

GstAllocators.DmaBufAllocator

Methods

Inherited:

Gst.Allocator (5), Gst.Object (27), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

alloc (allocator, fd, size, flags)

class

new ()

Virtual Methods

Inherited:

Gst.Allocator (2), Gst.Object (1), GObject.Object (7)

Properties

Inherited:

Gst.Object (2)

Signals

Inherited:

Gst.Object (1), GObject.Object (1)

Fields

Inherited:

Gst.Object (1), GObject.Object (1)

Name

Type

Access

Description

parent

Gst.Allocator

r

Class Details

class GstAllocators.FdAllocator(**kwargs)
Bases:

Gst.Allocator

Abstract:

No

Structure:

GstAllocators.FdAllocatorClass

Base class for allocators with fd-backed memory

New in version 1.6.

classmethod alloc(allocator, fd, size, flags)
Parameters:
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.map() request.

Return type:

Gst.Memory or None

Return a Gst.Memory that wraps a generic file descriptor.

New in version 1.6.

classmethod new()
Returns:

a new fd allocator. Use Gst.Object.unref() to release the allocator after usage

Return type:

Gst.Allocator

Return a new fd allocator.

New in version 1.6.