GLColorConvert.yuvToRgbShaderString

The returned glsl function has declaration:

vec3 yuv_to_rgb (vec3 rgb, vec3 offset, vec3 ycoeff, vec3 ucoeff, vec3 vcoeff);

The Y component is placed in the 0th index of the returned value, The U component in the 1st, and the V component in the 2nd. offset, ycoeff, ucoeff, and vcoeff are the specific coefficients and offset used for the conversion.

class GLColorConvert
static
string
yuvToRgbShaderString

Parameters

context gstgl.glcontext.GLContext

a #GstGLContext

Return Value

Type: string

a glsl function that can be used to convert from yuv to rgb