You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
QOpenGLShader::compile(Fragment): ERROR: 4:12: 'uniform' : cannot initialize this type of qualifier
ERROR: 4:13: 'uniform' : cannot initialize this type of qualifier
ERROR: 4:14: 'uniform' : cannot initialize this type of qualifier
ERROR: 4:15: 'uniform' : cannot initialize this type of qualifier
ERROR: 4:16: 'uniform' : cannot initialize this type of qualifier
ERROR: 4:17: 'uniform' : cannot initialize this type of qualifier
ERROR: 4:18: 'uniform' : cannot initialize this type of qualifier
ERROR: 4:36: Unary operation not folded into constant
ERROR: 4:64: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:64: 'assign' : cannot convert from 'const int' to 'mediump float'
ERROR: 4:65: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:65: 'assign' : cannot convert from 'const int' to 'mediump float'
ERROR: 4:66: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:66: 'assign' : cannot convert from 'const int' to 'mediump float'
ERROR: 4:67: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:67: 'assign' : cannot convert from 'const int' to 'mediump float'
ERROR: 4:72: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:72: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:72: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:72: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:72: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:72: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:73: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:73: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:73: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:80: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:80: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:80: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:82: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:82: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:82: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:84: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:84: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:84: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:86: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:86: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:86: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:96: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:96: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:96: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:96: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:96: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:96: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:99: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:99: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:99: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:106: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:106: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:106: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:106: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:106: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:106: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:107: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:107: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:107: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:118: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:118: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:118: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:118: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:118: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:118: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:118: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:118: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:118: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:122: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:122: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:122: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:122: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:122: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:122: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:127: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:127: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:127: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:129: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:129: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:129: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:133: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:133: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:133: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:137: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:137: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:137: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:146: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:146: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:146: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:148: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:148: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:148: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:150: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:150: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:150: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:152: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:152: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:152: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:170: 'GaussianBlur' : no matching overloaded function found - implicit conversion not allowed
ERROR: 4:170: 'GaussianBlur' : function is not known
QT5.12 mingw64
Win10
Intel UHD Graphics 630 GPU
QOpenGLShader::compile(Fragment): ERROR: 4:12: 'uniform' : cannot initialize this type of qualifier
ERROR: 4:13: 'uniform' : cannot initialize this type of qualifier
ERROR: 4:14: 'uniform' : cannot initialize this type of qualifier
ERROR: 4:15: 'uniform' : cannot initialize this type of qualifier
ERROR: 4:16: 'uniform' : cannot initialize this type of qualifier
ERROR: 4:17: 'uniform' : cannot initialize this type of qualifier
ERROR: 4:18: 'uniform' : cannot initialize this type of qualifier
ERROR: 4:36: Unary operation not folded into constant
ERROR: 4:64: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:64: 'assign' : cannot convert from 'const int' to 'mediump float'
ERROR: 4:65: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:65: 'assign' : cannot convert from 'const int' to 'mediump float'
ERROR: 4:66: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:66: 'assign' : cannot convert from 'const int' to 'mediump float'
ERROR: 4:67: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:67: 'assign' : cannot convert from 'const int' to 'mediump float'
ERROR: 4:72: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:72: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:72: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:72: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:72: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:72: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:73: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:73: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:73: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:80: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:80: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:80: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:82: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:82: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:82: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:84: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:84: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:84: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:86: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:86: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:86: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:96: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:96: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:96: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:96: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:96: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:96: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:99: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:99: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:99: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:106: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:106: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:106: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:106: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:106: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:106: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:107: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:107: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:107: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:118: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:118: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:118: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:118: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:118: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:118: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:118: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:118: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:118: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:122: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:122: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:122: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:122: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:122: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:122: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:127: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:127: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:127: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:129: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:129: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:129: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:133: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:133: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:133: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:137: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:137: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:137: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:146: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:146: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:146: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:148: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:148: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:148: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:150: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:150: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:150: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:152: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:152: 'assign' : implicit conversion between types not allowed in ES 2.0
ERROR: 4:152: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 4:170: 'GaussianBlur' : no matching overloaded function found - implicit conversion not allowed
ERROR: 4:170: 'GaussianBlur' : function is not known
*** Problematic Fragment shader source code ***
#version 110
#ifdef GL_KHR_blend_equation_advanced
#extension GL_ARB_fragment_coord_conventions : enable
#extension GL_KHR_blend_equation_advanced : enable
#endif
#define lowp
#define mediump
#define highp
#line 1
#ifdef GL_ES
// Set default precision to medium
precision mediump int;
precision mediump float;
#endif
//#include "qrc:/effects.glsl"
uniform sampler2D tex_y;
uniform sampler2D tex_u;
uniform sampler2D tex_v;
uniform float tex_format = 1.0;
uniform float alpha = 1.0;
uniform float tex_offset = 0;
uniform float imageWidth = 0;
uniform float imageHeight = 0;
uniform bool enableHDR = false;
uniform bool enableGaussianBlur = false;
varying vec2 textureOut;
float gamma = 2.2;
vec3 toLinear(in vec3 colour) { return pow(colour, vec3(gamma)); }
vec3 toHDR(in vec3 colour, in float range) { return toLinear(colour) * range; }
const float M_PI = 3.1415926535897932384626433832795;
vec4 GaussianBlur(sampler2D tex0, vec2 texCoordinates, float blurAmnt, int passingTurn, float sigma, float numBlurPixelsPerSide)
{
vec4 outputColor;
vec2 blurMultiplyVec;
if (passingTurn == 0) blurMultiplyVec = vec2(1.0, 0.0);
else blurMultiplyVec = vec2(0.0, 1.0);
}
void main()
{
if(textureOut.x > 1.0 - tex_offset){
gl_FragColor.a = 0;
gl_FragColor.r = 0;
gl_FragColor.g = 0;
gl_FragColor.b = 0;
return;
}
vec3 yuv;
vec4 rgba;
if(tex_format == 0 || tex_format == 1){
if(tex_format == 0){
yuv.r = texture2D(tex_y, textureOut).r - 0.0625;
}else{
yuv.r = texture2D(tex_y, textureOut).r;
}
yuv.g = texture2D(tex_u, textureOut).r - 0.5;
yuv.b = texture2D(tex_v, textureOut).r - 0.5;
}else if(tex_format == 2){ // rgb
yuv = texture2D(tex_y, textureOut).rgb;
}else if(tex_format == 3){ // gray8
yuv.r = texture2D(tex_y, textureOut).r;
}else if(tex_format == 6){ //BGR
yuv = texture2D(tex_y, textureOut).bgr;
}else if(tex_format == 10){//yuv420p10le yuv444p10le
vec3 yuv_l;
vec3 yuv_h;
yuv_l.x = texture2D(tex_y, textureOut).r;
yuv_h.x = texture2D(tex_y, textureOut).a;
yuv_l.y = texture2D(tex_u, textureOut).r;
yuv_h.y = texture2D(tex_u, textureOut).a;
yuv_l.z = texture2D(tex_v, textureOut).r;
yuv_h.z = texture2D(tex_v, textureOut).a;
yuv = (yuv_l * 255.0 + yuv_h * 255.0 * 256.0) / (1023.0) - vec3(16.0 / 255.0, 0.5, 0.5);
}else if(tex_format == 8 || tex_format == 9){ //NV12 | NV21
yuv.r = texture2D(tex_y, textureOut).r - 0.0625;
vec4 uv = texture2D( tex_u, textureOut);
if(tex_format == 9){ //NV21
yuv.g = uv.a - 0.5;
yuv.b = uv.r - 0.5;
}else{ //NV12
yuv.g = uv.r - 0.5;
yuv.b = uv.a - 0.5;
}
}else if(tex_format == 16 || tex_format == 17){ //YUV16 YUVJ16
if(tex_format == 16){
yuv.r = texture2D(tex_y, textureOut).r - 0.0625;
}else{
yuv.r = texture2D(tex_y, textureOut).r;
}
yuv.g = texture2D(tex_u, textureOut).r - 0.5;
yuv.b = texture2D(tex_v, textureOut).r - 0.5;
}
// sampler2D tex0, vec2 texCoordinates, float blurAmnt, int passingTurn, float sigma, float numBlurPixelsPerSide
if(enableGaussianBlur)//
{
gl_FragColor *= GaussianBlur(tex_y, textureOut, 0, 1, 1, 9);
}
else{
// gl_FragColor.a = 0.5;
}
}
The text was updated successfully, but these errors were encountered: