From patchwork Mon Feb 17 10:01:49 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Klug X-Patchwork-Id: 22794 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 EF0C4C327D for ; Mon, 17 Feb 2025 10:02:34 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 4336C6867F; Mon, 17 Feb 2025 11:02:34 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="pJmE7BRe"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 16A0B68676 for ; Mon, 17 Feb 2025 11:02:31 +0100 (CET) Received: from ideasonboard.com (unknown [IPv6:2a00:6020:448c:6c00:b47f:e20a:c4c7:ece1]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 68129122C; Mon, 17 Feb 2025 11:01:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1739786469; bh=UyTYmg3epLgbAw/bGgeu9bXSA40/OfnEkbgBBHJWBP0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pJmE7BReNn6dvYBt0UcMN0yuD4KzDGcXYtn4oGM23YU5E4dZGx8ruL48H7nDf9Z8/ wq/8TgzL+aj5B764aNyMX0D6I3CMjjLThy3vRWRnhTM97kS0BlOYnr5GFzeldYLHk+ CkL70pMQJb5HfwdnSb5tfg0HL975Ru10xtkLkcy8= From: Stefan Klug To: libcamera-devel@lists.libcamera.org Cc: Stefan Klug Subject: [PATCH 08/10] ipa: rkisp: awb: Set rgb mean limits to 180 Date: Mon, 17 Feb 2025 11:01:49 +0100 Message-ID: <20250217100203.297894-9-stefan.klug@ideasonboard.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250217100203.297894-1-stefan.klug@ideasonboard.com> References: <20250217100203.297894-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" Set the mean limits to 180 to get reasonably good results from the rgb estimations. This is only for internal development as there is no code path to enable rgb estimations at runtime. Signed-off-by: Stefan Klug --- src/ipa/rkisp1/algorithms/awb.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ipa/rkisp1/algorithms/awb.cpp b/src/ipa/rkisp1/algorithms/awb.cpp index 347d38d226b4..12934771c69c 100644 --- a/src/ipa/rkisp1/algorithms/awb.cpp +++ b/src/ipa/rkisp1/algorithms/awb.cpp @@ -201,9 +201,9 @@ void Awb::prepare(IPAContext &context, const uint32_t frame, * awb_ref_cr, awb_min_y and awb_ref_cb respectively. The other * values are not used, set them to 0. */ - awbConfig->awb_ref_cr = 250; - awbConfig->min_y = 250; - awbConfig->awb_ref_cb = 250; + awbConfig->awb_ref_cr = 180; + awbConfig->min_y = 180; + awbConfig->awb_ref_cb = 180; awbConfig->max_y = 0; awbConfig->min_c = 0;