summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-01-29 17:36:30 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-03-15 13:00:58 +0200
commit2a0baf47eb8a336f8378044dbeda9e7873a57d25 (patch)
treef6195e0ab4fa7b6b4836ae58ead3b84a821b17bb
parentc5a8152af269e798297debcf6ab1bfb5ed82ebc1 (diff)
libcamera: camera_sensor: Move related classes to subdirectory
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 <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com>
-rw-r--r--src/libcamera/meson.build3
-rw-r--r--src/libcamera/sensor/camera_sensor.cpp (renamed from src/libcamera/camera_sensor.cpp)0
-rw-r--r--src/libcamera/sensor/camera_sensor_properties.cpp (renamed from src/libcamera/camera_sensor_properties.cpp)0
-rw-r--r--src/libcamera/sensor/meson.build6
4 files changed, 7 insertions, 2 deletions
diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build
index 45f63e93..2e7b0c77 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
index af5d97f3..af5d97f3 100644
--- a/src/libcamera/camera_sensor.cpp
+++ b/src/libcamera/sensor/camera_sensor.cpp
diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/sensor/camera_sensor_properties.cpp
index 6e28b09e..6e28b09e 100644
--- a/src/libcamera/camera_sensor_properties.cpp
+++ b/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 00000000..bf4b131a
--- /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',
+])