diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-10-07 10:29:51 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-10-07 10:29:51 +0300 |
commit | dd43e09dd207430e3fc8d3b3749f21b1aa7d304e (patch) | |
tree | 6debe6d0289f9323b0b431485ee7b0c292cd6a8b /libkms++ | |
parent | 16b1c64feb167005aece046dc5fb726f32ef78b3 (diff) |
Add XBGR8888 format
Diffstat (limited to 'libkms++')
-rw-r--r-- | libkms++/dumbframebuffer.cpp | 1 | ||||
-rw-r--r-- | libkms++/pixelformats.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/libkms++/dumbframebuffer.cpp b/libkms++/dumbframebuffer.cpp index 4e3b56b..cb815da 100644 --- a/libkms++/dumbframebuffer.cpp +++ b/libkms++/dumbframebuffer.cpp @@ -61,6 +61,7 @@ static const map<PixelFormat, FormatInfo> format_info_array = { { PixelFormat::RGB565, { 1, { { 16, 1, 1 } }, } }, /* RGB32 */ { PixelFormat::XRGB8888, { 1, { { 32, 1, 1 } }, } }, + { PixelFormat::XBGR8888, { 1, { { 32, 1, 1 } }, } }, }; void DumbFramebuffer::Create() diff --git a/libkms++/pixelformats.h b/libkms++/pixelformats.h index 25fdecb..6741ea4 100644 --- a/libkms++/pixelformats.h +++ b/libkms++/pixelformats.h @@ -14,6 +14,7 @@ enum class PixelFormat : uint32_t UYVY = MakeFourCC("UYVY"), YUYV = MakeFourCC("YUYV"), XRGB8888 = MakeFourCC("XR24"), + XBGR8888 = MakeFourCC("XB24"), RGB565 = MakeFourCC("RG16"), }; |