summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Plowman <david.plowman@raspberrypi.com>2020-10-26 17:19:05 +0000
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-10-27 00:42:40 +0200
commita16edeb3848c6e6693bfaa24c5eb1744c5d9c445 (patch)
treead738472c8745e1462dc20a5c552c717bed03b98 /src
parent40c670626f0ee4a82f25f0b8ceb558dcd6ba2ea5 (diff)
libcamera: raspberrypi: Initialise the SensorCropMaximum property
Initialise it to show we support its use, however, set it to all zeroes to indicate that it's not meaningful yet. Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src')
-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 dd62dfc7..763451a8 100644
--- a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
+++ b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
@@ -927,6 +927,13 @@ bool PipelineHandlerRPi::match(DeviceEnumerator *enumerator)
data->properties_ = data->sensor_->properties();
/*
+ * Set a default value for the ScalerCropMaximum property to show
+ * that we support its use, however, initialise it to zero because
+ * it's not meaningful until a camera mode has been chosen.
+ */
+ data->properties_.set(properties::ScalerCropMaximum, Rectangle{});
+
+ /*
* We cache three things about the sensor in relation to transforms
* (meaning horizontal and vertical flips).
*