From 0c9c0474bc1e27d38acd5485f5d6d53eb48138ba Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sat, 14 Mar 2015 03:04:23 +0100 Subject: [PATCH] vo_opengl: fix incorrect wording in comment "compand" was used where the actual operation was "compress". Change to avoid confusion. --- video/out/gl_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/out/gl_video.c b/video/out/gl_video.c index ac65c4b0b3..5eec1b3513 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -1337,7 +1337,7 @@ static void pass_convert_yuv(struct gl_video *p) // Calculate the green channel from the expanded RYcB // The BT.2020 specification says Yc = 0.2627*R + 0.6780*G + 0.0593*B GLSL(color.g = (color.g - 0.2627*color.r - 0.0593*color.b)/0.6780;) - // Re-compand to receive the R'G'B' result, same as other systems + // Recompress to receive the R'G'B' result, same as other systems GLSL(color.rgb = mix(color.rgb * vec3(4.5), vec3(1.0993) * pow(color.rgb, vec3(0.45)) - vec3(0.0993), lessThanEqual(vec3(0.0181), color.rgb));)