18:49:09: Starting C:\Qt_Sandbox\QmlOpenGLResize-master\bin\Resize.exe ...
QML debugging is enabled. Only use this in a safe environment.
TaoRenderer::TaoRenderer
TaoRenderer::init
QOpenGLShader::compile(Fragment): ERROR: 4:29: 'clamp' : no matching overloaded function found - implicit conversion not allowed
ERROR: 4:30: 'clamp' : no matching overloaded function found - implicit conversion not allowed
ERROR: 4:31: 'clamp' : no matching overloaded function found - implicit conversion not allowed
*** 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
varying vec2 v_texCoord;
uniform sampler2D tex_y;
uniform sampler2D tex_u;
uniform sampler2D tex_v;
uniform int pixFmt;
void main(void)
{
vec3 yuv;
vec3 rgb;
if (pixFmt == 0) {
//yuv420p
yuv.x = texture2D(tex_y, v_texCoord).r;
yuv.y = texture2D(tex_u, v_texCoord).r - 0.5;
yuv.z = texture2D(tex_v, v_texCoord).r - 0.5;
// rgb = mat3( 1, 1, 1,
// 0, -0.39465, 2.03211,
// 1.13983, -0.58060, 0) * yuv;
rgb = mat3( 1, 1, 1,
0, -0.3455, 1.779,
1.4075, -0.7169, 0) * yuv;
} else {
//YUV444P
yuv.x = texture2D(tex_y, v_texCoord).r;
yuv.y = texture2D(tex_u, v_texCoord).r - 0.5;
yuv.z = texture2D(tex_v, v_texCoord).r - 0.5;
rgb.x = clamp( yuv.x + 1.402 *yuv.z, 0, 1);
rgb.y = clamp( yuv.x - 0.34414 * yuv.y - 0.71414 * yuv.z, 0, 1);
rgb.z = clamp( yuv.x + 1.772 * yuv.y, 0, 1);
}
gl_FragColor = vec4(rgb, 1);
}
***
add fragment shader file failed.
TaoRenderer::resize