From patchwork Tue Nov 30 06:45:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Michel Hautbois X-Patchwork-Id: 14879 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 6F384BF415 for ; Tue, 30 Nov 2021 06:45:55 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id C6B70605B4; Tue, 30 Nov 2021 07:45:54 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="iQh+nzJO"; 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 C0234604FC for ; Tue, 30 Nov 2021 07:45:52 +0100 (CET) Received: from tatooine.ideasonboard.com (unknown [IPv6:2a01:e0a:169:7140:699a:a10f:5b1e:89b7]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5A3148F0; Tue, 30 Nov 2021 07:45:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1638254752; bh=UIK8w2Pu09UpnpWGFkF8QuC6RT2ACxCFMXTstyZml1M=; h=From:To:Cc:Subject:Date:From; b=iQh+nzJO8+usa4EHP9Tfl6ItWbI7d152fsp+ssmsTXT8vJQWnLTUkL6SIAbDysS3g /LGXWQ9Js27z5jdaB5XVXWmRjMu1S+MCTi9X68ypo2eTNs4Lz7PPOyk5pn2ZEI2Tei IZx9Em7itnEFsHNCQ7O87G6Zch0R042sKYwgVinM= From: Jean-Michel Hautbois To: libcamera-devel@lists.libcamera.org Date: Tue, 30 Nov 2021 07:45:47 +0100 Message-Id: <20211130064547.37598-1-jeanmichel.hautbois@ideasonboard.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] ipa: rkisp1: Initialize numCells in constructor 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 non-static class member "numCells_" is not initialized in the constructor, leading to a coverity scan report (UNINIT_CTOR). Fix it. Signed-off-by: Jean-Michel Hautbois Reviewed-by: Umang Jain --- src/ipa/rkisp1/algorithms/agc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipa/rkisp1/algorithms/agc.cpp b/src/ipa/rkisp1/algorithms/agc.cpp index 650fe2dae..d6abdc310 100644 --- a/src/ipa/rkisp1/algorithms/agc.cpp +++ b/src/ipa/rkisp1/algorithms/agc.cpp @@ -53,7 +53,7 @@ static constexpr uint32_t kNumStartupFrames = 10; static constexpr double kRelativeLuminanceTarget = 0.4; Agc::Agc() - : frameCount_(0), filteredExposure_(0s) + : frameCount_(0), numCells_(0), filteredExposure_(0s) { }