From patchwork Sat Jun 1 23:57:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 20185 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 4C546BDE6B for ; Sat, 1 Jun 2024 23:57:58 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 3D123634BA; Sun, 2 Jun 2024 01:57:57 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="MBG0smVV"; 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 E9F1161A46 for ; Sun, 2 Jun 2024 01:57:54 +0200 (CEST) Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A4F8039F; Sun, 2 Jun 2024 01:57:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1717286268; bh=jp96h1r9TeIzpsVlob8+C+AxBNeaQWiGp6NNOSNwVBk=; h=From:To:Cc:Subject:Date:From; b=MBG0smVVSSvVsDj0nVmiDk8E7qXqBxzIK+P6e8A0U0kProdwRIxmTXTykpfLgrBh2 LkQ5UKQGHmBBMvHT1pmK/yQxy0XfvdTxXIEo8qEq0gzKks/41ctLKa1UoXzz6gwzNj qDZWmtO4/9YRQl/SQ0Y8slYf1de+VXeA+r8CLvX8= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Cc: Paul Elder Subject: [PATCH] test: ipa: rkisp1-utils: Fix coding style for template arguments Date: Sun, 2 Jun 2024 02:57:40 +0300 Message-ID: <20240601235740.14594-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.44.2 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" The coding style names template arguments using CamelCase with an uppercase initial letter. Fix the template arguments in the rkisp1-utils test. Signed-off-by: Laurent Pinchart Reviewed-by: Paul Elder Reviewed-by: Kieran Bingham --- test/ipa/rkisp1/rkisp1-utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) base-commit: aad5837d70f8d3dc19f62f88f1434e3c9cf5ffbe diff --git a/test/ipa/rkisp1/rkisp1-utils.cpp b/test/ipa/rkisp1/rkisp1-utils.cpp index 9fff0cdcef15..e48f8d3622d2 100644 --- a/test/ipa/rkisp1/rkisp1-utils.cpp +++ b/test/ipa/rkisp1/rkisp1-utils.cpp @@ -21,10 +21,10 @@ using namespace ipa::rkisp1; class RkISP1UtilsTest : public Test { protected: - template + template int testSingleFixedPoint(double input, T expected) { - T ret = utils::floatingToFixedPoint(input); + T ret = utils::floatingToFixedPoint(input); if (ret != expected) { cerr << "Expected " << input << " to convert to " << expected << ", got " << ret << std::endl; @@ -35,7 +35,7 @@ protected: * The precision check is fairly arbitrary but is based on what * the rkisp1 is capable of in the crosstalk module. */ - double f = utils::fixedToFloatingPoint(ret); + double f = utils::fixedToFloatingPoint(ret); if (std::abs(f - input) > 0.005) { cerr << "Reverse conversion expected " << ret << " to convert to " << input