Callbacks¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- GstGL.GLAllocationParamsCopyFunc(src, dest)¶
- Parameters:
src (
GstGL.GLAllocationParams) – the sourceGstGL.GLAllocationParamsto copy fromdest (
GstGL.GLAllocationParams) – the sourceGstGL.GLAllocationParamsto copy
Copies the parameters from src into dest. The subclass must compose copy functions from the superclass.
- GstGL.GLAllocationParamsFreeFunc(params)¶
- Parameters:
params (
objectorNone) – 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.GLBaseMemoryAllocatorparams (
GstGL.GLAllocationParams) – theGstGL.GLAllocationParamsto allocate the memory with
- Returns:
a newly allocated
GstGL.GLBaseMemoryfrom 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.GLBaseMemoryoffset (
int) – the offset to copy fromsize (
int) – the number of bytes to copy
- Returns:
the newly copied
GstGL.GLMemoryorNone- 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.GLBaseMemoryinfo (
Gst.MapInfo) – aGst.MapInfoto 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.GLBaseMemoryinfo (
Gst.MapInfo) – aGst.MapInfoto 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.GLFilterin_tex (
GstGL.GLMemory) – the inputGstGL.GLMemoryto render
- Returns:
whether the render succeeded
- Return type:
New in version 1.10.
- GstGL.GLFramebufferFunc(stuff)¶
-
callback definition for operating through a
GstGL.GLFramebufferobject