summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2022-07-03 14:05:31 +0200
committerGeert Uytterhoeven <geert@linux-m68k.org>2023-09-08 18:01:43 +0000
commit022a4d8a82f8d621cfa0eccec92446b289a23e28 (patch)
treebfa36cd48b844d4f142c2c176a5aaf7676649852
parentbe42051eadc53c55ca1920a7bfedb9ad867838dc (diff)
util: fix grey in YUV SMPTE patterns
The YUV SMPTE patterns use RGB 191/192/192 instead of 192/192/192 for the grey color in the top color bar. Change it to 192/192/192, to match the RGB SMPTE patterns. Fixes: a94ee624292bff96 ("modetest: Add SMPTE test pattern") Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> --- v2: - Add Reviewed-by.
-rw-r--r--tests/util/pattern.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/util/pattern.c b/tests/util/pattern.c
index f45a26cc..cf5c8e21 100644
--- a/tests/util/pattern.c
+++ b/tests/util/pattern.c
@@ -162,7 +162,7 @@ static void fill_smpte_yuv_planar(const struct util_yuv_info *yuv,
unsigned int height, unsigned int stride)
{
const struct color_yuv colors_top[] = {
- MAKE_YUV_601(191, 192, 192), /* grey */
+ MAKE_YUV_601(192, 192, 192), /* grey */
MAKE_YUV_601(192, 192, 0), /* yellow */
MAKE_YUV_601(0, 192, 192), /* cyan */
MAKE_YUV_601(0, 192, 0), /* green */
@@ -265,7 +265,7 @@ static void fill_smpte_yuv_packed(const struct util_yuv_info *yuv, void *mem,
unsigned int stride)
{
const struct color_yuv colors_top[] = {
- MAKE_YUV_601(191, 192, 192), /* grey */
+ MAKE_YUV_601(192, 192, 192), /* grey */
MAKE_YUV_601(192, 192, 0), /* yellow */
MAKE_YUV_601(0, 192, 192), /* cyan */
MAKE_YUV_601(0, 192, 0), /* green */