diff options
Diffstat (limited to 'kms++')
-rw-r--r-- | kms++/inc/kms++/pixelformats.h | 3 | ||||
-rw-r--r-- | kms++/src/pixelformats.cpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/kms++/inc/kms++/pixelformats.h b/kms++/inc/kms++/pixelformats.h index 6392de1..1e273ef 100644 --- a/kms++/inc/kms++/pixelformats.h +++ b/kms++/inc/kms++/pixelformats.h @@ -32,6 +32,9 @@ enum class PixelFormat : uint32_t RGB565 = MakeFourCC("RG16"), BGR565 = MakeFourCC("BG16"), + + ARGB4444 = MakeFourCC("AR12"), + ARGB1555 = MakeFourCC("AR15"), }; static inline PixelFormat FourCCToPixelFormat(const std::string& fourcc) diff --git a/kms++/src/pixelformats.cpp b/kms++/src/pixelformats.cpp index 84ea924..819853b 100644 --- a/kms++/src/pixelformats.cpp +++ b/kms++/src/pixelformats.cpp @@ -26,6 +26,9 @@ static const map<PixelFormat, PixelFormatInfo> format_info_array = { { PixelFormat::XBGR8888, { 1, { { 32, 1, 1 } }, } }, { PixelFormat::ARGB8888, { 1, { { 32, 1, 1 } }, } }, { PixelFormat::ABGR8888, { 1, { { 32, 1, 1 } }, } }, + + { PixelFormat::ARGB4444, { 1, { { 16, 1, 1 } }, } }, + { PixelFormat::ARGB1555, { 1, { { 16, 1, 1 } }, } }, }; const struct PixelFormatInfo& get_pixel_format_info(PixelFormat format) |