summaryrefslogtreecommitdiff
path: root/kms++util/src/testpat.cpp
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2025-03-27 17:24:31 +0200
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2025-03-27 17:57:26 +0200
commit9673348fffea7490a85b4a15882e3ec41b62dc29 (patch)
tree8b9ecd14ea67000f88aaaa8341a60b7525d43758 /kms++util/src/testpat.cpp
parentdf4a5c1d3d01c04c7bc92747d5b85abe3ecf1db7 (diff)
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 <tomi.valkeinen@ideasonboard.com>
Diffstat (limited to 'kms++util/src/testpat.cpp')
-rw-r--r--kms++util/src/testpat.cpp9
1 files changed, 9 insertions, 0 deletions
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<x##_Layout>::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;
}