summaryrefslogtreecommitdiff
path: root/src/libcamera/formats.cpp
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-07-24 10:37:42 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-07-27 17:46:17 +0200
commit3437067e9bd923ee4dce857d83d7bce0f791537d (patch)
tree36e1decdfbb3a39dd51fae470115027f62b9235b /src/libcamera/formats.cpp
parent90c793c6989fe6913faec920649062ad64b43ff0 (diff)
libcamera: Add support for 16-bit Bayer formats
Add support for 16-bit Bayer formats. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/libcamera/formats.cpp')
-rw-r--r--src/libcamera/formats.cpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/libcamera/formats.cpp b/src/libcamera/formats.cpp
index 11774b0c..cd63c15c 100644
--- a/src/libcamera/formats.cpp
+++ b/src/libcamera/formats.cpp
@@ -563,6 +563,46 @@ const std::map<PixelFormat, PixelFormatInfo> pixelFormatInfo{
.pixelsPerGroup = 2,
.planes = {{ { 3, 1 }, { 0, 0 }, { 0, 0 } }},
} },
+ { formats::SBGGR16, {
+ .name = "SBGGR16",
+ .format = formats::SBGGR16,
+ .v4l2Format = V4L2PixelFormat(V4L2_PIX_FMT_SBGGR16),
+ .bitsPerPixel = 16,
+ .colourEncoding = PixelFormatInfo::ColourEncodingRAW,
+ .packed = false,
+ .pixelsPerGroup = 2,
+ .planes = {{ { 4, 1 }, { 0, 0 }, { 0, 0 } }},
+ } },
+ { formats::SGBRG16, {
+ .name = "SGBRG16",
+ .format = formats::SGBRG16,
+ .v4l2Format = V4L2PixelFormat(V4L2_PIX_FMT_SGBRG16),
+ .bitsPerPixel = 16,
+ .colourEncoding = PixelFormatInfo::ColourEncodingRAW,
+ .packed = false,
+ .pixelsPerGroup = 2,
+ .planes = {{ { 4, 1 }, { 0, 0 }, { 0, 0 } }},
+ } },
+ { formats::SGRBG16, {
+ .name = "SGRBG16",
+ .format = formats::SGRBG16,
+ .v4l2Format = V4L2PixelFormat(V4L2_PIX_FMT_SGRBG16),
+ .bitsPerPixel = 16,
+ .colourEncoding = PixelFormatInfo::ColourEncodingRAW,
+ .packed = false,
+ .pixelsPerGroup = 2,
+ .planes = {{ { 4, 1 }, { 0, 0 }, { 0, 0 } }},
+ } },
+ { formats::SRGGB16, {
+ .name = "SRGGB16",
+ .format = formats::SRGGB16,
+ .v4l2Format = V4L2PixelFormat(V4L2_PIX_FMT_SRGGB16),
+ .bitsPerPixel = 16,
+ .colourEncoding = PixelFormatInfo::ColourEncodingRAW,
+ .packed = false,
+ .pixelsPerGroup = 2,
+ .planes = {{ { 4, 1 }, { 0, 0 }, { 0, 0 } }},
+ } },
{ formats::SBGGR10_IPU3, {
.name = "SBGGR10_IPU3",
.format = formats::SBGGR10_IPU3,