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>
This commit is contained in:
Kate Hsuan 2022-04-13 15:43:53 +08:00 committed by Kieran Bingham
parent d9692cd481
commit 0111feb04b

View file

@ -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 */