diff --git a/src/compositor/meta-multi-texture-format.c b/src/compositor/meta-multi-texture-format.c index 857531f58..a5079b85c 100644 --- a/src/compositor/meta-multi-texture-format.c +++ b/src/compositor/meta-multi-texture-format.c @@ -29,9 +29,9 @@ static const char *shader_global_conversions = "vec4 yuv_to_rgb(vec4 yuva) \n" "{ \n" " vec4 res; \n" - " float Y = 1.16438356 * (yuva.x - 0.0625); \n" - " float su = yuva.y - 0.5; \n" - " float sv = yuva.z - 0.5; \n" + " float Y = 255.0/219.0 * (yuva.x - 16.0/255.0); \n" + " float su = yuva.y - 128.0/255.0; \n" + " float sv = yuva.z - 128.0/255.0; \n" " res.r = Y + 1.59602678 * sv; \n" " res.g = Y - 0.39176229 * su - 0.81296764 * sv; \n" " res.b = Y + 2.01723214 * su; \n"