From patchwork Fri Oct 24 08:50:58 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Klug X-Patchwork-Id: 24800 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 1D4DABE080 for ; Fri, 24 Oct 2025 08:53:22 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id D42A06096A; Fri, 24 Oct 2025 10:53:21 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="c3Fz9iag"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id D8C9960938 for ; Fri, 24 Oct 2025 10:53:20 +0200 (CEST) Received: from ideasonboard.com (unknown [IPv6:2a00:6020:448c:6c00:7edc:62f4:c118:1549]) by perceval.ideasonboard.com (Postfix) with UTF8SMTPSA id 61CFB21D0; Fri, 24 Oct 2025 10:51:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1761295895; bh=6jtGsTXG0bEb6iM/1wRCadoSIAITU2l4SiCkOBLmmng=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c3Fz9iagT6AhALsIbEKdBg+cErkPWXglQeYiew+jSI9e4Tx+d3J4eARJU3HmP/dTi 8Fsv03AMvLwurrdyVHus6QemrcBT2pKayk2ZHzBKmhQlEqy7GHCe03v4b9pKVGHH/6 r0YkmLamdcC9Ip1fAD1+SY9jAPkGBD34NgTqf7o8= From: Stefan Klug To: libcamera-devel@lists.libcamera.org Cc: Stefan Klug Subject: [PATCH v1 34/35] ipa: rkisp1: Increase regulation speed Date: Fri, 24 Oct 2025 10:50:58 +0200 Message-ID: <20251024085130.995967-35-stefan.klug@ideasonboard.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20251024085130.995967-1-stefan.klug@ideasonboard.com> References: <20251024085130.995967-1-stefan.klug@ideasonboard.com> MIME-Version: 1.0 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Now that the rkisp1 is well synchronized, we can safely increase the regulation speed and reduce the number of startup frames. With current settings, the results based on the stats for frame 0 are active on frame 5. Setting the startup frames to 7 leaves room for one additional lost frame. Signed-off-by: Stefan Klug --- src/ipa/rkisp1/algorithms/agc.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ipa/rkisp1/algorithms/agc.cpp b/src/ipa/rkisp1/algorithms/agc.cpp index 71ad3a01d90c..e8f2324797d4 100644 --- a/src/ipa/rkisp1/algorithms/agc.cpp +++ b/src/ipa/rkisp1/algorithms/agc.cpp @@ -122,6 +122,9 @@ uint8_t Agc::computeHistogramPredivider(const Size &size, Agc::Agc() { supportsRaw_ = true; + /* rkisp1 is well synchronized, increase the speed. */ + regulationSpeed_ = 0.6; + numStartupFrames_ = 7; } /**