[libcamera-devel] [PATCH 2/3] libcamera: controls: Specify manual gain units and change exposure units

Naushir Patuck naush at raspberrypi.com
Mon Feb 17 15:26:08 CET 2020


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

Use double for ManualGain to allow fractional gain adjustments.

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

diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml
index 4befec7..33062d6 100644
--- a/src/libcamera/control_ids.yaml
+++ b/src/libcamera/control_ids.yaml
@@ -44,10 +44,10 @@ controls:
 
   - ManualExposure:
       type: int32_t
-      description: Specify a fixed exposure time in milli-seconds
+      description: Specify a fixed exposure time in micro-seconds
 
   - ManualGain:
-      type: int32_t
-      description: Specify a fixed gain parameter
+      type: double
+      description: Specify a fixed gain parameter.
 
 ...
-- 
2.17.1



More information about the libcamera-devel mailing list