From patchwork Thu Feb 4 09:34:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 11133 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 E343BBD162 for ; Thu, 4 Feb 2021 09:35:07 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 742F761422; Thu, 4 Feb 2021 10:35:07 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="lrIbvjC4"; dkim-atps=neutral Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 1017761404 for ; Thu, 4 Feb 2021 10:35:04 +0100 (CET) Received: by mail-wr1-x42f.google.com with SMTP id u14so2685975wri.3 for ; Thu, 04 Feb 2021 01:35:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gBTFzAW/1hF57reoTu/2os27+DX/gEecEzMfr1mtMnQ=; b=lrIbvjC4KuxkQ2hQqkq0+Q7YKz9zIPKKc2Jp9uF66udVFQ9itrfcHvfSf2a66mul8Q QciRi6CCEwBlC89BbOZb96oc5o03rbx3Q178xErBDB/flf2GVQTFlk9cTxuEdjSVQhpv p3k4wN887kMlg8naoun6VoCtqn0DxnfVw9JbSsZc4OmZ6V7yDI/6DilfEg8fIJ3Zdbzl 35xfsXEDxrbGXdFZCo679xuAUzoApnjvG9GSD2E/QXrjyx5P0jrCc7ZIS4GbAPoqbayS 7muriRJKVLfzY+wBv+AVgXp7mW6RQ7kvGQVMM8pGGLe4fypyWzXizkjxKZLE7vJIP42c QzcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gBTFzAW/1hF57reoTu/2os27+DX/gEecEzMfr1mtMnQ=; b=Y1ShG7yWiZ8YJIQ1+adOEHvTyplo56gCPEL4S4aCMi39Ez7Dz0Bx1fsRssB3YFXFiB kW4DO1KxwuBRTOO3nCnrMtQyEsZhb//OjfHNMoOrxDdubK/ulkNPGYY8laSMcE4hff6V XM3hMfRZ4RaHDDrSKC+jLlduRiCOg9YnNVC+fvBJV8XPWbvavs4+1UfG+CtQzba42cmg +JYb6Z+mtudcIdKZm/s5MXhtwhBRgfL4EVp2Hc1vqtzM+bHZOuxdQU4o2ZrwDgChw1sR aaIRYlfavRFBM5Gw/WvrEOq9nhGhjyUQLXgElDkW5FXfSaHNIfBO+Y/fh5Vo6PzMNRUW x86Q== X-Gm-Message-State: AOAM530g5R4KXcq8t+vL8p4m9kG9maPMT7ackEM9h6zAUdmOjYbQ2vXY 4WKyoWXhVdh+nTI8zjQNW4oZgYhZTQ9R7zzj X-Google-Smtp-Source: ABdhPJxhvTDmLL+vB749bIbgn1m9T88kZf7Ju/ICoHOP+VC8Y4viZu0z+Xd2E8UeyUrvzdCTCFW+6A== X-Received: by 2002:a5d:4dd0:: with SMTP id f16mr8235254wru.304.1612431303647; Thu, 04 Feb 2021 01:35:03 -0800 (PST) Received: from pi4-davidp.lan (plowpeople3.plus.com. [80.229.223.72]) by smtp.gmail.com with ESMTPSA id g16sm5280580wmi.30.2021.02.04.01.35.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 01:35:03 -0800 (PST) From: David Plowman To: libcamera-devel@lists.libcamera.org Date: Thu, 4 Feb 2021 09:34:53 +0000 Message-Id: <20210204093457.6879-4-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210204093457.6879-1-david.plowman@raspberrypi.com> References: <20210204093457.6879-1-david.plowman@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 3/7] ipa: raspberrypi: ccm: Remove unnecessary atomic variable 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" SetSaturation() gets called synchronously so there is no need for saturation_ to be atomic. Signed-off-by: David Plowman Reviewed-by: Laurent Pinchart --- src/ipa/raspberrypi/controller/rpi/ccm.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ipa/raspberrypi/controller/rpi/ccm.hpp b/src/ipa/raspberrypi/controller/rpi/ccm.hpp index fcf077e7..330ed51f 100644 --- a/src/ipa/raspberrypi/controller/rpi/ccm.hpp +++ b/src/ipa/raspberrypi/controller/rpi/ccm.hpp @@ -7,7 +7,6 @@ #pragma once #include -#include #include "../ccm_algorithm.hpp" #include "../pwl.hpp" @@ -70,7 +69,7 @@ public: private: CcmConfig config_; - std::atomic saturation_; + double saturation_; }; } // namespace RPiController