summaryrefslogtreecommitdiff
path: root/src/ipa/ipu3
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-03-15 15:34:06 +0200
committerKieran Bingham <kieran.bingham@ideasonboard.com>2022-03-17 16:35:04 +0000
commit4b2515899cb01c2fd99769a94b3221058279fc1d (patch)
treea002f2fd5a2085160fabf28aa302fb1666870263 /src/ipa/ipu3
parentf0bfb2f19e2fbf82ed49b703208cb98704d5d5af (diff)
ipa: ipu3: agc: Reset frame count when configuring AGC
The frame count is used to skip the gain and exposure filtering when starting. It thus needs to be reset when configuring the algorithm, to avoid slower convergence when stopping and restarting. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/ipa/ipu3')
-rw-r--r--src/ipa/ipu3/algorithms/agc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ipa/ipu3/algorithms/agc.cpp b/src/ipa/ipu3/algorithms/agc.cpp
index 1eb1bcef..70cff3fe 100644
--- a/src/ipa/ipu3/algorithms/agc.cpp
+++ b/src/ipa/ipu3/algorithms/agc.cpp
@@ -102,6 +102,7 @@ int Agc::configure(IPAContext &context,
frameContext.agc.gain = std::max(minAnalogueGain_, kMinAnalogueGain);
frameContext.agc.exposure = 10ms / configuration.sensor.lineDuration;
+ frameCount_ = 0;
return 0;
}