summaryrefslogtreecommitdiff
path: root/src/ipa/rkisp1/algorithms/af.cpp
diff options
context:
space:
mode:
authorDaniel Semkowicz via libcamera-devel <libcamera-devel@lists.libcamera.org>2022-07-13 10:43:17 +0200
committerJacopo Mondi <jacopo@jmondi.org>2022-07-14 20:12:17 +0200
commit4ee97baf993c2493fba4033aafb204f217dd2440 (patch)
tree7a4fe3b41fa3b86b85240eb7918039bc4967d6c9 /src/ipa/rkisp1/algorithms/af.cpp
parent287726495e68adaebe85a2daf52cae9dddbd3b6d (diff)
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 <dse@thaumatec.com>
Diffstat (limited to 'src/ipa/rkisp1/algorithms/af.cpp')
-rw-r--r--src/ipa/rkisp1/algorithms/af.cpp1
1 files changed, 1 insertions, 0 deletions
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")