From patchwork Wed Jul 13 08:43:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Semkowicz X-Patchwork-Id: 16609 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 19948BE173 for ; Wed, 13 Jul 2022 08:43:53 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id CA3436332B; Wed, 13 Jul 2022 10:43:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1657701832; bh=fCrgdVHmSEufnXYcQdlMT2beO53VjtE+VMlao3J77LU=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=UEumBT40URmKujjTk4dg9ymaBXXIsdvnX2/J3awqaBv9lqV2AoEAvKNnsb0fQQNgv llNAEGYom1jnkOYcaEVzyO0aXIj5T5NDpr+cEmAItcm4Y0FWl3bQHrCzcCPxyK9Vp/ 6tzYynueEmGC8VL0aQGm5Hr4K4/BKN11GEPcz+IIkW1Nn3J0hbU/ji8c3p9VMOkSIx +vq3tpc54ZcufDdawJTCVPiYbqagTsfRznFfJ6mAZJgRMQ+ejeWkcN0Dc7fbIWtu8I /QsB9ttcWTIVdT9QiONpKn/DQ54DHsN1lwPkST5ZUUnHJQAMSS6IBnwL1GLK4CK3me 4gIUsO/PUIesw== Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 0D1016332E for ; Wed, 13 Jul 2022 10:43:50 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=thaumatec-com.20210112.gappssmtp.com header.i=@thaumatec-com.20210112.gappssmtp.com header.b="ww7JBy5e"; dkim-atps=neutral Received: by mail-wr1-x42a.google.com with SMTP id bu1so13291701wrb.9 for ; Wed, 13 Jul 2022 01:43:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaumatec-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=d8/XWnx8OcFXS7ZpNMum4EPOd2lP94RlC727NCfsgp4=; b=ww7JBy5eKajwK1Wy+lPJ0/gdc5YpNsDcmYpQsiZYn5Llhco+sbEjRGkvb/x/SN4Zek IwZBq9jYkjmhoeyM8sVR4Jbo9dhi5TOqZF1/uR1v26dQT7yPnXj3mLRDcZ6B0Wk30RBd 1xnbLQTGzD4qAlzccwZim/L+SZ6R4Ck9QacILU1XZhIWROFBYWFnylKQsolwxydJYGCc jhwTj+cOV8TevydQ/cmEWfMPGbtqwd0WdGavqoaUsT2BHdYZQZ3mVXkpPol5liyqjlil uOdGenkhKM1m2QzGqWOA2fczwqrfOMeFnNuJ50bkS6jihwW38bqj9ygk1GfAX775EFa+ FqjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=d8/XWnx8OcFXS7ZpNMum4EPOd2lP94RlC727NCfsgp4=; b=Y48LibCk3c5ipYv8O8cxB6/1H0sRppupBeELLYmVSfCryMM/A891Pw4kpvB5kyaYe4 jE8O06G2WOi5ZofkdXXpWp5OVKPeIpHXne3l9DZkMocwfX6nXZWz4JdFe4VsJ7xL1jxk mkCNKBOkOPpNdDBDcvKi1a1Oo+qdotuA1D8xZ6u309J8nvQ+u0mAJX8Y3KD+mPoae9zC f9JU/n7kbvrGDJa+f4zQwHvhu2XKRoK1imt9MVXC9bftF0h3HNiC+BqMWhQTlTKRylmA vlPvCel6yaa800PlBQYqd9Q9qX6CnUxP/dFb4y6fgU26U6tpjLJFvEY2FjRFWgYC3KkJ nguA== X-Gm-Message-State: AJIora9rnlKbY+hgt8nsnBozWBYBVb8WzNhbRYPI2y9Yfovx2yt9YFSp J57RqR45JLiP6c2cp8C6NUbZk5dFgYQW+w== X-Google-Smtp-Source: AGRyM1scGxjVmZsLnv8qklmd5IGXQKpPwJR5krhV+XX8yCXKHUHvXlpmNPB4qxbkmoqPmHMLhk6QGw== X-Received: by 2002:a5d:67c4:0:b0:21d:6d91:7b1a with SMTP id n4-20020a5d67c4000000b0021d6d917b1amr2060515wrw.313.1657701829882; Wed, 13 Jul 2022 01:43:49 -0700 (PDT) Received: from localhost.localdomain (ip092042140082.rev.nessus.at. [92.42.140.82]) by smtp.gmail.com with ESMTPSA id bg32-20020a05600c3ca000b003a04d19dab3sm5667468wmb.3.2022.07.13.01.43.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jul 2022 01:43:49 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Wed, 13 Jul 2022 10:43:17 +0200 Message-Id: <20220713084317.24268-12-dse@thaumatec.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220713084317.24268-1-dse@thaumatec.com> References: <20220713084317.24268-1-dse@thaumatec.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 11/11] ipa: rkisp1: af: Skip one frame after changing the AF window X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Daniel Semkowicz via libcamera-devel From: Daniel Semkowicz Reply-To: Daniel Semkowicz Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" 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 + src/ipa/rkisp1/algorithms/af.h | 1 + 2 files changed, 2 insertions(+) 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") diff --git a/src/ipa/rkisp1/algorithms/af.h b/src/ipa/rkisp1/algorithms/af.h index 36d0c9b0..b2da4890 100644 --- a/src/ipa/rkisp1/algorithms/af.h +++ b/src/ipa/rkisp1/algorithms/af.h @@ -38,6 +38,7 @@ private: bool updateAfwindow_ = false; static constexpr uint32_t kFLensWaitFrames = 2; + static constexpr uint32_t kWindowWaitFrames = 1; }; } /* namespace libcamera::ipa::rkisp1::algorithms */