mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-26 01:55:51 +03:00
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>
This commit is contained in:
parent
40c670626f
commit
a16edeb384
1 changed files with 7 additions and 0 deletions
|
@ -926,6 +926,13 @@ bool PipelineHandlerRPi::match(DeviceEnumerator *enumerator)
|
||||||
/* Initialize the camera properties. */
|
/* Initialize the camera properties. */
|
||||||
data->properties_ = data->sensor_->properties();
|
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
|
* We cache three things about the sensor in relation to transforms
|
||||||
* (meaning horizontal and vertical flips).
|
* (meaning horizontal and vertical flips).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue