summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-06-23 04:00:26 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-06-24 19:07:36 +0200
commitc2bfe003e788c2e7cc95fe9b273af0596f5d725f (patch)
tree6b1b17a9de60b7e0c12f8220ebce013996fa1fb7 /src
parentfc520719a92f0f5cb3f673f09816686f6aaae682 (diff)
libcamera: formats: Add formats for IPU3
When replacing DRM FourCCs with libcamera formats IPU3 format descriptors where missing resulting in RAW capture not being possible. Fix this by adding the missing descriptors. Fixes: 56c99424edd64c5a ("libcamera: pipeline: Replace explicit DRM FourCCs with libcamera formats") Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/formats.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/libcamera/formats.cpp b/src/libcamera/formats.cpp
index c0b53ce7..151e7cc0 100644
--- a/src/libcamera/formats.cpp
+++ b/src/libcamera/formats.cpp
@@ -435,6 +435,34 @@ const std::map<PixelFormat, PixelFormatInfo> pixelFormatInfo{
.colourEncoding = PixelFormatInfo::ColourEncodingRAW,
.packed = true,
} },
+ { formats::SBGGR10_IPU3, {
+ .format = formats::SBGGR10_IPU3,
+ .v4l2Format = V4L2PixelFormat(V4L2_PIX_FMT_IPU3_SBGGR10),
+ .bitsPerPixel = 10,
+ .colourEncoding = PixelFormatInfo::ColourEncodingRAW,
+ .packed = true,
+ } },
+ { formats::SGBRG10_IPU3, {
+ .format = formats::SGBRG10_IPU3,
+ .v4l2Format = V4L2PixelFormat(V4L2_PIX_FMT_IPU3_SGBRG10),
+ .bitsPerPixel = 10,
+ .colourEncoding = PixelFormatInfo::ColourEncodingRAW,
+ .packed = true,
+ } },
+ { formats::SGRBG10_IPU3, {
+ .format = formats::SGRBG10_IPU3,
+ .v4l2Format = V4L2PixelFormat(V4L2_PIX_FMT_IPU3_SGRBG10),
+ .bitsPerPixel = 10,
+ .colourEncoding = PixelFormatInfo::ColourEncodingRAW,
+ .packed = true,
+ } },
+ { formats::SRGGB10_IPU3, {
+ .format = formats::SRGGB10_IPU3,
+ .v4l2Format = V4L2PixelFormat(V4L2_PIX_FMT_IPU3_SRGGB10),
+ .bitsPerPixel = 10,
+ .colourEncoding = PixelFormatInfo::ColourEncodingRAW,
+ .packed = true,
+ } },
/* Compressed formats. */
{ formats::MJPEG, {