[libcamera-devel] [PATCH v3 3/6] libcamera: Add IspCrop control

David Plowman david.plowman at raspberrypi.com
Tue Sep 29 18:39:57 CEST 2020


The IspCrop control selects how much of the sensor's output image
will be scaled to form the 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 | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml
index 3560d4a8..46a4bd94 100644
--- a/src/libcamera/control_ids.yaml
+++ b/src/libcamera/control_ids.yaml
@@ -273,4 +273,16 @@ controls:
         order in an array of 9 floating point values.
 
       size: [3x3]
+
+  - IspCrop:
+      type: Rectangle
+      description: |
+        Sets the image portion that will be scaled up to form the
+        whole of the final output image. The selection rectangle is
+        expressed in pixel units and defined relatively to the size
+        of the frame described by the SensorOutputSize property.
+
+        This control can be used to implement digital zoom.
+
+        \sa properties::SensorOutputSize
 ...
-- 
2.20.1



More information about the libcamera-devel mailing list