[libcamera-devel] [PATCH v2 14/14] ipa: ipu3: Pass the AnalogueGain control
Jean-Michel Hautbois
jeanmichel.hautbois at ideasonboard.com
Wed Nov 10 20:59:01 CET 2021
We can set the controls::AnalogueGain metadata now that AGC is updating
it correctly.
Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois at ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
---
src/ipa/ipu3/ipu3.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/ipa/ipu3/ipu3.cpp b/src/ipa/ipu3/ipu3.cpp
index 9220fea5..e69382f9 100644
--- a/src/ipa/ipu3/ipu3.cpp
+++ b/src/ipa/ipu3/ipu3.cpp
@@ -637,6 +637,8 @@ void IPAIPU3::parseStatistics(unsigned int frame,
ctrls.set(controls::ExposureTime, context_.frameContext.agc.exposure * lineDuration_.count());
+ ctrls.set(controls::AnalogueGain, context_.frameContext.agc.gain);
+
/*
* \todo We should be able to add 'anything' (with a Control) in here to
* get information to say.
--
2.32.0
More information about the libcamera-devel
mailing list