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: 56c99424ed
("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>
This commit is contained in:
parent
fc520719a9
commit
c2bfe003e7
1 changed files with 28 additions and 0 deletions
|
@ -435,6 +435,34 @@ const std::map<PixelFormat, PixelFormatInfo> pixelFormatInfo{
|
||||||
.colourEncoding = PixelFormatInfo::ColourEncodingRAW,
|
.colourEncoding = PixelFormatInfo::ColourEncodingRAW,
|
||||||
.packed = true,
|
.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. */
|
/* Compressed formats. */
|
||||||
{ formats::MJPEG, {
|
{ formats::MJPEG, {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue