summaryrefslogtreecommitdiff
path: root/kms++
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-08-11 12:32:50 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-08-11 12:32:50 +0300
commit2754279db8d359b0c6d846c1e8f851e1ef90bb43 (patch)
treec2b0c7fe512daaee254859fa530bafd5972a9796 /kms++
parentbd5f6471e619a6ba2987bc7f66ef78a531f94d6c (diff)
parent3788242e4fdc57b1421b4721120477ebb2298e52 (diff)
Merge branch 'master' of git://github.com/jsarha/kmsxx
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 8ecfcb3..6392de1 100644
--- a/kms++/inc/kms++/pixelformats.h
+++ b/kms++/inc/kms++/pixelformats.h
@@ -28,8 +28,10 @@ enum class PixelFormat : uint32_t
ABGR8888 = MakeFourCC("AB24"),
RGB888 = MakeFourCC("RG24"),
+ BGR888 = MakeFourCC("BG24"),
RGB565 = MakeFourCC("RG16"),
+ BGR565 = MakeFourCC("BG16"),
};
static inline PixelFormat FourCCToPixelFormat(const std::string& fourcc)
diff --git a/kms++/src/pixelformats.cpp b/kms++/src/pixelformats.cpp
index ee2356d..84ea924 100644
--- a/kms++/src/pixelformats.cpp
+++ b/kms++/src/pixelformats.cpp
@@ -17,8 +17,10 @@ static const map<PixelFormat, PixelFormatInfo> format_info_array = {
{ PixelFormat::NV21, { 2, { { 8, 1, 1, }, { 8, 2, 2 } }, } },
/* RGB16 */
{ PixelFormat::RGB565, { 1, { { 16, 1, 1 } }, } },
+ { PixelFormat::BGR565, { 1, { { 16, 1, 1 } }, } },
/* RGB24 */
{ PixelFormat::RGB888, { 1, { { 24, 1, 1 } }, } },
+ { PixelFormat::BGR888, { 1, { { 24, 1, 1 } }, } },
/* RGB32 */
{ PixelFormat::XRGB8888, { 1, { { 32, 1, 1 } }, } },
{ PixelFormat::XBGR8888, { 1, { { 32, 1, 1 } }, } },