Callbacks

GLAllocationParamsCopyFunc (src, dest)

GLAllocationParamsFreeFunc (params)

GLAsyncDebugLogGetMessage (*user_data)

GLBaseMemoryAllocatorAllocFunction (allocator, params)

GLBaseMemoryAllocatorCopyFunction (mem, offset, size)

GLBaseMemoryAllocatorCreateFunction (mem)

GLBaseMemoryAllocatorDestroyFunction (mem)

GLBaseMemoryAllocatorMapFunction (mem, info, maxsize)

GLBaseMemoryAllocatorUnmapFunction (mem, info)

GLContextThreadFunc (context, data)

GLFilterRenderFunc (filter, in_tex, *user_data)

GLFramebufferFunc (stuff)

GLWindowCB (data)

GLWindowResizeCB (data, width, height)

Details

GstGL.GLAllocationParamsCopyFunc(src, dest)
Parameters:

Copies the parameters from src into dest. The subclass must compose copy functions from the superclass.

GstGL.GLAllocationParamsFreeFunc(params)
Parameters:

params (object or None) – a GstGL.GLAllocationParams

Free any dynamically allocated data. The subclass must call the superclass’ free.

GstGL.GLAsyncDebugLogGetMessage(*user_data)
Parameters:

user_data (object or None) –

Return type:

str

GstGL.GLBaseMemoryAllocatorAllocFunction(allocator, params)
Parameters:
Returns:

a newly allocated GstGL.GLBaseMemory from allocator and params

Return type:

GstGL.GLBaseMemory or None

Note: not called with a GL context current

New in version 1.8.

GstGL.GLBaseMemoryAllocatorCopyFunction(mem, offset, size)
Parameters:
Returns:

the newly copied GstGL.GLMemory or None

Return type:

GstGL.GLBaseMemory or None

Also see Gst.Memory.copy();

New in version 1.8.

GstGL.GLBaseMemoryAllocatorCreateFunction(mem)
Parameters:

mem (GstGL.GLBaseMemory) – a GstGL.GLBaseMemory

Returns:

whether the creation succeeded

Return type:

bool

As this virtual method is called with an OpenGL context current, use this function to allocate and OpenGL resources needed for your application

New in version 1.8.

GstGL.GLBaseMemoryAllocatorDestroyFunction(mem)
Parameters:

mem (GstGL.GLBaseMemory) – a GstGL.GLBaseMemory

Destroy any resources allocated throughout the lifetime of mem

New in version 1.8.

GstGL.GLBaseMemoryAllocatorMapFunction(mem, info, maxsize)
Parameters:
Returns:

the mapped pointer

Return type:

object or None

Also see Gst.Memory.map();

New in version 1.8.

GstGL.GLBaseMemoryAllocatorUnmapFunction(mem, info)
Parameters:

Also see Gst.Memory.unmap();

New in version 1.8.

GstGL.GLContextThreadFunc(context, data)
Parameters:

Represents a function to run in the GL thread with context and data

GstGL.GLFilterRenderFunc(filter, in_tex, *user_data)
Parameters:
Returns:

whether the render succeeded

Return type:

bool

New in version 1.10.

GstGL.GLFramebufferFunc(stuff)
Parameters:

stuff (object or None) – user data

Return type:

bool

callback definition for operating through a GstGL.GLFramebuffer object

GstGL.GLWindowCB(data)
Parameters:

data (object or None) –

GstGL.GLWindowResizeCB(data, width, height)
Parameters: