From 34e63f641195019e903104c8b9e6eb855efeee2c Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Thu, 16 Jun 2016 17:59:07 +0300 Subject: Support RGB888 --- kms++/inc/kms++/pixelformats.h | 2 ++ kms++/src/pixelformats.cpp | 2 ++ 2 files changed, 4 insertions(+) (limited to 'kms++') 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 ARGB8888 = MakeFourCC("AR24"), ABGR8888 = MakeFourCC("AB24"), + RGB888 = MakeFourCC("RG24"), + RGB565 = MakeFourCC("RG16"), }; 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 format_info_array = { { PixelFormat::NV21, { 2, { { 8, 1, 1, }, { 8, 2, 2 } }, } }, /* RGB16 */ { PixelFormat::RGB565, { 1, { { 16, 1, 1 } }, } }, + /* RGB24 */ + { PixelFormat::RGB888, { 1, { { 24, 1, 1 } }, } }, /* RGB32 */ { PixelFormat::XRGB8888, { 1, { { 32, 1, 1 } }, } }, { PixelFormat::XBGR8888, { 1, { { 32, 1, 1 } }, } }, -- cgit v1.2.3