From patchwork Thu Sep 8 01:41:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 17335 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 5B72BC3272 for ; Thu, 8 Sep 2022 01:42:57 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 0A13662102; Thu, 8 Sep 2022 03:42:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1662601377; bh=v3IeW1SqF7Gjhs0enIUlpe53Kc7QXui/tKAfw4nrhSw=; 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=FAm53P+w5h63taXMXWHltmOt9RzWtW6fS1TpSuzcnc4L6xHjaz5dZQluMOBjdEn1z 9ukhdI3TuwzZXcE63uYasMnHTx2zQuNLPDiML3FkrQvAflMdI7tvwUhfg5lA4OpHy4 FyBAN6vS+wf/XDphEfFRq2WosyLczSC+m5sb8CUNH3cPwtPNm6EEv8T6h1iajNFKxs 8L07Ywh/+I/+H7KuiAWN8luIo0v0PUStrCHX8bM4zQnUy13NCjn1Xo51jFLJfgDQxa l1nkx0Fzt1MCv6eESubze6Pebi53tGuE6PuObELtX2nGvJEsS7xbPogFp5GKMJ6lzO v3noff1ijpgkw== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 43105620FC for ; Thu, 8 Sep 2022 03:42:54 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="cOLZlwLK"; 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 BDD8C6CC for ; Thu, 8 Sep 2022 03:42:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1662601374; bh=v3IeW1SqF7Gjhs0enIUlpe53Kc7QXui/tKAfw4nrhSw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cOLZlwLKNy3BSlu7q1lRNe1+wjvO8+cAxXMTKy0SBjaANsw7Pfofl2qTCnru0wZTi ioL15DExJS9jPMd05Iid+PFg+wu7ZRTbHmzhylw0QbUy6dVXltqXkJFDwK3u0vD5s3 xfDhUczwmLQBYj5Q43p3DsX/IVe2P56UX/BuKNwg= To: libcamera-devel@lists.libcamera.org Date: Thu, 8 Sep 2022 04:41:54 +0300 Message-Id: <20220908014200.28728-27-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220908014200.28728-1-laurent.pinchart@ideasonboard.com> References: <20220908014200.28728-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v4 26/32] 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 c15b908afcc8..53787320e565 100644 --- a/src/ipa/rkisp1/ipa_context.h +++ b/src/ipa/rkisp1/ipa_context.h @@ -100,7 +100,7 @@ struct RkISP1FrameContext : public FrameContext { double blue; } gains; - double temperatureK; + unsigned int temperatureK; bool autoEnabled; } awb;