From patchwork Sun Feb 23 23:03:59 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 22833 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 5334DBDB13 for ; Sun, 23 Feb 2025 23:04:53 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 64E1E686E9; Mon, 24 Feb 2025 00:04:52 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="DhAV742C"; 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 17306686BF for ; Mon, 24 Feb 2025 00:04:36 +0100 (CET) Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 9FD4B82A for ; Mon, 24 Feb 2025 00:03:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1740351789; bh=PJ7PgLnSwhJ/mcjU9rz2QW8Xk2uPYc3pnCvwvMzA4dM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DhAV742CiGpAADgjZjzl0TXf/9xkt3M4SKEZoZaRXTnXWzooaQslYINRJQs8C8V1Y 8Gd1gjjBiW50shqr6iQ7QtmKr7dahZEbfvpHYgbx8Pz3BTkdYuvvDEqC7vDnv/Vr2s kYmB4FZa1w3t+1uFq4jbC3WR2/7QUx81XWlPZzFU= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Subject: [PATCH 11/15] libipa: awb: Tidy up includes Date: Mon, 24 Feb 2025 01:03:59 +0200 Message-ID: <20250223230403.1226-12-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.45.3 In-Reply-To: <20250223230403.1226-1-laurent.pinchart@ideasonboard.com> References: <20250223230403.1226-1-laurent.pinchart@ideasonboard.com> 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" Drop unneeded headers and add missing ones. The yaml_parser.h header is dropped from awb_grey.h as the classes it provides are only used in virtual functions defined by the base class, so any required definitions are guaranteed to be available already. Signed-off-by: Laurent Pinchart Reviewed-by: Stefan Klug --- src/ipa/libipa/awb_bayes.cpp | 5 +++++ src/ipa/libipa/awb_bayes.h | 8 -------- src/ipa/libipa/awb_grey.cpp | 2 +- src/ipa/libipa/awb_grey.h | 3 ++- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/ipa/libipa/awb_bayes.cpp b/src/ipa/libipa/awb_bayes.cpp index 97bd256526a4..d2869610a25b 100644 --- a/src/ipa/libipa/awb_bayes.cpp +++ b/src/ipa/libipa/awb_bayes.cpp @@ -8,7 +8,12 @@ #include "awb_bayes.h" +#include #include +#include +#include +#include +#include #include #include diff --git a/src/ipa/libipa/awb_bayes.h b/src/ipa/libipa/awb_bayes.h index b74201b542fb..a5790e69eed7 100644 --- a/src/ipa/libipa/awb_bayes.h +++ b/src/ipa/libipa/awb_bayes.h @@ -7,14 +7,6 @@ #pragma once -#include -#include -#include -#include - -#include - -#include #include #include "libcamera/internal/vector.h" diff --git a/src/ipa/libipa/awb_grey.cpp b/src/ipa/libipa/awb_grey.cpp index 17b8598400e7..0e6c5220c393 100644 --- a/src/ipa/libipa/awb_grey.cpp +++ b/src/ipa/libipa/awb_grey.cpp @@ -7,7 +7,7 @@ #include "awb_grey.h" -#include +#include #include #include diff --git a/src/ipa/libipa/awb_grey.h b/src/ipa/libipa/awb_grey.h index e3c34201dbc9..7ec7bfa5da9a 100644 --- a/src/ipa/libipa/awb_grey.h +++ b/src/ipa/libipa/awb_grey.h @@ -7,8 +7,9 @@ #pragma once +#include + #include "libcamera/internal/vector.h" -#include "libcamera/internal/yaml_parser.h" #include "awb.h" #include "interpolator.h"