From 4ee97baf993c2493fba4033aafb204f217dd2440 Mon Sep 17 00:00:00 2001 From: Daniel Semkowicz via libcamera-devel Date: Wed, 13 Jul 2022 10:43:17 +0200 Subject: ipa: rkisp1: af: Skip one frame after changing the AF window Drop the first frame after the window change was requested to guarantee that sharpness level was calculated for the new window. Signed-off-by: Daniel Semkowicz --- src/ipa/rkisp1/algorithms/af.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ipa/rkisp1/algorithms/af.cpp') diff --git a/src/ipa/rkisp1/algorithms/af.cpp b/src/ipa/rkisp1/algorithms/af.cpp index a0d914e0..e2769e69 100644 --- a/src/ipa/rkisp1/algorithms/af.cpp +++ b/src/ipa/rkisp1/algorithms/af.cpp @@ -128,6 +128,7 @@ void Af::updateCurrentWindow(const Rectangle &window) { currentWindow_ = window; updateAfwindow_ = true; + setFramesToSkip(kWindowWaitFrames); } REGISTER_IPA_ALGORITHM(Af, "Af") -- cgit v1.2.1