@@ -30,6 +30,7 @@
#include <libcamera/control_ids.h>
#include <libcamera/geometry.h>
#include <libcamera/pixel_format.h>
+#include <libcamera/property_ids.h>
#include <libcamera/stream.h>
#include "libcamera/internal/camera.h"
@@ -1523,6 +1524,13 @@ int SimplePipelineHandler::configure(Camera *camera, CameraConfiguration *c)
if (ret < 0)
return ret;
+ IPACameraSensorInfo sensorInfo;
+ ret = data->sensor_->sensorInfo(&sensorInfo);
+ if (ret)
+ return ret;
+
+ data->properties_.set(properties::ScalerCropMaximum, sensorInfo.analogCrop);
+
/* Configure the video node, taking into account any Bayer pattern change. */
V4L2PixelFormat videoFormat;
if (format.code == pipeConfig->code) {
Even without a specific scaler, this gives the application information about the rectangle that conveys the pixels being displayed in the mode. Provide the analog crop region to the camera properties. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> --- src/libcamera/pipeline/simple/simple.cpp | 8 ++++++++ 1 file changed, 8 insertions(+)