summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Plowman <david.plowman@raspberrypi.com>2020-10-26 17:19:03 +0000
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-10-27 00:39:00 +0200
commitc1fe17d73eceb7705ac4dbd1f570569b2b104af3 (patch)
treee725ef5ef9fe513dcde935a960b42085b8ca3e67 /src
parent5aabf85d2c2075f912b6ffb6f90ff9583f20bab1 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/control_ids.yaml13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml
index 0bf566c7..c8874fa9 100644
--- a/src/libcamera/control_ids.yaml
+++ b/src/libcamera/control_ids.yaml
@@ -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.
...