GstGL.GLBaseMemory

Fields

Name

Type

Access

Description

alloc_data

object

r

alloc_size

int

r

context

GstGL.GLContext

r/w

the GstGL.GLContext to use for GL operations

data

object

r/w

gl_map_count

int

r/w

lock

GLib.Mutex

r/w

map_count

int

r/w

map_flags

Gst.MapFlags

r/w

mem

Gst.Memory

r/w

the parent object

notify

GLib.DestroyNotify

r

query

GstGL.GLQuery

r/w

user_data

object

r

Methods

class

alloc (allocator, params)

class

init_once ()

init (allocator, parent, context, params, size, user_data, notify)

memcpy (dest, offset, size)

Details

class GstGL.GLBaseMemory

GstGL.GLBaseMemory is a Gst.Memory subclass providing the basis of support for the mapping of GL buffers.

Data is uploaded or downloaded from the GPU as is necessary.

classmethod alloc(allocator, params)[source]
Parameters:
Returns:

a new GstGL.GLBaseMemory from allocator with the requested params.

Return type:

GstGL.GLBaseMemory or None

New in version 1.8.

classmethod init_once()[source]

Initializes the GL Base Memory allocator. It is safe to call this function multiple times. This must be called before any other GstGL.GLBaseMemory operation.

New in version 1.8.

init(allocator, parent, context, params, size, user_data, notify)[source]
Parameters:

Initializes self with the required parameters

New in version 1.8.

memcpy(dest, offset, size)[source]
Parameters:
Returns:

whether the copy succeeded.

Return type:

bool

New in version 1.8.