From be57baac22eb551046036cd4878bd77ef230cda4 Mon Sep 17 00:00:00 2001 From: Torsten Jager Date: Fri, 11 May 2012 15:01:38 +0300 Subject: mmx_yuv2rgb(): TV set behaviour: contrast affects color difference as well --- src/video_out/yuv2rgb_mmx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video_out/yuv2rgb_mmx.c b/src/video_out/yuv2rgb_mmx.c index 4c8142e8e..9d4cb135c 100644 --- a/src/video_out/yuv2rgb_mmx.c +++ b/src/video_out/yuv2rgb_mmx.c @@ -86,6 +86,8 @@ void mmx_yuv2rgb_set_csc_levels(yuv2rgb_factory_t *this, } yoffset += brightness; + /* TV set behaviour: contrast affects color difference as well */ + saturation = (contrast * saturation + 64) >> 7; csc = (mmx_csc_t *) this->table_mmx; -- cgit v1.2.3