gstgl.global

Global functions for gstgl1 library

Functions 33

fnuint bufferPoolConfigGetGlMinFreeQueueSize(gst.structure.Structure config)See [gstgl.global.bufferPoolConfigSetGlMinFreeQueueSize].
fnvoid bufferPoolConfigSetGlMinFreeQueueSize(gst.structure.Structure config, uint queueSize)Instructs the #GstGLBufferPool to keep queue_size amount of buffers around before allowing them for reuse.
fnvoid contextSetGlDisplay(gst.context.Context context, gstgl.gldisplay.GLDisplay display = null)Sets display on context
fnbool glCheckExtension(string name, string ext)
fnbool 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.
fnvoid glGetAffineTransformationMetaAsNdc(gstvideo.video_affine_transformation_meta.VideoAffineTransformationMeta meta, ref float[] matrix)Retrieves the stored 4x4 affine transformation matrix stored in meta in NDC coordinates. if meta is NULL, an identity matrix is returned.
fnsize_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
fnbool glHandleSetContext(gst.element.Element element, gst.context.Context context, out gstgl.gldisplay.GLDisplay display, out gstgl.glcontext.GLContext otherContext)Helper function for implementing #GstElementClass.set_context() in OpenGL capable elements.
fnvoid glMultiplyMatrix4(float[] a, float[] b, ref float[] result)Multiplies two 4x4 matrices, `a` and `b`, and stores the result, a 2-dimensional array of #gfloat, in result.
fnvoid 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.
fnuint glSizedGlFormatFromGlFormatType(gstgl.glcontext.GLContext context, uint format, uint type)
fnvoid glSwizzleInvert(int[] swizzle, ref int[] inversion)Given swizzle, produce inversion such that:
fngstgl.types.GLTextureTarget glValueGetTextureTargetMask(gobject.value.Value value)See [gstgl.global.glValueSetTextureTargetFromMask] for what entails a mask
fnbool glValueSetTextureTargetFromMask(gobject.value.Value value, gstgl.types.GLTextureTarget targetMask)A mask is a bitwise OR of (1 << target) where target is a valid #GstGLTextureTarget
fnbool glVideoFormatSwizzle(gstvideo.types.VideoFormat videoFormat, ref int[] swizzle)Calculates the swizzle indices for videoformat and glformat in order to access a texture such that accessing a texel from a texture through the swizzle index produces values in the order (R, G, B, ...
fnbool glslStringGetVersionProfile(string s, out gstgl.types.GLSLVersion version_, out gstgl.types.GLSLProfile profile)Note: this function first searches the first 1 kilobytes for a `#version` preprocessor directive and then executes [gstgl.global.glslVersionProfileFromString].