diff options
| author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2025-09-08 15:39:01 +0300 |
|---|---|---|
| committer | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2025-09-08 16:24:40 +0300 |
| commit | 3c53f1e9c92cf11618a05638d76b4d1ca0a2405c (patch) | |
| tree | db330eb56b982d3d96ca744bd28e33edc4965ec1 /kms++util/src/testpat.cpp | |
| parent | ae5ef452496e50fa18dc413837482980ea8fb943 (diff) | |
utils: c_draw_test_pattern() takes format name, not fourcc
We can generate test patterns for pixel formats not in DRM, so we can't
take DRM fourcc as a parameter for c_draw_test_pattern(). Switch it to
format name instead.
This is a ABI change, but it is marked as super experimental.
Also, it feels a bit odd to add non-DRM format handling to kms++. But it
feels a bit pointless to split the testpat generation to a separate
library.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Diffstat (limited to 'kms++util/src/testpat.cpp')
| -rw-r--r-- | kms++util/src/testpat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kms++util/src/testpat.cpp b/kms++util/src/testpat.cpp index 5b7ca1b..bdbe647 100644 --- a/kms++util/src/testpat.cpp +++ b/kms++util/src/testpat.cpp @@ -500,7 +500,7 @@ int c_draw_test_pattern(struct CDrawTestPatternParameters* params) using namespace kms; try { - auto fmt = fourcc_to_pixel_format(params->fourcc); + auto fmt = find_pixel_format_by_name(params->format_name); ExtCPUFramebuffer fb(params->width, params->height, |
