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

Message ID 20200922100400.30766-4-david.plowman@raspberrypi.com
State Superseded
Headers show
Series
  • Digital zoom
Related show

Commit Message

David Plowman Sept. 22, 2020, 10:03 a.m. UTC
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@raspberrypi.com>
---
 src/libcamera/control_ids.yaml | 9 +++++++++
 1 file changed, 9 insertions(+)

Patch

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.
 ...