From 3c2e902e319ff9329f26103250f43eb540be4302 Mon Sep 17 00:00:00 2001 From: Samuel Gaist Date: Mon, 21 Jan 2019 13:27:11 +0100 Subject: Fix comment for YUV fragment shaders MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The comment contains information which makes it misleading to understand how the components are passed. Change-Id: I29cdb5eec1e8014fa7f0ca3f1a0f54258fdb431f Reviewed-by: Tomasz Olszak Reviewed-by: Christian Strømme --- src/qtmultimediaquicktools/shaders/uyvyvideo_core.frag | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/qtmultimediaquicktools/shaders/uyvyvideo_core.frag') diff --git a/src/qtmultimediaquicktools/shaders/uyvyvideo_core.frag b/src/qtmultimediaquicktools/shaders/uyvyvideo_core.frag index 75c7de5a6..b151a7c7f 100644 --- a/src/qtmultimediaquicktools/shaders/uyvyvideo_core.frag +++ b/src/qtmultimediaquicktools/shaders/uyvyvideo_core.frag @@ -1,5 +1,6 @@ #version 150 core -uniform sampler2D yTexture; // Y component passed as GL_LUMINANCE_ALPHA, in uyvy Y = a +// Reference: qgsvideonode_yuv.cpp:387 to 398 +uniform sampler2D yTexture; // Y component passed as GL_RG, in uyvy Y = a uniform sampler2D uvTexture; // UV component passed as RGBA macropixel, in uyvy U = r, V = b uniform mat4 colorMatrix; uniform float opacity; -- cgit v1.2.3