libcamera: Add ScalerCrop control

The ScalerCrop control selects how much of the sensor's active pixel
array will be scaled to form the final output image. It can be used to
implement digital zoom.

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:
David Plowman 2020-10-26 17:19:03 +00:00 committed by Laurent Pinchart
parent 5aabf85d2c
commit c1fe17d73e

View file

@ -517,4 +517,17 @@ controls:
additional processing step performed after the ISP pass (in example face
detection, additional format conversions etc) count as an additional
pipeline stage.
- ScalerCrop:
type: Rectangle
description: |
Sets the image portion that will be scaled to form the whole of
the final output image. The (x,y) location of this rectangle is
relative to the PixelArrayActiveAreas that is being used. The units
remain native sensor pixels, even if the sensor is being used in
a binning or skipping mode.
This control is only present when the pipeline supports scaling. Its
maximum valid value is given by the properties::ScalerCropMaximum
property, and the two can be used to implement digital zoom.
...