summaryrefslogtreecommitdiff
path: root/src/libcamera/pipeline
diff options
context:
space:
mode:
authorDavid Plowman <david.plowman@raspberrypi.com>2021-05-05 14:53:08 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-05-11 02:31:19 +0300
commit82e4a9802608f5d3d36958985afffafc4a80d24e (patch)
treee728d96d3ab5057ec14c059e6a8ed5a8e9f9c1d7 /src/libcamera/pipeline
parent91122dea978c880b9bb03a78641ff5585e20be8c (diff)
libcamera: pipeline: raspberrypi: Update ControlInfoMap after sensor format change
The Raspberry Pi pipeline handler does not update the sensor format using CameraSensor::setFormat(), so it must manually force the update of the associated ControlInfoMap. Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/libcamera/pipeline')
-rw-r--r--src/libcamera/pipeline/raspberrypi/raspberrypi.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
index b2256493..82ae0482 100644
--- a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
+++ b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
@@ -608,6 +608,13 @@ int PipelineHandlerRPi::configure(Camera *camera, CameraConfiguration *config)
if (ret)
return ret;
+ /*
+ * The control ranges associated with the sensor may need updating
+ * after a format change.
+ * \todo Use the CameraSensor::setFormat API instead.
+ */
+ data->sensor_->updateControlInfo();
+
LOG(RPI, Info) << "Sensor: " << camera->id()
<< " - Selected mode: " << sensorFormat.toString();