summaryrefslogtreecommitdiff
path: root/kms++/src/pixelformats.cpp
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen+renesas@ideasonboard.com>2022-12-01 12:42:01 +0200
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2022-12-18 15:45:10 +0200
commitc1895b6ed77aa9739291594c86b7fa6bc144608e (patch)
tree974fb9d931ebe5842aa38d62e569753d3aa70d1b /kms++/src/pixelformats.cpp
parent46dc37c7a5a13cfd7777628676fd590c155abb24 (diff)
kms++: PixelFormats: Fix formatting
Fix formatting for some pixel formats. Signed-off-by: Tomi Valkeinen <tomi.valkeinen+renesas@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'kms++/src/pixelformats.cpp')
-rw-r--r--kms++/src/pixelformats.cpp76
1 files changed, 10 insertions, 66 deletions
diff --git a/kms++/src/pixelformats.cpp b/kms++/src/pixelformats.cpp
index d739efd..1f10f3a 100644
--- a/kms++/src/pixelformats.cpp
+++ b/kms++/src/pixelformats.cpp
@@ -32,109 +32,53 @@ static const map<PixelFormat, PixelFormatInfo> format_info_array = {
{ PixelFormat::NV12, {
PixelColorType::YUV,
2,
- { {
- 8,
- 1,
- 1,
- },
- { 8, 2, 2 } },
+ { { 8, 1, 1 }, { 8, 2, 2 } },
} },
{ PixelFormat::NV21, {
PixelColorType::YUV,
2,
- { {
- 8,
- 1,
- 1,
- },
- { 8, 2, 2 } },
+ { { 8, 1, 1 }, { 8, 2, 2 } },
} },
{ PixelFormat::NV16, {
PixelColorType::YUV,
2,
- { {
- 8,
- 1,
- 1,
- },
- { 8, 2, 1 } },
+ { { 8, 1, 1 }, { 8, 2, 1 } },
} },
{ PixelFormat::NV61, {
PixelColorType::YUV,
2,
- { {
- 8,
- 1,
- 1,
- },
- { 8, 2, 1 } },
+ { { 8, 1, 1 }, { 8, 2, 1 } },
} },
/* YUV planar */
{ PixelFormat::YUV420, {
PixelColorType::YUV,
3,
- { {
- 8,
- 1,
- 1,
- },
- { 8, 2, 2 },
- { 8, 2, 2 } },
+ { { 8, 1, 1 }, { 8, 2, 2 }, { 8, 2, 2 } },
} },
{ PixelFormat::YVU420, {
PixelColorType::YUV,
3,
- { {
- 8,
- 1,
- 1,
- },
- { 8, 2, 2 },
- { 8, 2, 2 } },
+ { { 8, 1, 1 }, { 8, 2, 2 }, { 8, 2, 2 } },
} },
{ PixelFormat::YUV422, {
PixelColorType::YUV,
3,
- { {
- 8,
- 1,
- 1,
- },
- { 8, 2, 1 },
- { 8, 2, 1 } },
+ { { 8, 1, 1 }, { 8, 2, 1 }, { 8, 2, 1 } },
} },
{ PixelFormat::YVU422, {
PixelColorType::YUV,
3,
- { {
- 8,
- 1,
- 1,
- },
- { 8, 2, 1 },
- { 8, 2, 1 } },
+ { { 8, 1, 1 }, { 8, 2, 1 }, { 8, 2, 1 } },
} },
{ PixelFormat::YUV444, {
PixelColorType::YUV,
3,
- { {
- 8,
- 1,
- 1,
- },
- { 8, 1, 1 },
- { 8, 1, 1 } },
+ { { 8, 1, 1 }, { 8, 1, 1 }, { 8, 1, 1 } },
} },
{ PixelFormat::YVU444, {
PixelColorType::YUV,
3,
- { {
- 8,
- 1,
- 1,
- },
- { 8, 1, 1 },
- { 8, 1, 1 } },
+ { { 8, 1, 1 }, { 8, 1, 1 }, { 8, 1, 1 } },
} },
/* RGB8 */
{ PixelFormat::RGB332, {