summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Plowman <david.plowman@raspberrypi.com>2020-11-26 14:50:04 +0000
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-12-20 05:00:00 +0200
commitb4d21c62d1957530ca197cfcbb65370a1415cc33 (patch)
treea50b0a4b5fb1556c750a6ae555ffeda094411183
parentbcbd9fed8f941a808090792066afe014610a971a (diff)
libcamera: controls: Add DigitalGain control
This control reports the global digital gain applied by the pipeline as a whole, after capturing a raw image from the sensor. Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--src/libcamera/control_ids.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml
index 6d6f0fee..3c5f4469 100644
--- a/src/libcamera/control_ids.yaml
+++ b/src/libcamera/control_ids.yaml
@@ -306,6 +306,23 @@ controls:
maximum valid value is given by the properties::ScalerCropMaximum
property, and the two can be used to implement digital zoom.
+ - DigitalGain:
+ type: float
+ description: |
+ Digital gain value applied during the processing steps applied
+ to the image as captured from the sensor.
+
+ The global digital gain factor is applied to all the colour channels
+ of the RAW image. Different pipeline models are free to
+ specify how the global gain factor applies to each separate
+ channel.
+
+ If an imaging pipeline applies digital gain in distinct
+ processing steps, this value indicates their total sum.
+ Pipelines are free to decide how to adjust each processing
+ step to respect the received gain factor and shall report
+ their total value in the request metadata.
+
# ----------------------------------------------------------------------------
# Draft controls section