[libcamera-devel] [RFC PATCH 2/4] libcamera: Add SensorCrop control

David Plowman david.plowman at raspberrypi.com
Mon Sep 7 18:44:48 CEST 2020


The SensorCrop 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.
---
 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..cebaa25 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]
+
+  - SensorCrop:
+      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