gstgl.glcolor_convert
Module for [GLColorConvert] class
Types 3
#GstGLColorConvert is an object that converts between color spaces and/or formats using OpenGL Shaders.
A #GstGLColorConvert can be created with [gstgl.glcolor_convert.GLColorConvert.new_], the configuration negotiated with [gstgl.glcolor_convert.GLColorConvert.transformCaps] and the conversion performed with [gstgl.glcolor_convert.GLColorConvert.perform].
The glcolorconvertelement provides a GStreamer element that uses #GstGLColorConvert to convert between video formats and color spaces.
Methods
GLColorConvert self()Returns `this`, for use in `with` statements.GLColorConvertGidBuilder builder()Get builder for [gstgl.glcolor_convert.GLColorConvert] Returns: New builder objectgst.caps.Caps fixateCaps(gstgl.glcontext.GLContext context, gst.types.PadDirection direction, gst.caps.Caps caps, gst.caps.Caps other)Provides an implementation of #GstBaseTransformClass.fixate_caps()string swizzleShaderString(gstgl.glcontext.GLContext context)gst.caps.Caps transformCaps(gstgl.glcontext.GLContext context, gst.types.PadDirection direction, gst.caps.Caps caps, gst.caps.Caps filter)Provides an implementation of #GstBaseTransformClass.transform_caps()string yuvToRgbShaderString(gstgl.glcontext.GLContext context)The returned glsl function has declaration:bool decideAllocation(gst.query.Query query)Provides an implementation of #GstBaseTransformClass.decide_allocation()gst.buffer.Buffer perform(gst.buffer.Buffer inbuf)Converts the data contained by inbuf using the formats specified by the #GstCaps passed to [gstgl.glcolor_convert.GLColorConvert.setCaps]bool setCaps(gst.caps.Caps inCaps, gst.caps.Caps outCaps)Initializes convert with the information required for conversion.Fluent builder for [gstgl.glcolor_convert.GLColorConvert]
Methods