Callbacks¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- GstGL.GLAllocationParamsCopyFunc(src, dest)¶
- Parameters:
src (
GstGL.GLAllocationParams
) – the sourceGstGL.GLAllocationParams
to copy fromdest (
GstGL.GLAllocationParams
) – the sourceGstGL.GLAllocationParams
to copy
Copies the parameters from src into dest. The subclass must compose copy functions from the superclass.
- GstGL.GLAllocationParamsFreeFunc(params)¶
- Parameters:
params (
object
orNone
) – aGstGL.GLAllocationParams
Free any dynamically allocated data. The subclass must call the superclass’ free.
- GstGL.GLAsyncDebugLogGetMessage(*user_data)¶
- GstGL.GLBaseMemoryAllocatorAllocFunction(allocator, params)¶
- Parameters:
allocator (
GstGL.GLBaseMemoryAllocator
) – aGstGL.GLBaseMemoryAllocator
params (
GstGL.GLAllocationParams
) – theGstGL.GLAllocationParams
to allocate the memory with
- Returns:
a newly allocated
GstGL.GLBaseMemory
from allocator and params- Return type:
Note: not called with a GL context current
New in version 1.8.
- GstGL.GLBaseMemoryAllocatorCopyFunction(mem, offset, size)¶
- Parameters:
mem (
GstGL.GLBaseMemory
) – aGstGL.GLBaseMemory
offset (
int
) – the offset to copy fromsize (
int
) – the number of bytes to copy
- Returns:
the newly copied
GstGL.GLMemory
orNone
- Return type:
Also see
Gst.Memory.copy
();New in version 1.8.
- GstGL.GLBaseMemoryAllocatorCreateFunction(mem)¶
- Parameters:
mem (
GstGL.GLBaseMemory
) – aGstGL.GLBaseMemory
- Returns:
whether the creation succeeded
- Return type:
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
) – aGstGL.GLBaseMemory
Destroy any resources allocated throughout the lifetime of mem
New in version 1.8.
- GstGL.GLBaseMemoryAllocatorMapFunction(mem, info, maxsize)¶
- Parameters:
mem (
GstGL.GLBaseMemory
) – aGstGL.GLBaseMemory
info (
Gst.MapInfo
) – aGst.MapInfo
to map withmaxsize (
int
) – the size to map
- Returns:
the mapped pointer
- Return type:
Also see
Gst.Memory.map
();New in version 1.8.
- GstGL.GLBaseMemoryAllocatorUnmapFunction(mem, info)¶
- Parameters:
mem (
GstGL.GLBaseMemory
) – aGstGL.GLBaseMemory
info (
Gst.MapInfo
) – aGst.MapInfo
to map with
Also see
Gst.Memory.unmap
();New in version 1.8.
- GstGL.GLContextThreadFunc(context, data)¶
- Parameters:
context (
GstGL.GLContext
) – aGstGL.GLContext
Represents a function to run in the GL thread with context and data
- GstGL.GLFilterRenderFunc(filter, in_tex, *user_data)¶
- Parameters:
filter (
GstGL.GLFilter
) – theGstGL.GLFilter
in_tex (
GstGL.GLMemory
) – the inputGstGL.GLMemory
to render
- Returns:
whether the render succeeded
- Return type:
New in version 1.10.
- GstGL.GLFramebufferFunc(stuff)¶
-
callback definition for operating through a
GstGL.GLFramebuffer
object