GstVa.VaPool¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class GstVa.VaPool(**kwargs)¶
- Bases:
- Abstract:
No
GstVaPool is a buffer pool for VA allocators.
New in version 1.22.
- classmethod get_buffer_size(pool)¶
- Parameters:
pool (
Gst.BufferPool
) – aGst.BufferPool
- Returns:
whether the surface size was retrieved.
- size:
the declared surface size
- Return type:
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:
New in version 1.22.
- classmethod new_with_config(caps, min_buffers, max_buffers, usage_hint, use_derived, allocator, alloc_params)¶
- Parameters:
caps (
Gst.Caps
) – theGst.Caps
of the buffers handled by the new pool.min_buffers (
int
) – minimum number of frames to create.max_buffers (
int
) – maximum number of frames to create.usage_hint (
int
) – VA usage hintuse_derived (
GstVa.VaFeature
) – aGstVa.VaFeature
for derived mapping (only used when VA allocator).allocator (
Gst.Allocator
) – the VA allocator to use.alloc_params (
Gst.AllocationParams
) –Gst.AllocationParams
to use.
- Returns:
a new
Gst.BufferPool
that handles VASurfacesID-backed buffers. If the pool cannot be configured correctly,None
is returned.- Return type:
New in version 1.22.
- classmethod requires_video_meta(pool)¶
- Parameters:
pool (
Gst.BufferPool
) – theGst.BufferPool
- Return type:
Retuns:
True
if pool always addGstVideo.VideoMeta
to its buffers. Otherwise,False
.New in version 1.22.