GstCuda.CudaPoolAllocator¶
- Subclasses:
None
Methods¶
- Inherited:
GstCuda.CudaAllocator (4), Gst.Allocator (5), Gst.Object (27), GObject.Object (37)
- Structs:
class |
|
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.CudaAllocatorsubclass for cuda memory poolNew in version 1.24.
- classmethod new(context, stream, info)¶
- Parameters:
context (
GstCuda.CudaContext) – aGstCuda.CudaContextstream (
GstCuda.CudaStreamorNone) – aGstCuda.CudaStreaminfo (
GstVideo.VideoInfo) – aGstVideo.VideoInfo
- Returns:
a new
GstCuda.CudaPoolAllocatorinstance- Return type:
Creates a new
GstCuda.CudaPoolAllocatorinstance.New in version 1.24.
- classmethod new_for_virtual_memory(context, stream, info, prop, granularity_flags)¶
- Parameters:
context (
GstCuda.CudaContext) – aGstCuda.CudaContextstream (
GstCuda.CudaStreamorNone) – aGstCuda.CudaStreaminfo (
GstVideo.VideoInfo) – aGstVideo.VideoInfoprop (
CudaGst.memAllocationProp) –granularity_flags (
CudaGst.memAllocationGranularity_flags) –
- Returns:
a new
GstCuda.CudaPoolAllocatorinstance- Return type:
Creates a new
GstCuda.CudaPoolAllocatorinstance for virtual memory allocation.New in version 1.24.
- classmethod new_full(context, stream, info, config)¶
- Parameters:
context (
GstCuda.CudaContext) – aGstCuda.CudaContextstream (
GstCuda.CudaStreamorNone) – aGstCuda.CudaStreaminfo (
GstVideo.VideoInfo) – aGstVideo.VideoInfoconfig (
Gst.StructureorNone) – aGst.Structurewith configuration options
- Returns:
a new
GstCuda.CudaPoolAllocatorinstance- Return type:
Creates a new
GstCuda.CudaPoolAllocatorinstance with given configNew in version 1.26.
- acquire_memory()¶
- Returns:
a
Gst.FlowReturnsuch asGst.FlowReturn.FLUSHINGwhen the allocator is inactive.- memory:
- Return type:
(
Gst.FlowReturn, memory:Gst.Memory)
Acquires a
Gst.Memoryfrom self. memory should point to a memory location that can hold a pointer to the newGst.Memory.New in version 1.24.