summaryrefslogtreecommitdiff
path: root/src/ipa
diff options
context:
space:
mode:
authorUmang Jain <umang.jain@ideasonboard.com>2021-11-30 10:52:53 +0530
committerUmang Jain <umang.jain@ideasonboard.com>2021-11-30 17:33:04 +0530
commit68e4f70a6937a69339c3f48502cd4e332c3a16ca (patch)
tree8eb9e9fe6668b32e5ae8f11a5d4180cc26bee2f0 /src/ipa
parenta29f122a776ad51bb77921361e5e37039481ccbd (diff)
ipa: ipu3: Rectify gain value reporting in request metadata
Report value of sensor's gain pertaining to the current request completion, as that is the gain value the request completed with. The Agc algorithm processes the gain value for incoming next request hence it should not be reported in request's metadata. Signed-off-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/ipa')
-rw-r--r--src/ipa/ipu3/ipu3.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipa/ipu3/ipu3.cpp b/src/ipa/ipu3/ipu3.cpp
index b0c75541..76182587 100644
--- a/src/ipa/ipu3/ipu3.cpp
+++ b/src/ipa/ipu3/ipu3.cpp
@@ -628,7 +628,7 @@ void IPAIPU3::parseStatistics(unsigned int frame,
int64_t frameDuration = (defVBlank_ + sensorInfo_.outputSize.height) * lineDuration_.get<std::micro>();
ctrls.set(controls::FrameDuration, frameDuration);
- ctrls.set(controls::AnalogueGain, context_.frameContext.agc.gain);
+ ctrls.set(controls::AnalogueGain, context_.frameContext.sensor.gain);
ctrls.set(controls::ColourTemperature, context_.frameContext.awb.temperatureK);