[libcamera-devel] [PATCH 2/6] libcamera: Initialise the SensorOutputSize property
David Plowman
david.plowman at raspberrypi.com
Tue Sep 22 12:03:56 CEST 2020
Add a default initialisation according to the sensor resolution,
though it will need updating when the camera mode changes.
Signed-off-by: David Plowman <david.plowman at raspberrypi.com>
---
src/libcamera/camera_sensor.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/libcamera/camera_sensor.cpp b/src/libcamera/camera_sensor.cpp
index d2679a4..c9a19b0 100644
--- a/src/libcamera/camera_sensor.cpp
+++ b/src/libcamera/camera_sensor.cpp
@@ -277,6 +277,12 @@ int CameraSensor::init()
*/
resolution_ = sizes_.back();
+ /*
+ * Set a default value for the SensorOutputSize, though it will have to
+ * be updated when new camera modes are chosen.
+ */
+ properties_.set(properties::SensorOutputSize, resolution_);
+
return 0;
}
--
2.20.1
More information about the libcamera-devel
mailing list