From 4b2515899cb01c2fd99769a94b3221058279fc1d Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 15 Mar 2022 15:34:06 +0200 Subject: 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 Reviewed-by: Jean-Michel Hautbois Reviewed-by: Umang Jain Signed-off-by: Kieran Bingham --- src/ipa/ipu3/algorithms/agc.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; } -- cgit v1.2.1