summaryrefslogtreecommitdiff
path: root/kms++util/src/testpat.cpp
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2025-03-28 11:55:17 +0200
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2025-03-28 11:55:17 +0200
commit972d642b6dca9eb9108270429d5d54525a26ba5c (patch)
tree8bae077f53e839f908b254cca3848fed1d9d0681 /kms++util/src/testpat.cpp
parent9f7fd01b5d5bd064723888d3df1b4964da4946be (diff)
conv: Add X403 support
Diffstat (limited to 'kms++util/src/testpat.cpp')
-rw-r--r--kms++util/src/testpat.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/kms++util/src/testpat.cpp b/kms++util/src/testpat.cpp
index 4945f3e..5b7ca1b 100644
--- a/kms++util/src/testpat.cpp
+++ b/kms++util/src/testpat.cpp
@@ -361,6 +361,12 @@ static void draw_test_pattern_part(IFramebuffer& fb, size_t start_y, size_t end_
generate_line_yuv); \
break;
+#define CASE_YUV_PLANAR_PACKED(x) \
+ case PixelFormat::x: \
+ YUVPlanarPackedWriter<x##_Layout>::write_pattern(fb, start_y, end_y, \
+ generate_line_yuv); \
+ break;
+
switch (fb.format()) {
CASE_YUV_SEMI(XV20);
CASE_YUV_SEMI(XV15);
@@ -414,6 +420,8 @@ static void draw_test_pattern_part(IFramebuffer& fb, size_t start_y, size_t end_
CASE_Y_ONLY(Y8);
CASE_Y_ONLY(Y10_P32);
+ CASE_YUV_PLANAR_PACKED(X403);
+
default:
break;
}