diff options
| author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2025-09-08 14:41:59 +0300 |
|---|---|---|
| committer | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2025-09-08 16:24:40 +0300 |
| commit | ae5ef452496e50fa18dc413837482980ea8fb943 (patch) | |
| tree | 98dada11b21155fcf4ede0aec6cbfcc565a731e6 /kms++ | |
| parent | 1813adae89203e15fc60344864fc2ca0d3c75e07 (diff) | |
pixelformats: Add missing RAW 16 formats
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Diffstat (limited to 'kms++')
| -rw-r--r-- | kms++/inc/kms++/pixelformats.h | 3 | ||||
| -rw-r--r-- | kms++/src/pixelformats.cpp | 36 |
2 files changed, 39 insertions, 0 deletions
diff --git a/kms++/inc/kms++/pixelformats.h b/kms++/inc/kms++/pixelformats.h index fac9c0f..2d97b32 100644 --- a/kms++/inc/kms++/pixelformats.h +++ b/kms++/inc/kms++/pixelformats.h @@ -110,6 +110,9 @@ enum class PixelFormat { SGBRG12P, SGRBG12P, SRGGB12P, + SBGGR16, + SGBRG16, + SGRBG16, SRGGB16, MJPEG, }; diff --git a/kms++/src/pixelformats.cpp b/kms++/src/pixelformats.cpp index 847c8a6..95a7153 100644 --- a/kms++/src/pixelformats.cpp +++ b/kms++/src/pixelformats.cpp @@ -934,6 +934,42 @@ static map<PixelFormat, PixelFormatInfo> format_info_array = { } }, { + PixelFormat::SBGGR16, { + PixelFormatInfo { + "SBGGR16", + "", + "BYR2", + PixelColorType::RAW, + { 2, 2 }, + { { 4, 2, 1, 1 } }, + } + } + }, + { + PixelFormat::SGBRG16, { + PixelFormatInfo { + "SGBRG16", + "", + "GB16", + PixelColorType::RAW, + { 2, 2 }, + { { 4, 2, 1, 1 } }, + } + } + }, + { + PixelFormat::SGRBG16, { + PixelFormatInfo { + "SGRBG16", + "", + "GR16", + PixelColorType::RAW, + { 2, 2 }, + { { 4, 2, 1, 1 } }, + } + } + }, + { PixelFormat::SRGGB16, { PixelFormatInfo { "SRGGB16", |
