GstCuda.CudaPoolAllocator¶
- Subclasses:
None
Methods¶
- Inherited:
GstCuda.CudaAllocator (4), Gst.Allocator (5), Gst.Object (27), GObject.Object (37)
- Structs:
class |
|
class |
|
Virtual Methods¶
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
context |
r |
||
info |
r |
||
parent |
r |
||
stream |
r |
Class Details¶
- class GstCuda.CudaPoolAllocator(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A
GstCuda.CudaAllocator
subclass for cuda memory poolNew in version 1.24.
- classmethod new(context, stream, info)¶
- Parameters:
context (
GstCuda.CudaContext
) – aGstCuda.CudaContext
stream (
GstCuda.CudaStream
orNone
) – aGstCuda.CudaStream
info (
GstVideo.VideoInfo
) – aGstVideo.VideoInfo
- Returns:
a new
GstCuda.CudaPoolAllocator
instance- Return type:
Creates a new
GstCuda.CudaPoolAllocator
instance.New in version 1.24.
- classmethod new_for_virtual_memory(context, stream, info, prop, granularity_flags)¶
- Parameters:
context (
GstCuda.CudaContext
) – aGstCuda.CudaContext
stream (
GstCuda.CudaStream
orNone
) – aGstCuda.CudaStream
info (
GstVideo.VideoInfo
) – aGstVideo.VideoInfo
prop (
CudaGst.memAllocationProp
) –granularity_flags (
CudaGst.memAllocationGranularity_flags
) –
- Returns:
a new
GstCuda.CudaPoolAllocator
instance- Return type:
Creates a new
GstCuda.CudaPoolAllocator
instance for virtual memory allocation.New in version 1.24.
- acquire_memory()¶
- Returns:
a
Gst.FlowReturn
such asGst.FlowReturn.FLUSHING
when the allocator is inactive.- memory:
- Return type:
(
Gst.FlowReturn
, memory:Gst.Memory
)
Acquires a
Gst.Memory
from self. memory should point to a memory location that can hold a pointer to the newGst.Memory
.New in version 1.24.