GstVa.VaPool

g GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gst.BufferPool Gst.BufferPool GstVa.VaPool GstVa.VaPool Gst.BufferPool->GstVa.VaPool Gst.Object->Gst.BufferPool

Subclasses:

None

Methods

Inherited:

Gst.BufferPool (19), Gst.Object (27), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

get_buffer_size (pool)

class

new ()

class

new_with_config (caps, min_buffers, max_buffers, usage_hint, use_derived, allocator, alloc_params)

class

requires_video_meta (pool)

Virtual Methods

Inherited:

Gst.BufferPool (11), 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 GstVa.VaPool(**kwargs)
Bases:

Gst.BufferPool

Abstract:

No

GstVaPool is a buffer pool for VA allocators.

New in version 1.22.

classmethod get_buffer_size(pool)
Parameters:

pool (Gst.BufferPool) – a Gst.BufferPool

Returns:

whether the surface size was retrieved.

size:

the declared surface size

Return type:

(bool, size: int)

Helper function to retrieve the VA surface size provided by pool.

New in version 1.24.

classmethod new()
Returns:

A new Gst.BufferPool for VA allocators.

Return type:

Gst.BufferPool

New in version 1.22.

classmethod new_with_config(caps, min_buffers, max_buffers, usage_hint, use_derived, allocator, alloc_params)
Parameters:
Returns:

a new Gst.BufferPool that handles VASurfacesID-backed buffers. If the pool cannot be configured correctly, None is returned.

Return type:

Gst.BufferPool

New in version 1.22.

classmethod requires_video_meta(pool)
Parameters:

pool (Gst.BufferPool) – the Gst.BufferPool

Return type:

bool

Retuns: True if pool always add GstVideo.VideoMeta to its buffers. Otherwise, False.

New in version 1.22.