gstgl.global

Global functions for gstgl1 library

Functions 33

fnuint bufferPoolConfigGetGlMinFreeQueueSize(gst.structure.Structure config) nothrowSee [gstgl.global.bufferPoolConfigSetGlMinFreeQueueSize].
fnvoid bufferPoolConfigSetGlMinFreeQueueSize(gst.structure.Structure config, uint queueSize) nothrowInstructs 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) nothrowSets display on context
fnbool glCheckExtension(string name, string ext) nothrow
fnbool glEnsureElementData(gst.element.Element element, gstgl.gldisplay.GLDisplay displayPtr, gstgl.glcontext.GLContext otherContextPtr) nothrowPerform 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) nothrowRetrieves 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) nothrowRetrieve the size in bytes of a video plane of data with a certain alignment
fnbool glHandleContextQuery(gst.element.Element element, gst.query.Query query, gstgl.gldisplay.GLDisplay display = null, gstgl.glcontext.GLContext context = null, gstgl.glcontext.GLContext otherContext = null) nothrow
fnbool glHandleSetContext(gst.element.Element element, gst.context.Context context, out gstgl.gldisplay.GLDisplay display, out gstgl.glcontext.GLContext otherContext) nothrowHelper function for implementing #GstElementClass.set_context() in OpenGL capable elements.
fnvoid glMultiplyMatrix4(float[] a, float[] b, ref float[] result) nothrowMultiplies 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) nothrowSet the 4x4 affine transformation matrix stored in meta from the NDC coordinates in matrix.
fnuint glSizedGlFormatFromGlFormatType(gstgl.glcontext.GLContext context, uint format, uint type) nothrow
fnvoid glSwizzleInvert(int[] swizzle, ref int[] inversion) nothrowGiven swizzle, produce inversion such that:
fngstgl.types.GLTextureTarget glValueGetTextureTargetMask(gobject.value.Value value) nothrowSee [gstgl.global.glValueSetTextureTargetFromMask] for what entails a mask
fnbool glValueSetTextureTargetFromMask(gobject.value.Value value, gstgl.types.GLTextureTarget targetMask) nothrowA mask is a bitwise OR of (1 << target) where target is a valid #GstGLTextureTarget
fnbool glVideoFormatSwizzle(gstvideo.types.VideoFormat videoFormat, ref int[] swizzle) nothrowCalculates the swizzle indices for video_format and gl_format 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) nothrowNote: this function first searches the first 1 kilobytes for a `#version` preprocessor directive and then executes [gstgl.global.glslVersionProfileFromString].
fnbool isGlBaseMemory(gst.memory.Memory mem) nothrow
fnbool isGlBuffer(gst.memory.Memory mem) nothrow
fnbool isGlMemory(gst.memory.Memory mem) nothrow
fnbool isGlMemoryPbo(gst.memory.Memory mem) nothrow