diff options
| author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2026-05-08 11:44:58 +0300 |
|---|---|---|
| committer | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2026-05-08 11:57:36 +0300 |
| commit | 87ae7df687dc5b2066f8ee1bedd65b4bcef0a491 (patch) | |
| tree | 424d2e29d299766e1813c7f37378fb8b875f3ded /kms++/src | |
| parent | 62bc50666198b14f0adecfce08b6b2f20057e080 (diff) | |
kms++: Add ABGR1555, ABGR4444, XBGR1555, and XBGR4444
Diffstat (limited to 'kms++/src')
| -rw-r--r-- | kms++/src/pixelformats.cpp | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/kms++/src/pixelformats.cpp b/kms++/src/pixelformats.cpp index cf730ba..126a614 100644 --- a/kms++/src/pixelformats.cpp +++ b/kms++/src/pixelformats.cpp @@ -70,6 +70,18 @@ static map<PixelFormat, PixelFormatInfo> format_info_array = { } }, { + PixelFormat::XBGR1555, { + PixelFormatInfo { + "XBGR1555", + "XB15", + "", + PixelColorType::RGB, + { 1, 1 }, + { { 2, 1, 1, 1 } }, + } + } + }, + { PixelFormat::RGBX4444, { PixelFormatInfo { "RGBX4444", @@ -94,6 +106,18 @@ static map<PixelFormat, PixelFormatInfo> format_info_array = { } }, { + PixelFormat::XBGR4444, { + PixelFormatInfo { + "XBGR4444", + "XB12", + "", + PixelColorType::RGB, + { 1, 1 }, + { { 2, 1, 1, 1 } }, + } + } + }, + { PixelFormat::ARGB1555, { PixelFormatInfo { "ARGB1555", @@ -106,6 +130,18 @@ static map<PixelFormat, PixelFormatInfo> format_info_array = { } }, { + PixelFormat::ABGR1555, { + PixelFormatInfo { + "ABGR1555", + "AB15", + "", + PixelColorType::RGB, + { 1, 1 }, + { { 2, 1, 1, 1 } }, + } + } + }, + { PixelFormat::RGBA4444, { PixelFormatInfo { "RGBA4444", @@ -130,6 +166,18 @@ static map<PixelFormat, PixelFormatInfo> format_info_array = { } }, { + PixelFormat::ABGR4444, { + PixelFormatInfo { + "ABGR4444", + "AB12", + "", + PixelColorType::RGB, + { 1, 1 }, + { { 2, 1, 1, 1 } }, + } + } + }, + { PixelFormat::RGB888, { PixelFormatInfo { "RGB888", |
