From 9f7fd01b5d5bd064723888d3df1b4964da4946be Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Fri, 28 Mar 2025 11:00:09 +0200 Subject: kmstest: Support format names in addition to fourcc Signed-off-by: Tomi Valkeinen --- kms++/inc/kms++/pixelformats.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kms++/inc') diff --git a/kms++/inc/kms++/pixelformats.h b/kms++/inc/kms++/pixelformats.h index e866d84..c4dd07f 100644 --- a/kms++/inc/kms++/pixelformats.h +++ b/kms++/inc/kms++/pixelformats.h @@ -115,6 +115,8 @@ uint32_t pixel_format_to_fourcc(PixelFormat f); PixelFormat fourcc_str_to_pixel_format(const std::string& fourcc); std::string pixel_format_to_fourcc_str(PixelFormat f); +PixelFormat find_pixel_format_by_name(const std::string& name); + enum class PixelColorType { Undefined, RGB, -- cgit v1.2.3