summaryrefslogtreecommitdiff
path: root/src/ipa
diff options
context:
space:
mode:
authorKate Hsuan <hpa@redhat.com>2022-04-13 15:43:53 +0800
committerKieran Bingham <kieran.bingham@ideasonboard.com>2022-04-14 00:19:37 +0200
commit0111feb04b4e2442519d3dbdcd572b573e750316 (patch)
treec20a8cdbc3ac6fcbb16f741d4ce5926f68090ef9 /src/ipa
parentd9692cd48166d7d3a8bde48c10f10436106a72a6 (diff)
ipa: ipu3: af: A not initialized frame ignore counter fixing
A not initialized frame ignore counter (ignoreCounter_) makes the AF function not work since the ignore counter may start from a random negative number. The counter was set to kIgnoreFrame when AF is in prepare stage. Signed-off-by: Kate Hsuan <hpa@redhat.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/ipa')
-rw-r--r--src/ipa/ipu3/algorithms/af.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ipa/ipu3/algorithms/af.cpp b/src/ipa/ipu3/algorithms/af.cpp
index addf98af..f700b01f 100644
--- a/src/ipa/ipu3/algorithms/af.cpp
+++ b/src/ipa/ipu3/algorithms/af.cpp
@@ -181,6 +181,9 @@ int Af::configure(IPAContext &context, const IPAConfigInfo &configInfo)
/* Initial max focus step */
maxStep_ = kMaxFocusSteps;
+ /* Initial frame ignore counter */
+ afIgnoreFrameReset();
+
/* Initial focus value */
context.frameContext.af.focus = 0;
/* Maximum variance of the AF statistics */