[libcamera-devel] [PATCH v5 1/5] libcamera: Add ScalerCrop control

David Plowman david.plowman at raspberrypi.com
Fri Oct 23 12:21:55 CEST 2020


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

Signed-off-by: David Plowman <david.plowman at raspberrypi.com>
---
 src/libcamera/control_ids.yaml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml
index 4c415545..1c1f6699 100644
--- a/src/libcamera/control_ids.yaml
+++ b/src/libcamera/control_ids.yaml
@@ -284,4 +284,17 @@ controls:
         order in an array of 9 floating point values.
 
       size: [3x3]
+
+  - 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 PixelArrayActiveArea 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 it. Its
+        maximum valid value is given by the properties::ScalerCropMaximum
+        property, and the two can be used to implement digital zoom.
 ...
-- 
2.20.1



More information about the libcamera-devel mailing list