From patchwork Tue Sep 27 02:36:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 17438 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 5C8B4C327E for ; Tue, 27 Sep 2022 02:37:45 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 0AD59622EF; Tue, 27 Sep 2022 04:37:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1664246265; bh=VcoWLaP0G21qo8Zj/0ZRKtilZuv0yfvdBPF5HEhjo5k=; 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=WmCwT82JBKUcBEH6hjLG9ywDFpw6+CFR7n5TnUQWGD8IJ5CGem8ngWMj+7P5IY4TA rs3ps1TAazYOX6qN4peUYXkddOny9/88OoN8MpOYd1zm3HXTgCGZGc1lNEeCp87foo cxZXGSkiree3cH04VLrYVv/57brxenx80t0TJQW3PclvDyi9SJO/UPMkZR4ufE0NKI iNlP9sdDVcqZJxkCYFaQiTyvIM1m7vw6/MTzN2n2KkuTJ/a6TQZNRVYuIdaKIdByCs 5COSDoDk7qrF58WZihwI5r0/rJPqCJG7CEpiivon8ENM8rvQAQjMKp4yW1DPv9gR6d Sj3PodMM+e7Sw== 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 4A8CF622EA for ; Tue, 27 Sep 2022 04:37:42 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="HjY2+Yai"; dkim-atps=neutral Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A6458E5 for ; Tue, 27 Sep 2022 04:37:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1664246262; bh=VcoWLaP0G21qo8Zj/0ZRKtilZuv0yfvdBPF5HEhjo5k=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HjY2+YaiM1WoqE88pqnh4oJPxc0DYv9i3Pv/xHftkpxRZTm3IrxHmegEt577+egMl 0/BiAujE9wPGmvo8A/tJMaOxfcLiS9UtxhAuaRtU3XeyLLBFAZymnD1AxK6O0ucLIV XIXuT7WmvyFx23NOkOAZwBfQvhRPwNSmaRos1KTI= To: libcamera-devel@lists.libcamera.org Date: Tue, 27 Sep 2022 05:36:36 +0300 Message-Id: <20220927023642.12341-28-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220927023642.12341-1-laurent.pinchart@ideasonboard.com> References: <20220927023642.12341-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v5 27/33] ipa: rkisp1: awb: Store color temperature as an integer 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: Laurent Pinchart via libcamera-devel From: Laurent Pinchart Reply-To: Laurent Pinchart Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The color temperature doesn't need floating point precision, and is calculated by Awb::estimateCCT() as an unsigned integer. Store it with the same data type in the frame context. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham Reviewed-by: Jacopo Mondi --- src/ipa/rkisp1/ipa_context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipa/rkisp1/ipa_context.h b/src/ipa/rkisp1/ipa_context.h index 9a16dd6cf108..d0692f872960 100644 --- a/src/ipa/rkisp1/ipa_context.h +++ b/src/ipa/rkisp1/ipa_context.h @@ -101,7 +101,7 @@ struct IPAFrameContext : public FrameContext { double blue; } gains; - double temperatureK; + unsigned int temperatureK; bool autoEnabled; } awb;