GstCuda.CudaPoolAllocator

g GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gst.Allocator Gst.Allocator GstCuda.CudaAllocator GstCuda.CudaAllocator Gst.Allocator->GstCuda.CudaAllocator Gst.Object->Gst.Allocator GstCuda.CudaPoolAllocator GstCuda.CudaPoolAllocator GstCuda.CudaAllocator->GstCuda.CudaPoolAllocator

Subclasses:

None

Methods

Inherited:

GstCuda.CudaAllocator (4), Gst.Allocator (5), Gst.Object (27), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (context, stream, info)

class

new_for_virtual_memory (context, stream, info, prop, granularity_flags)

acquire_memory ()

Virtual Methods

Inherited:

GstCuda.CudaAllocator (1), Gst.Allocator (2), 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)

Name

Type

Access

Description

context

GstCuda.CudaContext

r

info

GstVideo.VideoInfo

r

parent

GstCuda.CudaAllocator

r

stream

GstCuda.CudaStream

r

Class Details

class GstCuda.CudaPoolAllocator(**kwargs)
Bases:

GstCuda.CudaAllocator

Abstract:

No

Structure:

GstCuda.CudaPoolAllocatorClass

A GstCuda.CudaAllocator subclass for cuda memory pool

New in version 1.24.

classmethod new(context, stream, info)
Parameters:
Returns:

a new GstCuda.CudaPoolAllocator instance

Return type:

GstCuda.CudaPoolAllocator

Creates a new GstCuda.CudaPoolAllocator instance.

New in version 1.24.

classmethod new_for_virtual_memory(context, stream, info, prop, granularity_flags)
Parameters:
Returns:

a new GstCuda.CudaPoolAllocator instance

Return type:

GstCuda.CudaPoolAllocator

Creates a new GstCuda.CudaPoolAllocator instance for virtual memory allocation.

New in version 1.24.

acquire_memory()
Returns:

a Gst.FlowReturn such as Gst.FlowReturn.FLUSHING when the allocator is inactive.

memory:

a Gst.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 new Gst.Memory.

New in version 1.24.