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

David Plowman david.plowman at raspberrypi.com
Tue Sep 22 12:03: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 | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml
index 3560d4a..a6a73c8 100644
--- a/src/libcamera/control_ids.yaml
+++ b/src/libcamera/control_ids.yaml
@@ -273,4 +273,13 @@ controls:
         order in an array of 9 floating point values.
 
       size: [3x3]
+
+  - IspCrop:
+      type: Rectangle
+      description: |
+        Sets the portion of the full sensor image, in pixels, that will be
+        scaled up to form the whole of the final output image. This control
+        can be used to implement digital zoom. The size of the full sensor
+        image within which an application can crop is available from the
+        SensorOutputSize property.
 ...
-- 
2.20.1



More information about the libcamera-devel mailing list