GstAllocators.UdmabufAllocator

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 GstAllocators.DmaBufAllocator GstAllocators.DmaBufAllocator GstAllocators.UdmabufAllocator GstAllocators.UdmabufAllocator GstAllocators.DmaBufAllocator->GstAllocators.UdmabufAllocator GstAllocators.FdAllocator->GstAllocators.DmaBufAllocator

Subclasses:

None

Methods

Inherited:

GstAllocators.DmaBufAllocator (3), GstAllocators.FdAllocator (3), Gst.Allocator (5), Gst.Object (29), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

get ()

class

init_once ()

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)

Class Details

class GstAllocators.UdmabufAllocator(**kwargs)
Bases:

GstAllocators.DmaBufAllocator

Abstract:

No

Structure:

GstAllocators.UdmabufAllocatorClass

This is a subclass of GstAllocators.DmaBufAllocator that implements the Gst.Allocator.alloc() method using memfd_create() and UDMABUF_CREATE. Platforms not supporting that (most non-Linux) will always return None.

New in version 1.28.

classmethod get()[source]
Returns:

a Gst.Allocator or None if GstAllocators.UdmabufAllocator.init_once() did not register the allocator.

Return type:

Gst.Allocator or None

Get the GstAllocators.UdmabufAllocator singleton if available.

New in version 1.28.

classmethod init_once()[source]

Register a GstAllocators.UdmabufAllocator using Gst.Allocator.register() with the name GstAllocators.ALLOCATOR_UDMABUF. This is no-op after the first call.

New in version 1.28.