[libcamera-devel] [PATCH v2 1/6] libcamera: controls: Specify manual gain units and change exposure units

Naushir Patuck naush at raspberrypi.com
Mon Mar 9 13:33:14 CET 2020


Use micro-seconds for ManualExposure. This is changed from milli-
seconds. The latter would not allow very low exposure times.

ManualGain switch to use a float to allow fractional gain adjustments.

Signed-off-by: Naushir Patuck <naush at raspberrypi.com>
---
 src/libcamera/control_ids.yaml | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml
index 4befec74..5bbe65ae 100644
--- a/src/libcamera/control_ids.yaml
+++ b/src/libcamera/control_ids.yaml
@@ -44,10 +44,17 @@ controls:
 
   - ManualExposure:
       type: int32_t
-      description: Specify a fixed exposure time in milli-seconds
+      description: |
+        Specify a fixed exposure time in micro-seconds to be applied in the
+        sensor device.
+
+        \sa ManualGain
 
   - ManualGain:
-      type: int32_t
-      description: Specify a fixed gain parameter
+      type: float
+      description: |
+        Specify a fixed gain value to be applied in the pipeline.  This gain is
+        applied to all colour channels.
 
+        \sa ManualExposure
 ...
-- 
2.17.1



More information about the libcamera-devel mailing list