media: v4l2-tpg-core.c: fix typo in bt2020_full matrix
authorHans Verkuil <hverkuil@xs4all.nl>
Thu, 27 Jul 2017 15:39:14 +0000 (11:39 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 8 Aug 2017 10:20:20 +0000 (06:20 -0400)
My eye fell on this wrong coefficient in the bt2020_full matrix.
The bt2020 matrix (limited range) is OK.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c

index 3dd22da7e17d2ca2762c2c8385931d33be0b0130..a772976cfe2635814df5ef5224147996a094742f 100644 (file)
@@ -615,7 +615,7 @@ static void color_to_ycbcr(struct tpg_data *tpg, int r, int g, int b,
        static const int bt2020_full[3][3] = {
                { COEFF(0.2627, 255),  COEFF(0.6780, 255),  COEFF(0.0593, 255)  },
                { COEFF(-0.1396, 255), COEFF(-0.3604, 255), COEFF(0.5, 255)     },
-               { COEFF(0.5, 255),     COEFF(-0.4698, 255), COEFF(-0.0402, 255) },
+               { COEFF(0.5, 255),     COEFF(-0.4598, 255), COEFF(-0.0402, 255) },
        };
        static const int bt2020c[4] = {
                COEFF(1.0 / 1.9404, 224), COEFF(1.0 / 1.5816, 224),