1
mirror of https://github.com/mpv-player/mpv synced 2024-11-11 00:15:33 +01:00

vo_opengl: fix incorrect wording in comment

"compand" was used where the actual operation was "compress". Change to
avoid confusion.
This commit is contained in:
Niklas Haas 2015-03-14 03:04:23 +01:00
parent e07b6fcdfd
commit 0c9c0474bc
No known key found for this signature in database
GPG Key ID: 3BA77D4BFDB10BCE

View File

@ -1337,7 +1337,7 @@ static void pass_convert_yuv(struct gl_video *p)
// Calculate the green channel from the expanded RYcB // Calculate the green channel from the expanded RYcB
// The BT.2020 specification says Yc = 0.2627*R + 0.6780*G + 0.0593*B // 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;) 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), GLSL(color.rgb = mix(color.rgb * vec3(4.5),
vec3(1.0993) * pow(color.rgb, vec3(0.45)) - vec3(0.0993), vec3(1.0993) * pow(color.rgb, vec3(0.45)) - vec3(0.0993),
lessThanEqual(vec3(0.0181), color.rgb));) lessThanEqual(vec3(0.0181), color.rgb));)