From 9673348fffea7490a85b4a15882e3ec41b62dc29 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Thu, 27 Mar 2025 17:24:31 +0200 Subject: conv: Add Y8/10/12/16 and Y10_P32 support Only Y8 and Y10_P32 can be used and have been tested for now. Signed-off-by: Tomi Valkeinen --- kms++util/src/testpat.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'kms++util/src/testpat.cpp') diff --git a/kms++util/src/testpat.cpp b/kms++util/src/testpat.cpp index a123a1f..4945f3e 100644 --- a/kms++util/src/testpat.cpp +++ b/kms++util/src/testpat.cpp @@ -355,6 +355,12 @@ static void draw_test_pattern_part(IFramebuffer& fb, size_t start_y, size_t end_ generate_line_yuv); \ break; +#define CASE_Y_ONLY(x) \ + case PixelFormat::x: \ + Y_Writer::write_pattern(fb, start_y, end_y, \ + generate_line_yuv); \ + break; + switch (fb.format()) { CASE_YUV_SEMI(XV20); CASE_YUV_SEMI(XV15); @@ -405,6 +411,9 @@ static void draw_test_pattern_part(IFramebuffer& fb, size_t start_y, size_t end_ CASE_YUV_PLANAR(YUV420); CASE_YUV_PLANAR(YVU420); + CASE_Y_ONLY(Y8); + CASE_Y_ONLY(Y10_P32); + default: break; } -- cgit v1.2.3