summaryrefslogtreecommitdiff
path: root/libkms++
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2015-10-30 00:38:06 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2015-10-31 08:55:04 +0200
commit887fb3bf2bf6496687fcb53f95092690dae90855 (patch)
treedef40da99d482f026da1bfb74b7810def611fe4f /libkms++
parent41b420c97c5f80903798fb1a5d854c3b6db0ae2b (diff)
Add AR24 & AB24 formats
Diffstat (limited to 'libkms++')
-rw-r--r--libkms++/dumbframebuffer.cpp2
-rw-r--r--libkms++/pixelformats.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/libkms++/dumbframebuffer.cpp b/libkms++/dumbframebuffer.cpp
index c64010a..fa5562c 100644
--- a/libkms++/dumbframebuffer.cpp
+++ b/libkms++/dumbframebuffer.cpp
@@ -65,6 +65,8 @@ static const map<PixelFormat, FormatInfo> format_info_array = {
/* RGB32 */
{ PixelFormat::XRGB8888, { 1, { { 32, 1, 1 } }, } },
{ PixelFormat::XBGR8888, { 1, { { 32, 1, 1 } }, } },
+ { PixelFormat::ARGB8888, { 1, { { 32, 1, 1 } }, } },
+ { PixelFormat::ABGR8888, { 1, { { 32, 1, 1 } }, } },
};
void DumbFramebuffer::Create()
diff --git a/libkms++/pixelformats.h b/libkms++/pixelformats.h
index 75e325c..693dcee 100644
--- a/libkms++/pixelformats.h
+++ b/libkms++/pixelformats.h
@@ -19,6 +19,9 @@ enum class PixelFormat : uint32_t
XRGB8888 = MakeFourCC("XR24"),
XBGR8888 = MakeFourCC("XB24"),
+ ARGB8888 = MakeFourCC("AR24"),
+ ABGR8888 = MakeFourCC("AB24"),
+
RGB565 = MakeFourCC("RG16"),
};