gstgl.global
Global functions for gstgl1 library
fn bufferAddGlSyncMeta bufferAddGlSyncMetaFull bufferPoolConfigGetGlAllocationParams bufferPoolConfigGetGlMinFreeQueueSize bufferPoolConfigSetGlAllocationParams bufferPoolConfigSetGlMinFreeQueueSize contextGetGlDisplay contextSetGlDisplay glCheckExtension glElementPropagateDisplayContext glEnsureElementData glGetAffineTransformationMetaAsNdc glGetPlaneDataSize glGetPlaneStart glHandleContextQuery glHandleSetContext glMultiplyMatrix4 glSetAffineTransformationMetaFromNdc glSizedGlFormatFromGlFormatType glslStringGetVersionProfile glStereoDownmixModeGetType glSwizzleInvert glSyncMetaApiGetType glValueGetTextureTargetMask glValueSetTextureTarget glValueSetTextureTargetFromMask glVersionToGlslVersion glVideoFormatSwizzle isGlBaseMemory isGlBuffer isGlMemory isGlMemoryPbo isGlRenderbuffer
Functions 33
fn
gstgl.glsync_meta.GLSyncMeta bufferAddGlSyncMeta(gstgl.glcontext.GLContext context, gst.buffer.Buffer buffer)fn
gstgl.glsync_meta.GLSyncMeta bufferAddGlSyncMetaFull(gstgl.glcontext.GLContext context, gst.buffer.Buffer buffer, void * data = null)fn
gstgl.glallocation_params.GLAllocationParams bufferPoolConfigGetGlAllocationParams(gst.structure.Structure config)fn
uint bufferPoolConfigGetGlMinFreeQueueSize(gst.structure.Structure config)See [gstgl.global.bufferPoolConfigSetGlMinFreeQueueSize].fn
void bufferPoolConfigSetGlAllocationParams(gst.structure.Structure config, gstgl.glallocation_params.GLAllocationParams params = null)Sets params on configfn
void bufferPoolConfigSetGlMinFreeQueueSize(gst.structure.Structure config, uint queueSize)Instructs the #GstGLBufferPool to keep queue_size amount of buffers around before allowing them for reuse.fn
bool contextGetGlDisplay(gst.context.Context context, out gstgl.gldisplay.GLDisplay display)fn
void contextSetGlDisplay(gst.context.Context context, gstgl.gldisplay.GLDisplay display = null)Sets display on contextfn
bool glCheckExtension(string name, string ext)fn
void glElementPropagateDisplayContext(gst.element.Element element, gstgl.gldisplay.GLDisplay display)fn
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.fn
void 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.fn
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 alignmentfn
size_t glGetPlaneStart(gstvideo.video_info.VideoInfo info, gstvideo.video_alignment.VideoAlignment valign, uint plane)fn
bool glHandleContextQuery(gst.element.Element element, gst.query.Query query, gstgl.gldisplay.GLDisplay display = null, gstgl.glcontext.GLContext context = null, gstgl.glcontext.GLContext otherContext = null)fn
bool 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.fn
void 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.fn
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.fn
uint glSizedGlFormatFromGlFormatType(gstgl.glcontext.GLContext context, uint format, uint type)fn
void glSwizzleInvert(int[] swizzle, ref int[] inversion)Given swizzle, produce inversion such that:fn
gstgl.types.GLTextureTarget glValueGetTextureTargetMask(gobject.value.Value value)See [gstgl.global.glValueSetTextureTargetFromMask] for what entails a maskfn
bool glValueSetTextureTarget(gobject.value.Value value, gstgl.types.GLTextureTarget target)fn
bool glValueSetTextureTargetFromMask(gobject.value.Value value, gstgl.types.GLTextureTarget targetMask)A mask is a bitwise OR of (1 << target) where target is a valid #GstGLTextureTargetfn
gstgl.types.GLSLVersion glVersionToGlslVersion(gstgl.types.GLAPI glApi, int maj, int min)fn
bool 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, ...fn
bool 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].fn
bool isGlBaseMemory(gst.memory.Memory mem)fn
bool isGlBuffer(gst.memory.Memory mem)fn
bool isGlMemory(gst.memory.Memory mem)fn
bool isGlMemoryPbo(gst.memory.Memory mem)fn
bool isGlRenderbuffer(gst.memory.Memory mem)