From patchwork Fri Mar 15 00:16:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 19729 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 941FCBD160 for ; Fri, 15 Mar 2024 00:16:41 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 0A27D62CA8; Fri, 15 Mar 2024 01:16:41 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="mHDfJA6N"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id A0EBD62CA2 for ; Fri, 15 Mar 2024 01:16:30 +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 EBE09A9A for ; Fri, 15 Mar 2024 01:16:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1710461767; bh=O57v2OG3VnocZRhMPuWD3+urHNWVuA4c5a6xSpOYxbg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mHDfJA6NdBss7swkkTdifOqpf2yMZdoJi+nfZXqwteAvzW7Kbt/rUXXABmaeZKgIu i4NMfsLAihWdECYxdmBuUxRgOIiwuWrOPoZaXknsFkWhw15TtIOeqtGj+c51sZOGmb oHbi7qlYdEdM50IxE6RaEUhwuuHbEZm/+WRQC3Bc= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Subject: [PATCH v2 10/14] libcamera: camera_sensor: Move related classes to subdirectory Date: Fri, 15 Mar 2024 02:16:09 +0200 Message-ID: <20240315001613.2033-11-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240315001613.2033-1-laurent.pinchart@ideasonboard.com> References: <20240315001613.2033-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" In preparation for adding alternative implementations of the CameraSensor class, move the code to a subdirectory to avoid cluttering the main src/libcamera/ directory. Signed-off-by: Laurent Pinchart Reviewed-by: Jacopo Mondi Reviewed-by: Stefan Klug --- src/libcamera/meson.build | 3 +-- src/libcamera/{ => sensor}/camera_sensor.cpp | 0 src/libcamera/{ => sensor}/camera_sensor_properties.cpp | 0 src/libcamera/sensor/meson.build | 6 ++++++ 4 files changed, 7 insertions(+), 2 deletions(-) rename src/libcamera/{ => sensor}/camera_sensor.cpp (100%) rename src/libcamera/{ => sensor}/camera_sensor_properties.cpp (100%) create mode 100644 src/libcamera/sensor/meson.build diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build index 45f63e932e4f..2e7b0c77e63c 100644 --- a/src/libcamera/meson.build +++ b/src/libcamera/meson.build @@ -7,8 +7,6 @@ libcamera_sources = files([ 'camera_controls.cpp', 'camera_lens.cpp', 'camera_manager.cpp', - 'camera_sensor.cpp', - 'camera_sensor_properties.cpp', 'color_space.cpp', 'controls.cpp', 'control_serializer.cpp', @@ -69,6 +67,7 @@ subdir('converter') subdir('ipa') subdir('pipeline') subdir('proxy') +subdir('sensor') null_dep = dependency('', required : false) diff --git a/src/libcamera/camera_sensor.cpp b/src/libcamera/sensor/camera_sensor.cpp similarity index 100% rename from src/libcamera/camera_sensor.cpp rename to src/libcamera/sensor/camera_sensor.cpp diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/sensor/camera_sensor_properties.cpp similarity index 100% rename from src/libcamera/camera_sensor_properties.cpp rename to src/libcamera/sensor/camera_sensor_properties.cpp diff --git a/src/libcamera/sensor/meson.build b/src/libcamera/sensor/meson.build new file mode 100644 index 000000000000..bf4b131a94b1 --- /dev/null +++ b/src/libcamera/sensor/meson.build @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: CC0-1.0 + +libcamera_sources += files([ + 'camera_sensor.cpp', + 'camera_sensor_properties.cpp', +])