From patchwork Wed Mar 19 16:11:20 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Klug X-Patchwork-Id: 22993 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 93E39C32FE for ; Wed, 19 Mar 2025 16:12:43 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 49A0368970; Wed, 19 Mar 2025 17:12:43 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="oEoiL6Rs"; 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 673836895B for ; Wed, 19 Mar 2025 17:12:41 +0100 (CET) Received: from ideasonboard.com (unknown [IPv6:2a00:6020:448c:6c00:760:e5ca:4814:99c7]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 7BB2655A; Wed, 19 Mar 2025 17:10:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1742400658; bh=NxJ8FBTXkqXAEwUUlhcK1v+TxRRXWgFK/YjME/mdJFA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oEoiL6RseziHCvvxVDqPORS6BncQSePkienjIQa1hKVsbUz2+SJdGuP6GUNrJZBEs UeArT7PlSAnMMI4e5crlDsmvnttcIuWgmBMu1u9Dvw9xrNlOEN1iHx/lDo4MtvToTG BUITHFBGSIEsSp8Zfi56laoa9GmnquZRxanyIfTc= From: Stefan Klug To: libcamera-devel@lists.libcamera.org Cc: Stefan Klug Subject: [PATCH v2 15/17] ipa: rkisp1: awb: Set rgb mean limits to 180 Date: Wed, 19 Mar 2025 17:11:20 +0100 Message-ID: <20250319161152.63625-16-stefan.klug@ideasonboard.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250319161152.63625-1-stefan.klug@ideasonboard.com> References: <20250319161152.63625-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 --- Changes in v2: - None --- 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 149c6aa59c8d..324bc14b42a0 100644 --- a/src/ipa/rkisp1/algorithms/awb.cpp +++ b/src/ipa/rkisp1/algorithms/awb.cpp @@ -261,9 +261,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;