gstgl.global

Undocumented in source.

Members

Functions

bufferAddGlSyncMeta
gstgl.glsync_meta.GLSyncMeta bufferAddGlSyncMeta(gstgl.glcontext.GLContext context, gst.buffer.Buffer buffer)
bufferAddGlSyncMetaFull
gstgl.glsync_meta.GLSyncMeta bufferAddGlSyncMetaFull(gstgl.glcontext.GLContext context, gst.buffer.Buffer buffer, void* data)
bufferPoolConfigGetGlAllocationParams
gstgl.glallocation_params.GLAllocationParams bufferPoolConfigGetGlAllocationParams(gst.structure.Structure config)
bufferPoolConfigGetGlMinFreeQueueSize
uint bufferPoolConfigGetGlMinFreeQueueSize(gst.structure.Structure config)

See gstgl.global.bufferPoolConfigSetGlMinFreeQueueSize.

bufferPoolConfigSetGlAllocationParams
void bufferPoolConfigSetGlAllocationParams(gst.structure.Structure config, gstgl.glallocation_params.GLAllocationParams params)

Sets params on config

bufferPoolConfigSetGlMinFreeQueueSize
void bufferPoolConfigSetGlMinFreeQueueSize(gst.structure.Structure config, uint queueSize)

Instructs the #GstGLBufferPool to keep queue_size amount of buffers around before allowing them for reuse.

contextGetGlDisplay
bool contextGetGlDisplay(gst.context.Context context, gstgl.gldisplay.GLDisplay display)
contextSetGlDisplay
void contextSetGlDisplay(gst.context.Context context, gstgl.gldisplay.GLDisplay display)

Sets display on context

glCheckExtension
bool glCheckExtension(string name, string ext)
glElementPropagateDisplayContext
void glElementPropagateDisplayContext(gst.element.Element element, gstgl.gldisplay.GLDisplay display)
glEnsureElementData
bool glEnsureElementData(gst.element.Element element, gstgl.gldisplay.GLDisplay displayPtr, gstgl.glcontext.GLContext otherContextPtr)

Perform the steps necessary for retrieving a #GstGLDisplay and (optionally) an application provided #GstGLContext from the surrounding elements or from the application using the #GstContext mechanism.

glGetAffineTransformationMetaAsNdc
void glGetAffineTransformationMetaAsNdc(gstvideo.video_affine_transformation_meta.VideoAffineTransformationMeta meta, float[] matrix)

Retrieves the stored 4x4 affine transformation matrix stored in meta in NDC coordinates. if meta is NULL, an identity matrix is returned.

glGetPlaneDataSize
size_t glGetPlaneDataSize(gstvideo.video_info.VideoInfo info, gstvideo.video_alignment.VideoAlignment align_, uint plane)

Retrieve the size in bytes of a video plane of data with a certain alignment

glGetPlaneStart
size_t glGetPlaneStart(gstvideo.video_info.VideoInfo info, gstvideo.video_alignment.VideoAlignment valign, uint plane)
glHandleContextQuery
bool glHandleContextQuery(gst.element.Element element, gst.query.Query query, gstgl.gldisplay.GLDisplay display, gstgl.glcontext.GLContext context, gstgl.glcontext.GLContext otherContext)
glHandleSetContext
bool glHandleSetContext(gst.element.Element element, gst.context.Context context, gstgl.gldisplay.GLDisplay display, gstgl.glcontext.GLContext otherContext)

Helper function for implementing #GstElementClass.set_context() in OpenGL capable elements.

glMultiplyMatrix4
void glMultiplyMatrix4(float[] a, float[] b, float[] result)

Multiplies two 4x4 matrices, a and b, and stores the result, a 2-dimensional array of #gfloat, in result.

glSetAffineTransformationMetaFromNdc
void glSetAffineTransformationMetaFromNdc(gstvideo.video_affine_transformation_meta.VideoAffineTransformationMeta meta, float[] matrix)

Set the 4x4 affine transformation matrix stored in meta from the NDC coordinates in matrix.

glSizedGlFormatFromGlFormatType
uint glSizedGlFormatFromGlFormatType(gstgl.glcontext.GLContext context, uint format, uint type)
glStereoDownmixModeGetType
gobject.types.GType glStereoDownmixModeGetType()
glSyncMetaApiGetType
gobject.types.GType glSyncMetaApiGetType()
glValueGetTextureTargetMask
gstgl.types.GLTextureTarget glValueGetTextureTargetMask(gobject.value.Value value)

See gstgl.global.glValueSetTextureTargetFromMask for what entails a mask

glValueSetTextureTarget
bool glValueSetTextureTarget(gobject.value.Value value, gstgl.types.GLTextureTarget target)
glValueSetTextureTargetFromMask
bool glValueSetTextureTargetFromMask(gobject.value.Value value, gstgl.types.GLTextureTarget targetMask)

A mask is a bitwise OR of (1 << target) where target is a valid #GstGLTextureTarget

glVersionToGlslVersion
gstgl.types.GLSLVersion glVersionToGlslVersion(gstgl.types.GLAPI glApi, int maj, int min)
glslStringGetVersionProfile
bool glslStringGetVersionProfile(string s, gstgl.types.GLSLVersion version_, gstgl.types.GLSLProfile profile)

Note: this function first searches the first 1 kilobytes for a #version preprocessor directive and then executes gstgl.global.glslVersionProfileFromString.

isGlBaseMemory
bool isGlBaseMemory(gst.memory.Memory mem)
isGlBuffer
bool isGlBuffer(gst.memory.Memory mem)
isGlMemory
bool isGlMemory(gst.memory.Memory mem)
isGlMemoryPbo
bool isGlMemoryPbo(gst.memory.Memory mem)
isGlRenderbuffer
bool isGlRenderbuffer(gst.memory.Memory mem)