aboutsummaryrefslogtreecommitdiffstats
path: root/kms++
diff options
context:
space:
mode:
authorTomi Valkeinen2016-06-16 09:59:07 -0500
committerTomi Valkeinen2016-06-16 09:59:12 -0500
commit34e63f641195019e903104c8b9e6eb855efeee2c (patch)
tree71054520c956ec9ce9f7a588a913921fa4175b2f /kms++
parenta17a7364011f30d40c8ef214addda814c0513fb8 (diff)
downloadexternal-libkmsxx-34e63f641195019e903104c8b9e6eb855efeee2c.tar.gz
external-libkmsxx-34e63f641195019e903104c8b9e6eb855efeee2c.tar.xz
external-libkmsxx-34e63f641195019e903104c8b9e6eb855efeee2c.zip
Support RGB888
Diffstat (limited to 'kms++')
-rw-r--r--kms++/inc/kms++/pixelformats.h2
-rw-r--r--kms++/src/pixelformats.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/kms++/inc/kms++/pixelformats.h b/kms++/inc/kms++/pixelformats.h
index 813eaef..8ecfcb3 100644
--- a/kms++/inc/kms++/pixelformats.h
+++ b/kms++/inc/kms++/pixelformats.h
@@ -27,6 +27,8 @@ enum class PixelFormat : uint32_t
27 ARGB8888 = MakeFourCC("AR24"), 27 ARGB8888 = MakeFourCC("AR24"),
28 ABGR8888 = MakeFourCC("AB24"), 28 ABGR8888 = MakeFourCC("AB24"),
29 29
30 RGB888 = MakeFourCC("RG24"),
31
30 RGB565 = MakeFourCC("RG16"), 32 RGB565 = MakeFourCC("RG16"),
31}; 33};
32 34
diff --git a/kms++/src/pixelformats.cpp b/kms++/src/pixelformats.cpp
index f2b1137..ee2356d 100644
--- a/kms++/src/pixelformats.cpp
+++ b/kms++/src/pixelformats.cpp
@@ -17,6 +17,8 @@ static const map<PixelFormat, PixelFormatInfo> format_info_array = {
17 { PixelFormat::NV21, { 2, { { 8, 1, 1, }, { 8, 2, 2 } }, } }, 17 { PixelFormat::NV21, { 2, { { 8, 1, 1, }, { 8, 2, 2 } }, } },
18 /* RGB16 */ 18 /* RGB16 */
19 { PixelFormat::RGB565, { 1, { { 16, 1, 1 } }, } }, 19 { PixelFormat::RGB565, { 1, { { 16, 1, 1 } }, } },
20 /* RGB24 */
21 { PixelFormat::RGB888, { 1, { { 24, 1, 1 } }, } },
20 /* RGB32 */ 22 /* RGB32 */
21 { PixelFormat::XRGB8888, { 1, { { 32, 1, 1 } }, } }, 23 { PixelFormat::XRGB8888, { 1, { { 32, 1, 1 } }, } },
22 { PixelFormat::XBGR8888, { 1, { { 32, 1, 1 } }, } }, 24 { PixelFormat::XBGR8888, { 1, { { 32, 1, 1 } }, } },