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:
parent
d9692cd481
commit
0111feb04b
1 changed files with 3 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue