libcamera/src
Jacopo Mondi b2839ed68a libcamera: ipu3: Fix RAW sizes selection
Commit 7208e70211 ("libcamera: ipu3: Always use sensor full frame size")
changed the CIO2 configuration procedure to always select the full
sensor resolution to work around an ImgU configuration issue, as
reported in the todo item introduced in said commit.

When capturing a RAW stream only and the ImgU is not involved, the CIO2
has to be configured with the requested stream size to avoid adjusting
the stream to the sensor resolution.

As an example, capturing a raw frame smaller than the sensor resolution
with this patch applied results in the stream configuration to be
correctly assigned.

$ cam -c1 -swidth=1056,height=784,role=raw
ipu3.cpp:207 CIO2 configuration: 1056x784-SGRBG10_IPU3
ipu3.cpp:222 Validating stream: 1056x784-SGRBG10_IPU3
ipu3.cpp:233 Assigned 1056x784-SGRBG10_IPU3 to the raw stream

Without this patch the same operation results in the stream resolution
to be adjusted to the sensor resolution.

$ cam -c1 -swidth=1056,height=784,role=raw
ipu3.cpp:201 CIO2 configuration: 4224x3136-SGRBG10_IPU3
ipu3.cpp:216 Validating stream: 1056x784-SGRBG10_IPU3
ipu3.cpp:227 Assigned 4224x3136-SGRBG10_IPU3 to the raw stream
ipu3.cpp:297 Stream 0 configuration adjusted to 4224x3136-SGRBG10_IPU3
Camera configuration adjusted

Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
2021-02-05 14:22:15 +01:00
..
android android: camera_device: Report HOT_PIXEL_MAP_MODE as OFF 2021-02-05 13:25:30 +01:00
cam cam: Only queue the exact number of requests asked for 2021-02-05 11:10:29 +01:00
gstreamer gstreamer: libcamerasrc: Delete configuration before stopping camera manager 2020-11-07 20:24:31 +02:00
ipa libcamera: ipa: ipu3: Add an IPA skeleton for the IPU3 pipeline 2021-02-05 01:20:32 +01:00
libcamera libcamera: ipu3: Fix RAW sizes selection 2021-02-05 14:22:15 +01:00
qcam qcam: Make log less verbose by default 2020-12-01 15:16:17 +02:00
v4l2 src: meson: Simplify v4l2 enablement 2020-12-30 15:31:53 +00:00
meson.build src: meson: Simplify v4l2 enablement 2020-12-30 15:31:53 +00:00