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) nothrowfn
gstgl.glsync_meta.GLSyncMeta bufferAddGlSyncMetaFull(gstgl.glcontext.GLContext context, gst.buffer.Buffer buffer, void * data = null) nothrowfn
gstgl.glallocation_params.GLAllocationParams bufferPoolConfigGetGlAllocationParams(gst.structure.Structure config) nothrowfn
uint bufferPoolConfigGetGlMinFreeQueueSize(gst.structure.Structure config) nothrowSee [gstgl.global.bufferPoolConfigSetGlMinFreeQueueSize].fn
void bufferPoolConfigSetGlAllocationParams(gst.structure.Structure config, gstgl.glallocation_params.GLAllocationParams params = null) nothrowSets params on configfn
void bufferPoolConfigSetGlMinFreeQueueSize(gst.structure.Structure config, uint queueSize) nothrowInstructs 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) nothrowfn
void contextSetGlDisplay(gst.context.Context context, gstgl.gldisplay.GLDisplay display = null) nothrowSets display on contextfn
void glElementPropagateDisplayContext(gst.element.Element element, gstgl.gldisplay.GLDisplay display) nothrowfn
bool 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.fn
void 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.fn
size_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 alignmentfn
size_t glGetPlaneStart(gstvideo.video_info.VideoInfo info, gstvideo.video_alignment.VideoAlignment valign, uint plane) nothrowfn
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) nothrowfn
bool 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.fn
void 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.fn
void 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.fn
uint glSizedGlFormatFromGlFormatType(gstgl.glcontext.GLContext context, uint format, uint type) nothrowfn
void glSwizzleInvert(int[] swizzle, ref int[] inversion) nothrowGiven swizzle, produce inversion such that:fn
gstgl.types.GLTextureTarget glValueGetTextureTargetMask(gobject.value.Value value) nothrowSee [gstgl.global.glValueSetTextureTargetFromMask] for what entails a maskfn
bool glValueSetTextureTarget(gobject.value.Value value, gstgl.types.GLTextureTarget target) nothrowfn
bool glValueSetTextureTargetFromMask(gobject.value.Value value, gstgl.types.GLTextureTarget targetMask) nothrowA mask is a bitwise OR of (1 << target) where target is a valid #GstGLTextureTargetfn
bool 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...fn
bool 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].