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.BufferPoolfor 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.Capsof 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.VaFeaturefor derived mapping (only used when VA allocator).allocator (
Gst.Allocator) – the VA allocator to use.alloc_params (
Gst.AllocationParams) –Gst.AllocationParamsto use.
- Returns:
a new
Gst.BufferPoolthat handles VASurfacesID-backed buffers. If the pool cannot be configured correctly,Noneis returned.- Return type:
New in version 1.22.
- classmethod requires_video_meta(pool)¶
- Parameters:
pool (
Gst.BufferPool) – theGst.BufferPool- Return type:
Retuns:
Trueif pool always addGstVideo.VideoMetato its buffers. Otherwise,False.New in version 1.22.