summaryrefslogtreecommitdiff
path: root/libkms++
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@iki.fi>2015-10-08 19:12:24 +0300
committerTomi Valkeinen <tomi.valkeinen@iki.fi>2015-10-08 19:12:24 +0300
commite689ae60dafcc5db6a7266906f38410f0d6f3e24 (patch)
tree85f7107d058753c8dffc9ecc44f2a9de5839db09 /libkms++
parent4a6bfde6cd19e9a7b98491761cfbfc491660cd89 (diff)
Add support for YVYU and VYUY
Diffstat (limited to 'libkms++')
-rw-r--r--libkms++/dumbframebuffer.cpp2
-rw-r--r--libkms++/pixelformats.h4
2 files changed, 6 insertions, 0 deletions
diff --git a/libkms++/dumbframebuffer.cpp b/libkms++/dumbframebuffer.cpp
index cb815da..f422081 100644
--- a/libkms++/dumbframebuffer.cpp
+++ b/libkms++/dumbframebuffer.cpp
@@ -55,6 +55,8 @@ static const map<PixelFormat, FormatInfo> format_info_array = {
/* YUV packed */
{ PixelFormat::UYVY, { 1, { { 32, 2, 1 } }, } },
{ PixelFormat::YUYV, { 1, { { 32, 2, 1 } }, } },
+ { PixelFormat::YVYU, { 1, { { 32, 2, 1 } }, } },
+ { PixelFormat::VYUY, { 1, { { 32, 2, 1 } }, } },
/* YUV semi-planar */
{ PixelFormat::NV12, { 2, { { 8, 1, 1, }, { 16, 2, 2 } }, } },
/* RGB16 */
diff --git a/libkms++/pixelformats.h b/libkms++/pixelformats.h
index 6741ea4..4432cac 100644
--- a/libkms++/pixelformats.h
+++ b/libkms++/pixelformats.h
@@ -11,8 +11,12 @@ enum class PixelFormat : uint32_t
{
NV12 = MakeFourCC("NV12"),
NV21 = MakeFourCC("NV21"),
+
UYVY = MakeFourCC("UYVY"),
YUYV = MakeFourCC("YUYV"),
+ YVYU = MakeFourCC("YVYU"),
+ VYUY = MakeFourCC("VYUY"),
+
XRGB8888 = MakeFourCC("XR24"),
XBGR8888 = MakeFourCC("XB24"),
RGB565 = MakeFourCC("RG16"),