summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Documentation/Doxyfile.in6
-rw-r--r--include/libcamera/internal/byte_stream_buffer.h (renamed from src/libcamera/include/byte_stream_buffer.h)0
-rw-r--r--include/libcamera/internal/camera_controls.h (renamed from src/libcamera/include/camera_controls.h)2
-rw-r--r--include/libcamera/internal/camera_sensor.h (renamed from src/libcamera/include/camera_sensor.h)4
-rw-r--r--include/libcamera/internal/control_serializer.h (renamed from src/libcamera/include/control_serializer.h)0
-rw-r--r--include/libcamera/internal/control_validator.h (renamed from src/libcamera/include/control_validator.h)0
-rw-r--r--include/libcamera/internal/device_enumerator.h (renamed from src/libcamera/include/device_enumerator.h)0
-rw-r--r--include/libcamera/internal/device_enumerator_sysfs.h (renamed from src/libcamera/include/device_enumerator_sysfs.h)2
-rw-r--r--include/libcamera/internal/device_enumerator_udev.h (renamed from src/libcamera/include/device_enumerator_udev.h)2
-rw-r--r--include/libcamera/internal/event_dispatcher_poll.h (renamed from src/libcamera/include/event_dispatcher_poll.h)0
-rw-r--r--include/libcamera/internal/file.h (renamed from src/libcamera/include/file.h)0
-rw-r--r--include/libcamera/internal/formats.h (renamed from src/libcamera/include/formats.h)2
-rw-r--r--include/libcamera/internal/ipa_context_wrapper.h (renamed from src/libcamera/include/ipa_context_wrapper.h)2
-rw-r--r--include/libcamera/internal/ipa_manager.h (renamed from src/libcamera/include/ipa_manager.h)6
-rw-r--r--include/libcamera/internal/ipa_module.h (renamed from src/libcamera/include/ipa_module.h)4
-rw-r--r--include/libcamera/internal/ipa_proxy.h (renamed from src/libcamera/include/ipa_proxy.h)0
-rw-r--r--include/libcamera/internal/ipc_unixsocket.h (renamed from src/libcamera/include/ipc_unixsocket.h)0
-rw-r--r--include/libcamera/internal/log.h (renamed from src/libcamera/include/log.h)2
-rw-r--r--include/libcamera/internal/media_device.h (renamed from src/libcamera/include/media_device.h)4
-rw-r--r--include/libcamera/internal/media_object.h (renamed from src/libcamera/include/media_object.h)0
-rw-r--r--include/libcamera/internal/meson.build (renamed from src/libcamera/include/meson.build)0
-rw-r--r--include/libcamera/internal/message.h (renamed from src/libcamera/include/message.h)0
-rw-r--r--include/libcamera/internal/pipeline_handler.h (renamed from src/libcamera/include/pipeline_handler.h)2
-rw-r--r--include/libcamera/internal/process.h (renamed from src/libcamera/include/process.h)0
-rw-r--r--include/libcamera/internal/pub_key.h (renamed from src/libcamera/include/pub_key.h)0
-rw-r--r--include/libcamera/internal/semaphore.h (renamed from src/libcamera/include/semaphore.h)2
-rw-r--r--include/libcamera/internal/thread.h (renamed from src/libcamera/include/thread.h)2
-rw-r--r--include/libcamera/internal/utils.h (renamed from src/libcamera/include/utils.h)0
-rw-r--r--include/libcamera/internal/v4l2_controls.h (renamed from src/libcamera/include/v4l2_controls.h)0
-rw-r--r--include/libcamera/internal/v4l2_device.h (renamed from src/libcamera/include/v4l2_device.h)4
-rw-r--r--include/libcamera/internal/v4l2_pixelformat.h (renamed from src/libcamera/include/v4l2_pixelformat.h)0
-rw-r--r--include/libcamera/internal/v4l2_subdevice.h (renamed from src/libcamera/include/v4l2_subdevice.h)8
-rw-r--r--include/libcamera/internal/v4l2_videodevice.h (renamed from src/libcamera/include/v4l2_videodevice.h)8
-rw-r--r--include/libcamera/meson.build2
-rw-r--r--src/android/camera3_hal.cpp3
-rw-r--r--src/android/camera_device.cpp4
-rw-r--r--src/android/camera_device.h2
-rw-r--r--src/android/camera_hal_manager.cpp2
-rw-r--r--src/android/camera_metadata.cpp2
-rw-r--r--src/ipa/libipa/ipa_interface_wrapper.cpp4
-rw-r--r--src/ipa/libipa/ipa_interface_wrapper.h2
-rw-r--r--src/ipa/meson.build1
-rw-r--r--src/ipa/raspberrypi/cam_helper.cpp4
-rw-r--r--src/ipa/raspberrypi/cam_helper.hpp2
-rw-r--r--src/ipa/raspberrypi/raspberrypi.cpp8
-rw-r--r--src/ipa/rkisp1/rkisp1.cpp4
-rw-r--r--src/ipa/vimc/vimc.cpp4
-rw-r--r--src/libcamera/bound_method.cpp6
-rw-r--r--src/libcamera/buffer.cpp2
-rw-r--r--src/libcamera/byte_stream_buffer.cpp4
-rw-r--r--src/libcamera/camera.cpp6
-rw-r--r--src/libcamera/camera_controls.cpp2
-rw-r--r--src/libcamera/camera_manager.cpp12
-rw-r--r--src/libcamera/camera_sensor.cpp8
-rw-r--r--src/libcamera/control_serializer.cpp6
-rw-r--r--src/libcamera/control_validator.cpp2
-rw-r--r--src/libcamera/controls.cpp6
-rw-r--r--src/libcamera/device_enumerator.cpp10
-rw-r--r--src/libcamera/device_enumerator_sysfs.cpp6
-rw-r--r--src/libcamera/device_enumerator_udev.cpp6
-rw-r--r--src/libcamera/event_dispatcher.cpp2
-rw-r--r--src/libcamera/event_dispatcher_poll.cpp8
-rw-r--r--src/libcamera/event_notifier.cpp4
-rw-r--r--src/libcamera/file.cpp4
-rw-r--r--src/libcamera/file_descriptor.cpp2
-rw-r--r--src/libcamera/formats.cpp4
-rw-r--r--src/libcamera/framebuffer_allocator.cpp4
-rw-r--r--src/libcamera/ipa_context_wrapper.cpp8
-rw-r--r--src/libcamera/ipa_manager.cpp14
-rw-r--r--src/libcamera/ipa_module.cpp10
-rw-r--r--src/libcamera/ipa_proxy.cpp8
-rw-r--r--src/libcamera/ipa_pub_key.cpp.in2
-rw-r--r--src/libcamera/ipc_unixsocket.cpp4
-rw-r--r--src/libcamera/log.cpp6
-rw-r--r--src/libcamera/media_device.cpp4
-rw-r--r--src/libcamera/media_object.cpp6
-rw-r--r--src/libcamera/meson.build5
-rw-r--r--src/libcamera/message.cpp4
-rw-r--r--src/libcamera/object.cpp10
-rw-r--r--src/libcamera/pipeline/ipu3/ipu3.cpp18
-rw-r--r--src/libcamera/pipeline/raspberrypi/raspberrypi.cpp17
-rw-r--r--src/libcamera/pipeline/raspberrypi/staggered_ctrl.cpp6
-rw-r--r--src/libcamera/pipeline/rkisp1/rkisp1.cpp19
-rw-r--r--src/libcamera/pipeline/rkisp1/timeline.cpp2
-rw-r--r--src/libcamera/pipeline/rkisp1/timeline.h2
-rw-r--r--src/libcamera/pipeline/simple/converter.cpp6
-rw-r--r--src/libcamera/pipeline/simple/simple.cpp14
-rw-r--r--src/libcamera/pipeline/uvcvideo/uvcvideo.cpp14
-rw-r--r--src/libcamera/pipeline/vimc/vimc.cpp20
-rw-r--r--src/libcamera/pipeline_handler.cpp10
-rw-r--r--src/libcamera/process.cpp6
-rw-r--r--src/libcamera/proxy/ipa_proxy_linux.cpp10
-rw-r--r--src/libcamera/proxy/ipa_proxy_thread.cpp10
-rw-r--r--src/libcamera/proxy/worker/ipa_proxy_linux_worker.cpp8
-rw-r--r--src/libcamera/proxy/worker/meson.build1
-rw-r--r--src/libcamera/pub_key.cpp2
-rw-r--r--src/libcamera/request.cpp4
-rw-r--r--src/libcamera/semaphore.cpp4
-rw-r--r--src/libcamera/signal.cpp2
-rw-r--r--src/libcamera/stream.cpp4
-rw-r--r--src/libcamera/thread.cpp8
-rw-r--r--src/libcamera/timer.cpp8
-rw-r--r--src/libcamera/utils.cpp2
-rw-r--r--src/libcamera/v4l2_controls.cpp2
-rw-r--r--src/libcamera/v4l2_device.cpp8
-rw-r--r--src/libcamera/v4l2_pixelformat.cpp6
-rw-r--r--src/libcamera/v4l2_subdevice.cpp10
-rw-r--r--src/libcamera/v4l2_videodevice.cpp10
-rw-r--r--src/v4l2/meson.build1
-rw-r--r--src/v4l2/v4l2_camera.cpp2
-rw-r--r--src/v4l2/v4l2_camera.h2
-rw-r--r--src/v4l2/v4l2_camera_proxy.cpp5
-rw-r--r--src/v4l2/v4l2_compat_manager.cpp2
-rw-r--r--test/byte-stream-buffer.cpp3
-rw-r--r--test/camera-sensor.cpp10
-rw-r--r--test/camera/buffer_import.cpp6
-rw-r--r--test/controls/control_info_map.cpp2
-rw-r--r--test/controls/control_list.cpp2
-rw-r--r--test/event-dispatcher.cpp3
-rw-r--r--test/event-thread.cpp3
-rw-r--r--test/event.cpp3
-rw-r--r--test/file-descriptor.cpp3
-rw-r--r--test/file.cpp3
-rw-r--r--test/ipa/ipa_interface_test.cpp11
-rw-r--r--test/ipa/ipa_module_test.cpp2
-rw-r--r--test/ipa/ipa_wrappers_test.cpp10
-rw-r--r--test/ipc/unixsocket.cpp7
-rw-r--r--test/libtest/buffer_source.cpp2
-rw-r--r--test/libtest/buffer_source.h4
-rw-r--r--test/libtest/meson.build1
-rw-r--r--test/log/log_api.cpp3
-rw-r--r--test/log/log_process.cpp9
-rw-r--r--test/media_device/media_device_print_test.cpp2
-rw-r--r--test/media_device/media_device_test.h4
-rw-r--r--test/message.cpp5
-rw-r--r--test/object-invoke.cpp3
-rw-r--r--test/object.cpp4
-rw-r--r--test/pipeline/ipu3/ipu3_pipeline_test.cpp7
-rw-r--r--test/pipeline/rkisp1/rkisp1_pipeline_test.cpp7
-rw-r--r--test/process/process_test.cpp7
-rw-r--r--test/serialization/control_serialization.cpp5
-rw-r--r--test/signal-threads.cpp7
-rw-r--r--test/threads.cpp3
-rw-r--r--test/timer-thread.cpp3
-rw-r--r--test/timer.cpp3
-rw-r--r--test/utils.cpp3
-rw-r--r--test/v4l2_subdevice/list_formats.cpp3
-rw-r--r--test/v4l2_subdevice/test_formats.cpp3
-rw-r--r--test/v4l2_subdevice/v4l2_subdevice_test.cpp7
-rw-r--r--test/v4l2_subdevice/v4l2_subdevice_test.h7
-rw-r--r--test/v4l2_videodevice/buffer_sharing.cpp3
-rw-r--r--test/v4l2_videodevice/capture_async.cpp3
-rw-r--r--test/v4l2_videodevice/controls.cpp2
-rw-r--r--test/v4l2_videodevice/formats.cpp4
-rw-r--r--test/v4l2_videodevice/v4l2_m2mdevice.cpp8
-rw-r--r--test/v4l2_videodevice/v4l2_videodevice_test.cpp6
-rw-r--r--test/v4l2_videodevice/v4l2_videodevice_test.h12
157 files changed, 384 insertions, 360 deletions
diff --git a/Documentation/Doxyfile.in b/Documentation/Doxyfile.in
index 86bcc4d0..c3fe5f66 100644
--- a/Documentation/Doxyfile.in
+++ b/Documentation/Doxyfile.in
@@ -842,10 +842,10 @@ RECURSIVE = YES
# run.
EXCLUDE = @TOP_SRCDIR@/include/libcamera/span.h \
+ @TOP_SRCDIR@/include/libcamera/internal/device_enumerator_sysfs.h \
+ @TOP_SRCDIR@/include/libcamera/internal/device_enumerator_udev.h \
@TOP_SRCDIR@/src/libcamera/device_enumerator_sysfs.cpp \
@TOP_SRCDIR@/src/libcamera/device_enumerator_udev.cpp \
- @TOP_SRCDIR@/src/libcamera/include/device_enumerator_sysfs.h \
- @TOP_SRCDIR@/src/libcamera/include/device_enumerator_udev.h \
@TOP_SRCDIR@/src/libcamera/pipeline/ \
@TOP_SRCDIR@/src/libcamera/proxy/
@@ -2053,7 +2053,7 @@ SEARCH_INCLUDES = YES
# preprocessor.
# This tag requires that the tag SEARCH_INCLUDES is set to YES.
-INCLUDE_PATH = "@TOP_SRCDIR@/include/libcamera" "@TOP_SRCDIR@/src/libcamera/include"
+INCLUDE_PATH = "@TOP_SRCDIR@/include/libcamera"
# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
# patterns (like *.h and *.hpp) to filter out the header-files in the
diff --git a/src/libcamera/include/byte_stream_buffer.h b/include/libcamera/internal/byte_stream_buffer.h
index b3aaa8b9..b3aaa8b9 100644
--- a/src/libcamera/include/byte_stream_buffer.h
+++ b/include/libcamera/internal/byte_stream_buffer.h
diff --git a/src/libcamera/include/camera_controls.h b/include/libcamera/internal/camera_controls.h
index 265c1fe3..dc8b3ba8 100644
--- a/src/libcamera/include/camera_controls.h
+++ b/include/libcamera/internal/camera_controls.h
@@ -7,7 +7,7 @@
#ifndef __LIBCAMERA_CAMERA_CONTROLS_H__
#define __LIBCAMERA_CAMERA_CONTROLS_H__
-#include "control_validator.h"
+#include "libcamera/internal/control_validator.h"
namespace libcamera {
diff --git a/src/libcamera/include/camera_sensor.h b/include/libcamera/internal/camera_sensor.h
index 30cf5f34..d79bd9ce 100644
--- a/src/libcamera/include/camera_sensor.h
+++ b/include/libcamera/internal/camera_sensor.h
@@ -14,8 +14,8 @@
#include <libcamera/controls.h>
#include <libcamera/geometry.h>
-#include "formats.h"
-#include "log.h"
+#include "libcamera/internal/formats.h"
+#include "libcamera/internal/log.h"
namespace libcamera {
diff --git a/src/libcamera/include/control_serializer.h b/include/libcamera/internal/control_serializer.h
index 99bacd92..99bacd92 100644
--- a/src/libcamera/include/control_serializer.h
+++ b/include/libcamera/internal/control_serializer.h
diff --git a/src/libcamera/include/control_validator.h b/include/libcamera/internal/control_validator.h
index f1c9110b..f1c9110b 100644
--- a/src/libcamera/include/control_validator.h
+++ b/include/libcamera/internal/control_validator.h
diff --git a/src/libcamera/include/device_enumerator.h b/include/libcamera/internal/device_enumerator.h
index 433e357a..433e357a 100644
--- a/src/libcamera/include/device_enumerator.h
+++ b/include/libcamera/internal/device_enumerator.h
diff --git a/src/libcamera/include/device_enumerator_sysfs.h b/include/libcamera/internal/device_enumerator_sysfs.h
index 5a5c9b0f..a63e737a 100644
--- a/src/libcamera/include/device_enumerator_sysfs.h
+++ b/include/libcamera/internal/device_enumerator_sysfs.h
@@ -10,7 +10,7 @@
#include <memory>
#include <string>
-#include "device_enumerator.h"
+#include "libcamera/internal/device_enumerator.h"
class MediaDevice;
diff --git a/src/libcamera/include/device_enumerator_udev.h b/include/libcamera/internal/device_enumerator_udev.h
index fdce4520..fdaa2096 100644
--- a/src/libcamera/include/device_enumerator_udev.h
+++ b/include/libcamera/internal/device_enumerator_udev.h
@@ -14,7 +14,7 @@
#include <string>
#include <sys/types.h>
-#include "device_enumerator.h"
+#include "libcamera/internal/device_enumerator.h"
struct udev;
struct udev_device;
diff --git a/src/libcamera/include/event_dispatcher_poll.h b/include/libcamera/internal/event_dispatcher_poll.h
index 1f073861..1f073861 100644
--- a/src/libcamera/include/event_dispatcher_poll.h
+++ b/include/libcamera/internal/event_dispatcher_poll.h
diff --git a/src/libcamera/include/file.h b/include/libcamera/internal/file.h
index f020f2cc..f020f2cc 100644
--- a/src/libcamera/include/file.h
+++ b/include/libcamera/internal/file.h
diff --git a/src/libcamera/include/formats.h b/include/libcamera/internal/formats.h
index 291a1108..4092a93e 100644
--- a/src/libcamera/include/formats.h
+++ b/include/libcamera/internal/formats.h
@@ -14,7 +14,7 @@
#include <libcamera/geometry.h>
#include <libcamera/pixelformats.h>
-#include "v4l2_pixelformat.h"
+#include "libcamera/internal/v4l2_pixelformat.h"
namespace libcamera {
diff --git a/src/libcamera/include/ipa_context_wrapper.h b/include/libcamera/internal/ipa_context_wrapper.h
index 0db022ef..a717d406 100644
--- a/src/libcamera/include/ipa_context_wrapper.h
+++ b/include/libcamera/internal/ipa_context_wrapper.h
@@ -9,7 +9,7 @@
#include <ipa/ipa_interface.h>
-#include "control_serializer.h"
+#include "libcamera/internal/control_serializer.h"
namespace libcamera {
diff --git a/src/libcamera/include/ipa_manager.h b/include/libcamera/internal/ipa_manager.h
index aa6b9adb..f07d91fc 100644
--- a/src/libcamera/include/ipa_manager.h
+++ b/include/libcamera/internal/ipa_manager.h
@@ -13,9 +13,9 @@
#include <ipa/ipa_interface.h>
#include <ipa/ipa_module_info.h>
-#include "ipa_module.h"
-#include "pipeline_handler.h"
-#include "pub_key.h"
+#include "libcamera/internal/ipa_module.h"
+#include "libcamera/internal/pipeline_handler.h"
+#include "libcamera/internal/pub_key.h"
namespace libcamera {
diff --git a/src/libcamera/include/ipa_module.h b/include/libcamera/internal/ipa_module.h
index 15022e19..2f569db0 100644
--- a/src/libcamera/include/ipa_module.h
+++ b/include/libcamera/internal/ipa_module.h
@@ -14,8 +14,8 @@
#include <ipa/ipa_interface.h>
#include <ipa/ipa_module_info.h>
-#include "log.h"
-#include "pipeline_handler.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/pipeline_handler.h"
namespace libcamera {
diff --git a/src/libcamera/include/ipa_proxy.h b/include/libcamera/internal/ipa_proxy.h
index 1111065b..1111065b 100644
--- a/src/libcamera/include/ipa_proxy.h
+++ b/include/libcamera/internal/ipa_proxy.h
diff --git a/src/libcamera/include/ipc_unixsocket.h b/include/libcamera/internal/ipc_unixsocket.h
index 820d0561..820d0561 100644
--- a/src/libcamera/include/ipc_unixsocket.h
+++ b/include/libcamera/internal/ipc_unixsocket.h
diff --git a/src/libcamera/include/log.h b/include/libcamera/internal/log.h
index ee0b4069..cab2034a 100644
--- a/src/libcamera/include/log.h
+++ b/include/libcamera/internal/log.h
@@ -10,7 +10,7 @@
#include <chrono>
#include <sstream>
-#include "utils.h"
+#include "libcamera/internal/utils.h"
namespace libcamera {
diff --git a/src/libcamera/include/media_device.h b/include/libcamera/internal/media_device.h
index 4d9f7661..9fe76c51 100644
--- a/src/libcamera/include/media_device.h
+++ b/include/libcamera/internal/media_device.h
@@ -16,8 +16,8 @@
#include <libcamera/signal.h>
-#include "log.h"
-#include "media_object.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/media_object.h"
namespace libcamera {
diff --git a/src/libcamera/include/media_object.h b/include/libcamera/internal/media_object.h
index 748eafdc..748eafdc 100644
--- a/src/libcamera/include/media_object.h
+++ b/include/libcamera/internal/media_object.h
diff --git a/src/libcamera/include/meson.build b/include/libcamera/internal/meson.build
index 1f6af579..1f6af579 100644
--- a/src/libcamera/include/meson.build
+++ b/include/libcamera/internal/meson.build
diff --git a/src/libcamera/include/message.h b/include/libcamera/internal/message.h
index 8e8b013d..8e8b013d 100644
--- a/src/libcamera/include/message.h
+++ b/include/libcamera/internal/message.h
diff --git a/src/libcamera/include/pipeline_handler.h b/include/libcamera/internal/pipeline_handler.h
index 706413fa..428f5887 100644
--- a/src/libcamera/include/pipeline_handler.h
+++ b/include/libcamera/internal/pipeline_handler.h
@@ -19,7 +19,7 @@
#include <libcamera/object.h>
#include <libcamera/stream.h>
-#include "ipa_proxy.h"
+#include "libcamera/internal/ipa_proxy.h"
namespace libcamera {
diff --git a/src/libcamera/include/process.h b/include/libcamera/internal/process.h
index d322fce1..d322fce1 100644
--- a/src/libcamera/include/process.h
+++ b/include/libcamera/internal/process.h
diff --git a/src/libcamera/include/pub_key.h b/include/libcamera/internal/pub_key.h
index f35bf373..f35bf373 100644
--- a/src/libcamera/include/pub_key.h
+++ b/include/libcamera/internal/pub_key.h
diff --git a/src/libcamera/include/semaphore.h b/include/libcamera/internal/semaphore.h
index c6b28653..4d93077c 100644
--- a/src/libcamera/include/semaphore.h
+++ b/include/libcamera/internal/semaphore.h
@@ -9,7 +9,7 @@
#include <condition_variable>
-#include "thread.h"
+#include "libcamera/internal/thread.h"
namespace libcamera {
diff --git a/src/libcamera/include/thread.h b/include/libcamera/internal/thread.h
index d700f111..6594c9b0 100644
--- a/src/libcamera/include/thread.h
+++ b/include/libcamera/internal/thread.h
@@ -14,7 +14,7 @@
#include <libcamera/signal.h>
-#include "utils.h"
+#include "libcamera/internal/utils.h"
namespace libcamera {
diff --git a/src/libcamera/include/utils.h b/include/libcamera/internal/utils.h
index 3334ff16..3334ff16 100644
--- a/src/libcamera/include/utils.h
+++ b/include/libcamera/internal/utils.h
diff --git a/src/libcamera/include/v4l2_controls.h b/include/libcamera/internal/v4l2_controls.h
index cffe9efd..cffe9efd 100644
--- a/src/libcamera/include/v4l2_controls.h
+++ b/include/libcamera/internal/v4l2_controls.h
diff --git a/src/libcamera/include/v4l2_device.h b/include/libcamera/internal/v4l2_device.h
index e604a40d..d491eafd 100644
--- a/src/libcamera/include/v4l2_device.h
+++ b/include/libcamera/internal/v4l2_device.h
@@ -13,8 +13,8 @@
#include <linux/videodev2.h>
-#include "log.h"
-#include "v4l2_controls.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/v4l2_controls.h"
namespace libcamera {
diff --git a/src/libcamera/include/v4l2_pixelformat.h b/include/libcamera/internal/v4l2_pixelformat.h
index 0fe8a017..0fe8a017 100644
--- a/src/libcamera/include/v4l2_pixelformat.h
+++ b/include/libcamera/internal/v4l2_pixelformat.h
diff --git a/src/libcamera/include/v4l2_subdevice.h b/include/libcamera/internal/v4l2_subdevice.h
index d0e565db..1be454f0 100644
--- a/src/libcamera/include/v4l2_subdevice.h
+++ b/include/libcamera/internal/v4l2_subdevice.h
@@ -12,10 +12,10 @@
#include <libcamera/geometry.h>
-#include "formats.h"
-#include "log.h"
-#include "media_object.h"
-#include "v4l2_device.h"
+#include "libcamera/internal/formats.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/media_object.h"
+#include "libcamera/internal/v4l2_device.h"
namespace libcamera {
diff --git a/src/libcamera/include/v4l2_videodevice.h b/include/libcamera/internal/v4l2_videodevice.h
index 94565b97..dc259523 100644
--- a/src/libcamera/include/v4l2_videodevice.h
+++ b/include/libcamera/internal/v4l2_videodevice.h
@@ -20,10 +20,10 @@
#include <libcamera/pixelformats.h>
#include <libcamera/signal.h>
-#include "formats.h"
-#include "log.h"
-#include "v4l2_device.h"
-#include "v4l2_pixelformat.h"
+#include "libcamera/internal/formats.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/v4l2_device.h"
+#include "libcamera/internal/v4l2_pixelformat.h"
namespace libcamera {
diff --git a/include/libcamera/meson.build b/include/libcamera/meson.build
index cea47eb8..f9c8e64b 100644
--- a/include/libcamera/meson.build
+++ b/include/libcamera/meson.build
@@ -23,6 +23,8 @@ libcamera_api = files([
include_dir = join_paths(libcamera_include_dir, 'libcamera')
+subdir('internal')
+
install_headers(libcamera_api,
subdir : include_dir)
diff --git a/src/android/camera3_hal.cpp b/src/android/camera3_hal.cpp
index 34301ed9..716e36c7 100644
--- a/src/android/camera3_hal.cpp
+++ b/src/android/camera3_hal.cpp
@@ -7,9 +7,10 @@
#include <hardware/camera_common.h>
+#include "libcamera/internal/log.h"
+
#include "camera_device.h"
#include "camera_hal_manager.h"
-#include "log.h"
using namespace libcamera;
diff --git a/src/android/camera_device.cpp b/src/android/camera_device.cpp
index 76af70eb..4ec429fc 100644
--- a/src/android/camera_device.cpp
+++ b/src/android/camera_device.cpp
@@ -11,8 +11,8 @@
#include <libcamera/controls.h>
#include <libcamera/property_ids.h>
-#include "log.h"
-#include "utils.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/utils.h"
#include "camera_metadata.h"
diff --git a/src/android/camera_device.h b/src/android/camera_device.h
index 55eac317..bce1cfbc 100644
--- a/src/android/camera_device.h
+++ b/src/android/camera_device.h
@@ -16,7 +16,7 @@
#include <libcamera/request.h>
#include <libcamera/stream.h>
-#include "message.h"
+#include "libcamera/internal/message.h"
class CameraMetadata;
diff --git a/src/android/camera_hal_manager.cpp b/src/android/camera_hal_manager.cpp
index 5bd3bdba..759e320d 100644
--- a/src/android/camera_hal_manager.cpp
+++ b/src/android/camera_hal_manager.cpp
@@ -9,7 +9,7 @@
#include <libcamera/camera.h>
-#include "log.h"
+#include "libcamera/internal/log.h"
#include "camera_device.h"
diff --git a/src/android/camera_metadata.cpp b/src/android/camera_metadata.cpp
index 76965108..47b2e4ef 100644
--- a/src/android/camera_metadata.cpp
+++ b/src/android/camera_metadata.cpp
@@ -7,7 +7,7 @@
#include "camera_metadata.h"
-#include "log.h"
+#include "libcamera/internal/log.h"
using namespace libcamera;
diff --git a/src/ipa/libipa/ipa_interface_wrapper.cpp b/src/ipa/libipa/ipa_interface_wrapper.cpp
index 21d8c98b..90f270c0 100644
--- a/src/ipa/libipa/ipa_interface_wrapper.cpp
+++ b/src/ipa/libipa/ipa_interface_wrapper.cpp
@@ -14,8 +14,8 @@
#include <ipa/ipa_interface.h>
-#include "byte_stream_buffer.h"
-#include "camera_sensor.h"
+#include "libcamera/internal/byte_stream_buffer.h"
+#include "libcamera/internal/camera_sensor.h"
/**
* \file ipa_interface_wrapper.h
diff --git a/src/ipa/libipa/ipa_interface_wrapper.h b/src/ipa/libipa/ipa_interface_wrapper.h
index 56507aaf..b426034d 100644
--- a/src/ipa/libipa/ipa_interface_wrapper.h
+++ b/src/ipa/libipa/ipa_interface_wrapper.h
@@ -11,7 +11,7 @@
#include <ipa/ipa_interface.h>
-#include "control_serializer.h"
+#include "libcamera/internal/control_serializer.h"
namespace libcamera {
diff --git a/src/ipa/meson.build b/src/ipa/meson.build
index ab73c347..5a5de267 100644
--- a/src/ipa/meson.build
+++ b/src/ipa/meson.build
@@ -6,7 +6,6 @@ ipa_sysconf_dir = join_paths(get_option('sysconfdir'), 'libcamera', 'ipa')
ipa_includes = [
libcamera_includes,
- libcamera_internal_includes,
]
config_h.set('IPA_CONFIG_DIR',
diff --git a/src/ipa/raspberrypi/cam_helper.cpp b/src/ipa/raspberrypi/cam_helper.cpp
index 7f05d2c6..a0c73f99 100644
--- a/src/ipa/raspberrypi/cam_helper.cpp
+++ b/src/ipa/raspberrypi/cam_helper.cpp
@@ -11,11 +11,11 @@
#include <map>
#include <string.h>
+#include "libcamera/internal/v4l2_videodevice.h"
+
#include "cam_helper.hpp"
#include "md_parser.hpp"
-#include "v4l2_videodevice.h"
-
using namespace RPi;
static std::map<std::string, CamHelperCreateFunc> cam_helpers;
diff --git a/src/ipa/raspberrypi/cam_helper.hpp b/src/ipa/raspberrypi/cam_helper.hpp
index 0c8aa29a..6877f473 100644
--- a/src/ipa/raspberrypi/cam_helper.hpp
+++ b/src/ipa/raspberrypi/cam_helper.hpp
@@ -11,7 +11,7 @@
#include "camera_mode.h"
#include "md_parser.hpp"
-#include "v4l2_videodevice.h"
+#include "libcamera/internal/v4l2_videodevice.h"
namespace RPi {
diff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp
index 3bcc0815..46b24453 100644
--- a/src/ipa/raspberrypi/raspberrypi.cpp
+++ b/src/ipa/raspberrypi/raspberrypi.cpp
@@ -22,6 +22,10 @@
#include <libcamera/span.h>
#include <libipa/ipa_interface_wrapper.h>
+#include "libcamera/internal/camera_sensor.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/utils.h"
+
#include <linux/bcm2835-isp.h>
#include "agc_algorithm.hpp"
@@ -44,10 +48,6 @@
#include "sdn_status.h"
#include "sharpen_status.h"
-#include "camera_sensor.h"
-#include "log.h"
-#include "utils.h"
-
namespace libcamera {
/* Configure the sensor with these values initially. */
diff --git a/src/ipa/rkisp1/rkisp1.cpp b/src/ipa/rkisp1/rkisp1.cpp
index bfa88418..4f6e0342 100644
--- a/src/ipa/rkisp1/rkisp1.cpp
+++ b/src/ipa/rkisp1/rkisp1.cpp
@@ -22,8 +22,8 @@
#include <libcamera/request.h>
#include <libipa/ipa_interface_wrapper.h>
-#include "log.h"
-#include "utils.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/utils.h"
namespace libcamera {
diff --git a/src/ipa/vimc/vimc.cpp b/src/ipa/vimc/vimc.cpp
index 9271f2d8..3fa6be65 100644
--- a/src/ipa/vimc/vimc.cpp
+++ b/src/ipa/vimc/vimc.cpp
@@ -19,8 +19,8 @@
#include <libipa/ipa_interface_wrapper.h>
-#include "file.h"
-#include "log.h"
+#include "libcamera/internal/file.h"
+#include "libcamera/internal/log.h"
namespace libcamera {
diff --git a/src/libcamera/bound_method.cpp b/src/libcamera/bound_method.cpp
index 9aa59dc3..9993e596 100644
--- a/src/libcamera/bound_method.cpp
+++ b/src/libcamera/bound_method.cpp
@@ -7,9 +7,9 @@
#include <libcamera/bound_method.h>
-#include "message.h"
-#include "semaphore.h"
-#include "thread.h"
+#include "libcamera/internal/message.h"
+#include "libcamera/internal/semaphore.h"
+#include "libcamera/internal/thread.h"
/**
* \file bound_method.h
diff --git a/src/libcamera/buffer.cpp b/src/libcamera/buffer.cpp
index 0c5e56cf..1a1d4bac 100644
--- a/src/libcamera/buffer.cpp
+++ b/src/libcamera/buffer.cpp
@@ -12,7 +12,7 @@
#include <sys/mman.h>
#include <unistd.h>
-#include "log.h"
+#include "libcamera/internal/log.h"
/**
* \file buffer.h
diff --git a/src/libcamera/byte_stream_buffer.cpp b/src/libcamera/byte_stream_buffer.cpp
index 20d6a655..df7029b0 100644
--- a/src/libcamera/byte_stream_buffer.cpp
+++ b/src/libcamera/byte_stream_buffer.cpp
@@ -5,12 +5,12 @@
* byte_stream_buffer.cpp - Byte stream buffer
*/
-#include "byte_stream_buffer.h"
+#include "libcamera/internal/byte_stream_buffer.h"
#include <stdint.h>
#include <string.h>
-#include "log.h"
+#include "libcamera/internal/log.h"
namespace libcamera {
diff --git a/src/libcamera/camera.cpp b/src/libcamera/camera.cpp
index 8c3bb2c2..eac769a4 100644
--- a/src/libcamera/camera.cpp
+++ b/src/libcamera/camera.cpp
@@ -14,9 +14,9 @@
#include <libcamera/request.h>
#include <libcamera/stream.h>
-#include "log.h"
-#include "pipeline_handler.h"
-#include "utils.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/pipeline_handler.h"
+#include "libcamera/internal/utils.h"
/**
* \file camera.h
diff --git a/src/libcamera/camera_controls.cpp b/src/libcamera/camera_controls.cpp
index 59dcede2..371f6d07 100644
--- a/src/libcamera/camera_controls.cpp
+++ b/src/libcamera/camera_controls.cpp
@@ -5,7 +5,7 @@
* camera_controls.cpp - Camera controls
*/
-#include "camera_controls.h"
+#include "libcamera/internal/camera_controls.h"
#include <libcamera/camera.h>
#include <libcamera/controls.h>
diff --git a/src/libcamera/camera_manager.cpp b/src/libcamera/camera_manager.cpp
index fddf7349..849377ad 100644
--- a/src/libcamera/camera_manager.cpp
+++ b/src/libcamera/camera_manager.cpp
@@ -13,12 +13,12 @@
#include <libcamera/camera.h>
#include <libcamera/event_dispatcher.h>
-#include "device_enumerator.h"
-#include "event_dispatcher_poll.h"
-#include "log.h"
-#include "pipeline_handler.h"
-#include "thread.h"
-#include "utils.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/event_dispatcher_poll.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/pipeline_handler.h"
+#include "libcamera/internal/thread.h"
+#include "libcamera/internal/utils.h"
/**
* \file camera_manager.h
diff --git a/src/libcamera/camera_sensor.cpp b/src/libcamera/camera_sensor.cpp
index 31a916a9..174df17c 100644
--- a/src/libcamera/camera_sensor.cpp
+++ b/src/libcamera/camera_sensor.cpp
@@ -5,7 +5,7 @@
* camera_sensor.cpp - A camera sensor
*/
-#include "camera_sensor.h"
+#include "libcamera/internal/camera_sensor.h"
#include <algorithm>
#include <float.h>
@@ -16,9 +16,9 @@
#include <libcamera/property_ids.h>
-#include "formats.h"
-#include "utils.h"
-#include "v4l2_subdevice.h"
+#include "libcamera/internal/formats.h"
+#include "libcamera/internal/utils.h"
+#include "libcamera/internal/v4l2_subdevice.h"
/**
* \file camera_sensor.h
diff --git a/src/libcamera/control_serializer.cpp b/src/libcamera/control_serializer.cpp
index fcff5e56..bf162b6c 100644
--- a/src/libcamera/control_serializer.cpp
+++ b/src/libcamera/control_serializer.cpp
@@ -5,7 +5,7 @@
* control_serializer.cpp - Control (de)serializer
*/
-#include "control_serializer.h"
+#include "libcamera/internal/control_serializer.h"
#include <algorithm>
#include <memory>
@@ -16,8 +16,8 @@
#include <libcamera/controls.h>
#include <libcamera/span.h>
-#include "byte_stream_buffer.h"
-#include "log.h"
+#include "libcamera/internal/byte_stream_buffer.h"
+#include "libcamera/internal/log.h"
/**
* \file control_serializer.h
diff --git a/src/libcamera/control_validator.cpp b/src/libcamera/control_validator.cpp
index 8e5cf3c3..5a2f27ac 100644
--- a/src/libcamera/control_validator.cpp
+++ b/src/libcamera/control_validator.cpp
@@ -5,7 +5,7 @@
* control_validator.cpp - Control validator
*/
-#include "control_validator.h"
+#include "libcamera/internal/control_validator.h"
/**
* \file control_validator.h
diff --git a/src/libcamera/controls.cpp b/src/libcamera/controls.cpp
index 08df7f29..dca78266 100644
--- a/src/libcamera/controls.cpp
+++ b/src/libcamera/controls.cpp
@@ -12,9 +12,9 @@
#include <string>
#include <string.h>
-#include "control_validator.h"
-#include "log.h"
-#include "utils.h"
+#include "libcamera/internal/control_validator.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/utils.h"
/**
* \file controls.h
diff --git a/src/libcamera/device_enumerator.cpp b/src/libcamera/device_enumerator.cpp
index dd17e3e3..e21a2a7d 100644
--- a/src/libcamera/device_enumerator.cpp
+++ b/src/libcamera/device_enumerator.cpp
@@ -5,14 +5,14 @@
* device_enumerator.cpp - Enumeration and matching
*/
-#include "device_enumerator.h"
-#include "device_enumerator_sysfs.h"
-#include "device_enumerator_udev.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/device_enumerator_sysfs.h"
+#include "libcamera/internal/device_enumerator_udev.h"
#include <string.h>
-#include "log.h"
-#include "media_device.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/media_device.h"
/**
* \file device_enumerator.h
diff --git a/src/libcamera/device_enumerator_sysfs.cpp b/src/libcamera/device_enumerator_sysfs.cpp
index 3446db59..ff728852 100644
--- a/src/libcamera/device_enumerator_sysfs.cpp
+++ b/src/libcamera/device_enumerator_sysfs.cpp
@@ -5,7 +5,7 @@
* device_enumerator_sysfs.cpp - sysfs-based device enumerator
*/
-#include "device_enumerator_sysfs.h"
+#include "libcamera/internal/device_enumerator_sysfs.h"
#include <dirent.h>
#include <fcntl.h>
@@ -17,8 +17,8 @@
#include <sys/types.h>
#include <unistd.h>
-#include "log.h"
-#include "media_device.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/media_device.h"
namespace libcamera {
diff --git a/src/libcamera/device_enumerator_udev.cpp b/src/libcamera/device_enumerator_udev.cpp
index 2e33c898..56ca4dc2 100644
--- a/src/libcamera/device_enumerator_udev.cpp
+++ b/src/libcamera/device_enumerator_udev.cpp
@@ -5,7 +5,7 @@
* device_enumerator_udev.cpp - udev-based device enumerator
*/
-#include "device_enumerator_udev.h"
+#include "libcamera/internal/device_enumerator_udev.h"
#include <algorithm>
#include <fcntl.h>
@@ -19,8 +19,8 @@
#include <libcamera/event_notifier.h>
-#include "log.h"
-#include "media_device.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/media_device.h"
namespace libcamera {
diff --git a/src/libcamera/event_dispatcher.cpp b/src/libcamera/event_dispatcher.cpp
index bb4fddff..90bd5daf 100644
--- a/src/libcamera/event_dispatcher.cpp
+++ b/src/libcamera/event_dispatcher.cpp
@@ -7,7 +7,7 @@
#include <libcamera/event_dispatcher.h>
-#include "log.h"
+#include "libcamera/internal/log.h"
/**
* \file event_dispatcher.h
diff --git a/src/libcamera/event_dispatcher_poll.cpp b/src/libcamera/event_dispatcher_poll.cpp
index 51ac5adf..9ab85da7 100644
--- a/src/libcamera/event_dispatcher_poll.cpp
+++ b/src/libcamera/event_dispatcher_poll.cpp
@@ -5,7 +5,7 @@
* event_dispatcher_poll.cpp - Poll-based event dispatcher
*/
-#include "event_dispatcher_poll.h"
+#include "libcamera/internal/event_dispatcher_poll.h"
#include <algorithm>
#include <chrono>
@@ -19,9 +19,9 @@
#include <libcamera/event_notifier.h>
#include <libcamera/timer.h>
-#include "log.h"
-#include "thread.h"
-#include "utils.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/thread.h"
+#include "libcamera/internal/utils.h"
/**
* \file event_dispatcher_poll.h
diff --git a/src/libcamera/event_notifier.cpp b/src/libcamera/event_notifier.cpp
index a9be686f..cc3ea0d9 100644
--- a/src/libcamera/event_notifier.cpp
+++ b/src/libcamera/event_notifier.cpp
@@ -10,8 +10,8 @@
#include <libcamera/camera_manager.h>
#include <libcamera/event_dispatcher.h>
-#include "message.h"
-#include "thread.h"
+#include "libcamera/internal/message.h"
+#include "libcamera/internal/thread.h"
/**
* \file event_notifier.h
diff --git a/src/libcamera/file.cpp b/src/libcamera/file.cpp
index 8223743d..c471bde3 100644
--- a/src/libcamera/file.cpp
+++ b/src/libcamera/file.cpp
@@ -5,7 +5,7 @@
* file.cpp - File I/O operations
*/
-#include "file.h"
+#include "libcamera/internal/file.h"
#include <errno.h>
#include <fcntl.h>
@@ -14,7 +14,7 @@
#include <sys/types.h>
#include <unistd.h>
-#include "log.h"
+#include "libcamera/internal/log.h"
/**
* \file file.h
diff --git a/src/libcamera/file_descriptor.cpp b/src/libcamera/file_descriptor.cpp
index 88385476..ee60064b 100644
--- a/src/libcamera/file_descriptor.cpp
+++ b/src/libcamera/file_descriptor.cpp
@@ -11,7 +11,7 @@
#include <unistd.h>
#include <utility>
-#include "log.h"
+#include "libcamera/internal/log.h"
/**
* \file file_descriptor.h
diff --git a/src/libcamera/formats.cpp b/src/libcamera/formats.cpp
index b3af0f7f..2ac3b412 100644
--- a/src/libcamera/formats.cpp
+++ b/src/libcamera/formats.cpp
@@ -5,11 +5,11 @@
* formats.cpp - libcamera image formats
*/
-#include "formats.h"
+#include "libcamera/internal/formats.h"
#include <errno.h>
-#include "log.h"
+#include "libcamera/internal/log.h"
/**
* \file formats.h
diff --git a/src/libcamera/framebuffer_allocator.cpp b/src/libcamera/framebuffer_allocator.cpp
index a37b564c..252191ba 100644
--- a/src/libcamera/framebuffer_allocator.cpp
+++ b/src/libcamera/framebuffer_allocator.cpp
@@ -13,8 +13,8 @@
#include <libcamera/camera.h>
#include <libcamera/stream.h>
-#include "log.h"
-#include "pipeline_handler.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/pipeline_handler.h"
/**
* \file framebuffer_allocator.h
diff --git a/src/libcamera/ipa_context_wrapper.cpp b/src/libcamera/ipa_context_wrapper.cpp
index 0bd3a1ae..bcdc55c2 100644
--- a/src/libcamera/ipa_context_wrapper.cpp
+++ b/src/libcamera/ipa_context_wrapper.cpp
@@ -5,15 +5,15 @@
* ipa_context_wrapper.cpp - Image Processing Algorithm context wrapper
*/
-#include "ipa_context_wrapper.h"
+#include "libcamera/internal/ipa_context_wrapper.h"
#include <vector>
#include <libcamera/controls.h>
-#include "byte_stream_buffer.h"
-#include "camera_sensor.h"
-#include "utils.h"
+#include "libcamera/internal/byte_stream_buffer.h"
+#include "libcamera/internal/camera_sensor.h"
+#include "libcamera/internal/utils.h"
/**
* \file ipa_context_wrapper.h
diff --git a/src/libcamera/ipa_manager.cpp b/src/libcamera/ipa_manager.cpp
index 1faa3dd3..505cf610 100644
--- a/src/libcamera/ipa_manager.cpp
+++ b/src/libcamera/ipa_manager.cpp
@@ -5,19 +5,19 @@
* ipa_manager.cpp - Image Processing Algorithm module manager
*/
-#include "ipa_manager.h"
+#include "libcamera/internal/ipa_manager.h"
#include <algorithm>
#include <dirent.h>
#include <string.h>
#include <sys/types.h>
-#include "file.h"
-#include "ipa_module.h"
-#include "ipa_proxy.h"
-#include "log.h"
-#include "pipeline_handler.h"
-#include "utils.h"
+#include "libcamera/internal/file.h"
+#include "libcamera/internal/ipa_module.h"
+#include "libcamera/internal/ipa_proxy.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/pipeline_handler.h"
+#include "libcamera/internal/utils.h"
/**
* \file ipa_manager.h
diff --git a/src/libcamera/ipa_module.cpp b/src/libcamera/ipa_module.cpp
index 3444a788..91534b61 100644
--- a/src/libcamera/ipa_module.cpp
+++ b/src/libcamera/ipa_module.cpp
@@ -5,7 +5,7 @@
* ipa_module.cpp - Image Processing Algorithm module
*/
-#include "ipa_module.h"
+#include "libcamera/internal/ipa_module.h"
#include <algorithm>
#include <array>
@@ -23,10 +23,10 @@
#include <libcamera/span.h>
-#include "file.h"
-#include "log.h"
-#include "pipeline_handler.h"
-#include "utils.h"
+#include "libcamera/internal/file.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/pipeline_handler.h"
+#include "libcamera/internal/utils.h"
/**
* \file ipa_module.h
diff --git a/src/libcamera/ipa_proxy.cpp b/src/libcamera/ipa_proxy.cpp
index 401ac52d..23be24ad 100644
--- a/src/libcamera/ipa_proxy.cpp
+++ b/src/libcamera/ipa_proxy.cpp
@@ -5,16 +5,16 @@
* ipa_proxy.cpp - Image Processing Algorithm proxy
*/
-#include "ipa_proxy.h"
+#include "libcamera/internal/ipa_proxy.h"
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
-#include "ipa_module.h"
-#include "log.h"
-#include "utils.h"
+#include "libcamera/internal/ipa_module.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/utils.h"
/**
* \file ipa_proxy.h
diff --git a/src/libcamera/ipa_pub_key.cpp.in b/src/libcamera/ipa_pub_key.cpp.in
index 7ffc1e24..01e5333b 100644
--- a/src/libcamera/ipa_pub_key.cpp.in
+++ b/src/libcamera/ipa_pub_key.cpp.in
@@ -7,7 +7,7 @@
* This file is auto-generated. Do not edit.
*/
-#include "ipa_manager.h"
+#include "libcamera/internal/ipa_manager.h"
namespace libcamera {
diff --git a/src/libcamera/ipc_unixsocket.cpp b/src/libcamera/ipc_unixsocket.cpp
index 6e5cab89..7df86e88 100644
--- a/src/libcamera/ipc_unixsocket.cpp
+++ b/src/libcamera/ipc_unixsocket.cpp
@@ -5,14 +5,14 @@
* ipc_unixsocket.cpp - IPC mechanism based on Unix sockets
*/
-#include "ipc_unixsocket.h"
+#include "libcamera/internal/ipc_unixsocket.h"
#include <poll.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
-#include "log.h"
+#include "libcamera/internal/log.h"
/**
* \file ipc_unixsocket.h
diff --git a/src/libcamera/log.cpp b/src/libcamera/log.cpp
index fd1b5c39..180eb97b 100644
--- a/src/libcamera/log.cpp
+++ b/src/libcamera/log.cpp
@@ -5,7 +5,7 @@
* log.cpp - Logging infrastructure
*/
-#include "log.h"
+#include "libcamera/internal/log.h"
#if HAVE_BACKTRACE
#include <execinfo.h>
@@ -22,8 +22,8 @@
#include <libcamera/logging.h>
-#include "thread.h"
-#include "utils.h"
+#include "libcamera/internal/thread.h"
+#include "libcamera/internal/utils.h"
/**
* \file log.h
diff --git a/src/libcamera/media_device.cpp b/src/libcamera/media_device.cpp
index d4e7e100..de18d572 100644
--- a/src/libcamera/media_device.cpp
+++ b/src/libcamera/media_device.cpp
@@ -5,7 +5,7 @@
* media_device.cpp - Media device handler
*/
-#include "media_device.h"
+#include "libcamera/internal/media_device.h"
#include <errno.h>
#include <fcntl.h>
@@ -18,7 +18,7 @@
#include <linux/media.h>
-#include "log.h"
+#include "libcamera/internal/log.h"
/**
* \file media_device.h
diff --git a/src/libcamera/media_object.cpp b/src/libcamera/media_object.cpp
index ef32065c..ce77a727 100644
--- a/src/libcamera/media_object.cpp
+++ b/src/libcamera/media_object.cpp
@@ -5,7 +5,7 @@
* media_object.cpp - Media device objects: entities, pads and links
*/
-#include "media_object.h"
+#include "libcamera/internal/media_object.h"
#include <errno.h>
#include <string>
@@ -15,8 +15,8 @@
#include <linux/media.h>
-#include "log.h"
-#include "media_device.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/media_device.h"
/**
* \file media_object.h
diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build
index d42e9720..472af451 100644
--- a/src/libcamera/meson.build
+++ b/src/libcamera/meson.build
@@ -51,13 +51,8 @@ libcamera_sources = files([
'v4l2_videodevice.cpp',
])
-subdir('include')
-
-libcamera_internal_includes = include_directories('include')
-
includes = [
libcamera_includes,
- libcamera_internal_includes,
]
subdir('pipeline')
diff --git a/src/libcamera/message.cpp b/src/libcamera/message.cpp
index 77f2bdd5..e9b3e73f 100644
--- a/src/libcamera/message.cpp
+++ b/src/libcamera/message.cpp
@@ -5,11 +5,11 @@
* message.cpp - Message queue support
*/
-#include "message.h"
+#include "libcamera/internal/message.h"
#include <libcamera/signal.h>
-#include "log.h"
+#include "libcamera/internal/log.h"
/**
* \file message.h
diff --git a/src/libcamera/object.cpp b/src/libcamera/object.cpp
index 99c3bf9a..1544a23e 100644
--- a/src/libcamera/object.cpp
+++ b/src/libcamera/object.cpp
@@ -11,11 +11,11 @@
#include <libcamera/signal.h>
-#include "log.h"
-#include "message.h"
-#include "semaphore.h"
-#include "thread.h"
-#include "utils.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/message.h"
+#include "libcamera/internal/semaphore.h"
+#include "libcamera/internal/thread.h"
+#include "libcamera/internal/utils.h"
/**
* \file object.h
diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp
index 1988cb0e..b805fea7 100644
--- a/src/libcamera/pipeline/ipu3/ipu3.cpp
+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
@@ -17,15 +17,15 @@
#include <libcamera/request.h>
#include <libcamera/stream.h>
-#include "camera_sensor.h"
-#include "device_enumerator.h"
-#include "log.h"
-#include "media_device.h"
-#include "pipeline_handler.h"
-#include "utils.h"
-#include "v4l2_controls.h"
-#include "v4l2_subdevice.h"
-#include "v4l2_videodevice.h"
+#include "libcamera/internal/camera_sensor.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/pipeline_handler.h"
+#include "libcamera/internal/utils.h"
+#include "libcamera/internal/v4l2_controls.h"
+#include "libcamera/internal/v4l2_subdevice.h"
+#include "libcamera/internal/v4l2_videodevice.h"
namespace libcamera {
diff --git a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
index 41d1a522..e254e555 100644
--- a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
+++ b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
@@ -21,15 +21,16 @@
#include <linux/drm_fourcc.h>
#include <linux/videodev2.h>
-#include "camera_sensor.h"
-#include "device_enumerator.h"
-#include "ipa_manager.h"
-#include "media_device.h"
-#include "pipeline_handler.h"
+#include "libcamera/internal/camera_sensor.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/ipa_manager.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/pipeline_handler.h"
+#include "libcamera/internal/utils.h"
+#include "libcamera/internal/v4l2_controls.h"
+#include "libcamera/internal/v4l2_videodevice.h"
+
#include "staggered_ctrl.h"
-#include "utils.h"
-#include "v4l2_controls.h"
-#include "v4l2_videodevice.h"
#include "vcsm.h"
namespace libcamera {
diff --git a/src/libcamera/pipeline/raspberrypi/staggered_ctrl.cpp b/src/libcamera/pipeline/raspberrypi/staggered_ctrl.cpp
index d431887e..391e13f5 100644
--- a/src/libcamera/pipeline/raspberrypi/staggered_ctrl.cpp
+++ b/src/libcamera/pipeline/raspberrypi/staggered_ctrl.cpp
@@ -11,9 +11,9 @@
#include <libcamera/controls.h>
-#include "log.h"
-#include "utils.h"
-#include "v4l2_videodevice.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/utils.h"
+#include "libcamera/internal/v4l2_videodevice.h"
namespace libcamera {
diff --git a/src/libcamera/pipeline/rkisp1/rkisp1.cpp b/src/libcamera/pipeline/rkisp1/rkisp1.cpp
index 1e81a004..7a0c8771 100644
--- a/src/libcamera/pipeline/rkisp1/rkisp1.cpp
+++ b/src/libcamera/pipeline/rkisp1/rkisp1.cpp
@@ -20,16 +20,17 @@
#include <libcamera/request.h>
#include <libcamera/stream.h>
-#include "camera_sensor.h"
-#include "device_enumerator.h"
-#include "ipa_manager.h"
-#include "log.h"
-#include "media_device.h"
-#include "pipeline_handler.h"
+#include "libcamera/internal/camera_sensor.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/ipa_manager.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/pipeline_handler.h"
+#include "libcamera/internal/utils.h"
+#include "libcamera/internal/v4l2_subdevice.h"
+#include "libcamera/internal/v4l2_videodevice.h"
+
#include "timeline.h"
-#include "utils.h"
-#include "v4l2_subdevice.h"
-#include "v4l2_videodevice.h"
namespace libcamera {
diff --git a/src/libcamera/pipeline/rkisp1/timeline.cpp b/src/libcamera/pipeline/rkisp1/timeline.cpp
index f6c6434d..f5194608 100644
--- a/src/libcamera/pipeline/rkisp1/timeline.cpp
+++ b/src/libcamera/pipeline/rkisp1/timeline.cpp
@@ -7,7 +7,7 @@
#include "timeline.h"
-#include "log.h"
+#include "libcamera/internal/log.h"
/**
* \file timeline.h
diff --git a/src/libcamera/pipeline/rkisp1/timeline.h b/src/libcamera/pipeline/rkisp1/timeline.h
index 9d30e4ea..88f99329 100644
--- a/src/libcamera/pipeline/rkisp1/timeline.h
+++ b/src/libcamera/pipeline/rkisp1/timeline.h
@@ -12,7 +12,7 @@
#include <libcamera/timer.h>
-#include "utils.h"
+#include "libcamera/internal/utils.h"
namespace libcamera {
diff --git a/src/libcamera/pipeline/simple/converter.cpp b/src/libcamera/pipeline/simple/converter.cpp
index 6d88776d..02443e7f 100644
--- a/src/libcamera/pipeline/simple/converter.cpp
+++ b/src/libcamera/pipeline/simple/converter.cpp
@@ -13,9 +13,9 @@
#include <libcamera/geometry.h>
#include <libcamera/signal.h>
-#include "log.h"
-#include "media_device.h"
-#include "v4l2_videodevice.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/v4l2_videodevice.h"
namespace libcamera {
diff --git a/src/libcamera/pipeline/simple/simple.cpp b/src/libcamera/pipeline/simple/simple.cpp
index 66736061..25651900 100644
--- a/src/libcamera/pipeline/simple/simple.cpp
+++ b/src/libcamera/pipeline/simple/simple.cpp
@@ -24,13 +24,13 @@
#include <libcamera/request.h>
#include <libcamera/stream.h>
-#include "camera_sensor.h"
-#include "device_enumerator.h"
-#include "log.h"
-#include "media_device.h"
-#include "pipeline_handler.h"
-#include "v4l2_subdevice.h"
-#include "v4l2_videodevice.h"
+#include "libcamera/internal/camera_sensor.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/pipeline_handler.h"
+#include "libcamera/internal/v4l2_subdevice.h"
+#include "libcamera/internal/v4l2_videodevice.h"
#include "converter.h"
diff --git a/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp b/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp
index f0c1337d..a0749094 100644
--- a/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp
+++ b/src/libcamera/pipeline/uvcvideo/uvcvideo.cpp
@@ -17,13 +17,13 @@
#include <libcamera/request.h>
#include <libcamera/stream.h>
-#include "device_enumerator.h"
-#include "log.h"
-#include "media_device.h"
-#include "pipeline_handler.h"
-#include "utils.h"
-#include "v4l2_controls.h"
-#include "v4l2_videodevice.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/pipeline_handler.h"
+#include "libcamera/internal/utils.h"
+#include "libcamera/internal/v4l2_controls.h"
+#include "libcamera/internal/v4l2_videodevice.h"
namespace libcamera {
diff --git a/src/libcamera/pipeline/vimc/vimc.cpp b/src/libcamera/pipeline/vimc/vimc.cpp
index 128301e3..50a9f2df 100644
--- a/src/libcamera/pipeline/vimc/vimc.cpp
+++ b/src/libcamera/pipeline/vimc/vimc.cpp
@@ -22,16 +22,16 @@
#include <libcamera/request.h>
#include <libcamera/stream.h>
-#include "camera_sensor.h"
-#include "device_enumerator.h"
-#include "ipa_manager.h"
-#include "log.h"
-#include "media_device.h"
-#include "pipeline_handler.h"
-#include "utils.h"
-#include "v4l2_controls.h"
-#include "v4l2_subdevice.h"
-#include "v4l2_videodevice.h"
+#include "libcamera/internal/camera_sensor.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/ipa_manager.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/pipeline_handler.h"
+#include "libcamera/internal/utils.h"
+#include "libcamera/internal/v4l2_controls.h"
+#include "libcamera/internal/v4l2_subdevice.h"
+#include "libcamera/internal/v4l2_videodevice.h"
namespace libcamera {
diff --git a/src/libcamera/pipeline_handler.cpp b/src/libcamera/pipeline_handler.cpp
index 254d341f..53aeebdc 100644
--- a/src/libcamera/pipeline_handler.cpp
+++ b/src/libcamera/pipeline_handler.cpp
@@ -5,7 +5,7 @@
* pipeline_handler.cpp - Pipeline handler infrastructure
*/
-#include "pipeline_handler.h"
+#include "libcamera/internal/pipeline_handler.h"
#include <sys/sysmacros.h>
@@ -13,10 +13,10 @@
#include <libcamera/camera.h>
#include <libcamera/camera_manager.h>
-#include "device_enumerator.h"
-#include "log.h"
-#include "media_device.h"
-#include "utils.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/utils.h"
/**
* \file pipeline_handler.h
diff --git a/src/libcamera/process.cpp b/src/libcamera/process.cpp
index 3b4d0f10..e816ee86 100644
--- a/src/libcamera/process.cpp
+++ b/src/libcamera/process.cpp
@@ -5,7 +5,7 @@
* process.cpp - Process object
*/
-#include "process.h"
+#include "libcamera/internal/process.h"
#include <algorithm>
#include <dirent.h>
@@ -22,8 +22,8 @@
#include <libcamera/event_notifier.h>
-#include "log.h"
-#include "utils.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/utils.h"
/**
* \file process.h
diff --git a/src/libcamera/proxy/ipa_proxy_linux.cpp b/src/libcamera/proxy/ipa_proxy_linux.cpp
index 9e0f44cf..7d6f8799 100644
--- a/src/libcamera/proxy/ipa_proxy_linux.cpp
+++ b/src/libcamera/proxy/ipa_proxy_linux.cpp
@@ -10,11 +10,11 @@
#include <ipa/ipa_interface.h>
#include <ipa/ipa_module_info.h>
-#include "ipa_module.h"
-#include "ipa_proxy.h"
-#include "ipc_unixsocket.h"
-#include "log.h"
-#include "process.h"
+#include "libcamera/internal/ipa_module.h"
+#include "libcamera/internal/ipa_proxy.h"
+#include "libcamera/internal/ipc_unixsocket.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/process.h"
namespace libcamera {
diff --git a/src/libcamera/proxy/ipa_proxy_thread.cpp b/src/libcamera/proxy/ipa_proxy_thread.cpp
index 81d2d68e..03d4c0d9 100644
--- a/src/libcamera/proxy/ipa_proxy_thread.cpp
+++ b/src/libcamera/proxy/ipa_proxy_thread.cpp
@@ -10,11 +10,11 @@
#include <ipa/ipa_interface.h>
#include <ipa/ipa_module_info.h>
-#include "ipa_context_wrapper.h"
-#include "ipa_module.h"
-#include "ipa_proxy.h"
-#include "log.h"
-#include "thread.h"
+#include "libcamera/internal/ipa_context_wrapper.h"
+#include "libcamera/internal/ipa_module.h"
+#include "libcamera/internal/ipa_proxy.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/thread.h"
namespace libcamera {
diff --git a/src/libcamera/proxy/worker/ipa_proxy_linux_worker.cpp b/src/libcamera/proxy/worker/ipa_proxy_linux_worker.cpp
index 9cefa240..9ba94d01 100644
--- a/src/libcamera/proxy/worker/ipa_proxy_linux_worker.cpp
+++ b/src/libcamera/proxy/worker/ipa_proxy_linux_worker.cpp
@@ -13,10 +13,10 @@
#include <libcamera/event_dispatcher.h>
#include <libcamera/logging.h>
-#include "ipa_module.h"
-#include "ipc_unixsocket.h"
-#include "log.h"
-#include "thread.h"
+#include "libcamera/internal/ipa_module.h"
+#include "libcamera/internal/ipc_unixsocket.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/thread.h"
using namespace libcamera;
diff --git a/src/libcamera/proxy/worker/meson.build b/src/libcamera/proxy/worker/meson.build
index 1b1bee5e..ac0310a7 100644
--- a/src/libcamera/proxy/worker/meson.build
+++ b/src/libcamera/proxy/worker/meson.build
@@ -8,7 +8,6 @@ proxy_install_dir = join_paths(get_option('libexecdir'), 'libcamera')
foreach t : ipa_proxy_sources
proxy = executable(t[0], t[1],
- include_directories : libcamera_internal_includes,
install : true,
install_dir : proxy_install_dir,
dependencies : libcamera_dep)
diff --git a/src/libcamera/pub_key.cpp b/src/libcamera/pub_key.cpp
index 064d2dd2..2f60adbb 100644
--- a/src/libcamera/pub_key.cpp
+++ b/src/libcamera/pub_key.cpp
@@ -5,7 +5,7 @@
* pub_key.cpp - Public key signature verification
*/
-#include "pub_key.h"
+#include "libcamera/internal/pub_key.h"
#if HAVE_GNUTLS
#include <gnutls/abstract.h>
diff --git a/src/libcamera/request.cpp b/src/libcamera/request.cpp
index ea33736f..6b9e0b4a 100644
--- a/src/libcamera/request.cpp
+++ b/src/libcamera/request.cpp
@@ -14,8 +14,8 @@
#include <libcamera/control_ids.h>
#include <libcamera/stream.h>
-#include "camera_controls.h"
-#include "log.h"
+#include "libcamera/internal/camera_controls.h"
+#include "libcamera/internal/log.h"
/**
* \file request.h
diff --git a/src/libcamera/semaphore.cpp b/src/libcamera/semaphore.cpp
index ce1eae49..d8988a91 100644
--- a/src/libcamera/semaphore.cpp
+++ b/src/libcamera/semaphore.cpp
@@ -5,8 +5,8 @@
* semaphore.cpp - General-purpose counting semaphore
*/
-#include "semaphore.h"
-#include "thread.h"
+#include "libcamera/internal/semaphore.h"
+#include "libcamera/internal/thread.h"
/**
* \file semaphore.h
diff --git a/src/libcamera/signal.cpp b/src/libcamera/signal.cpp
index 6eab1fa7..2532df3c 100644
--- a/src/libcamera/signal.cpp
+++ b/src/libcamera/signal.cpp
@@ -7,7 +7,7 @@
#include <libcamera/signal.h>
-#include "thread.h"
+#include "libcamera/internal/thread.h"
/**
* \file signal.h
diff --git a/src/libcamera/stream.cpp b/src/libcamera/stream.cpp
index 86c0b17d..f34348f2 100644
--- a/src/libcamera/stream.cpp
+++ b/src/libcamera/stream.cpp
@@ -15,8 +15,8 @@
#include <libcamera/request.h>
-#include "log.h"
-#include "utils.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/utils.h"
/**
* \file stream.h
diff --git a/src/libcamera/thread.cpp b/src/libcamera/thread.cpp
index 85293c18..d1750d72 100644
--- a/src/libcamera/thread.cpp
+++ b/src/libcamera/thread.cpp
@@ -5,7 +5,7 @@
* thread.cpp - Thread support
*/
-#include "thread.h"
+#include "libcamera/internal/thread.h"
#include <atomic>
#include <condition_variable>
@@ -16,9 +16,9 @@
#include <libcamera/event_dispatcher.h>
-#include "event_dispatcher_poll.h"
-#include "log.h"
-#include "message.h"
+#include "libcamera/internal/event_dispatcher_poll.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/message.h"
/**
* \page thread Thread Support
diff --git a/src/libcamera/timer.cpp b/src/libcamera/timer.cpp
index 24da5152..24e452ed 100644
--- a/src/libcamera/timer.cpp
+++ b/src/libcamera/timer.cpp
@@ -12,10 +12,10 @@
#include <libcamera/camera_manager.h>
#include <libcamera/event_dispatcher.h>
-#include "log.h"
-#include "message.h"
-#include "thread.h"
-#include "utils.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/message.h"
+#include "libcamera/internal/thread.h"
+#include "libcamera/internal/utils.h"
/**
* \file timer.h
diff --git a/src/libcamera/utils.cpp b/src/libcamera/utils.cpp
index fbadf350..d55338fe 100644
--- a/src/libcamera/utils.cpp
+++ b/src/libcamera/utils.cpp
@@ -5,7 +5,7 @@
* utils.cpp - Miscellaneous utility functions
*/
-#include "utils.h"
+#include "libcamera/internal/utils.h"
#include <dlfcn.h>
#include <elf.h>
diff --git a/src/libcamera/v4l2_controls.cpp b/src/libcamera/v4l2_controls.cpp
index 8e2415f2..3f8ec6ca 100644
--- a/src/libcamera/v4l2_controls.cpp
+++ b/src/libcamera/v4l2_controls.cpp
@@ -5,7 +5,7 @@
* v4l2_controls.cpp - V4L2 Controls Support
*/
-#include "v4l2_controls.h"
+#include "libcamera/internal/v4l2_controls.h"
#include <string.h>
diff --git a/src/libcamera/v4l2_device.cpp b/src/libcamera/v4l2_device.cpp
index d08ab531..56ea1ddd 100644
--- a/src/libcamera/v4l2_device.cpp
+++ b/src/libcamera/v4l2_device.cpp
@@ -5,7 +5,7 @@
* v4l2_device.cpp - Common base for V4L2 video devices and subdevices
*/
-#include "v4l2_device.h"
+#include "libcamera/internal/v4l2_device.h"
#include <fcntl.h>
#include <iomanip>
@@ -14,9 +14,9 @@
#include <sys/syscall.h>
#include <unistd.h>
-#include "log.h"
-#include "utils.h"
-#include "v4l2_controls.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/utils.h"
+#include "libcamera/internal/v4l2_controls.h"
/**
* \file v4l2_device.h
diff --git a/src/libcamera/v4l2_pixelformat.cpp b/src/libcamera/v4l2_pixelformat.cpp
index 561f9327..36776be9 100644
--- a/src/libcamera/v4l2_pixelformat.cpp
+++ b/src/libcamera/v4l2_pixelformat.cpp
@@ -6,7 +6,7 @@
* v4l2_pixelformat.cpp - V4L2 Pixel Format
*/
-#include "v4l2_pixelformat.h"
+#include "libcamera/internal/v4l2_pixelformat.h"
#include <ctype.h>
#include <map>
@@ -16,8 +16,8 @@
#include <libcamera/pixelformats.h>
-#include "formats.h"
-#include "log.h"
+#include "libcamera/internal/formats.h"
+#include "libcamera/internal/log.h"
/**
* \file v4l2_pixelformat.h
diff --git a/src/libcamera/v4l2_subdevice.cpp b/src/libcamera/v4l2_subdevice.cpp
index 2b756178..7aefc1be 100644
--- a/src/libcamera/v4l2_subdevice.cpp
+++ b/src/libcamera/v4l2_subdevice.cpp
@@ -5,7 +5,7 @@
* v4l2_subdevice.cpp - V4L2 Subdevice
*/
-#include "v4l2_subdevice.h"
+#include "libcamera/internal/v4l2_subdevice.h"
#include <fcntl.h>
#include <iomanip>
@@ -19,10 +19,10 @@
#include <libcamera/geometry.h>
-#include "log.h"
-#include "media_device.h"
-#include "media_object.h"
-#include "utils.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/media_object.h"
+#include "libcamera/internal/utils.h"
/**
* \file v4l2_subdevice.h
diff --git a/src/libcamera/v4l2_videodevice.cpp b/src/libcamera/v4l2_videodevice.cpp
index 4b9f8b5c..d35596bd 100644
--- a/src/libcamera/v4l2_videodevice.cpp
+++ b/src/libcamera/v4l2_videodevice.cpp
@@ -5,7 +5,7 @@
* v4l2_videodevice.cpp - V4L2 Video Device
*/
-#include "v4l2_videodevice.h"
+#include "libcamera/internal/v4l2_videodevice.h"
#include <fcntl.h>
#include <iomanip>
@@ -23,10 +23,10 @@
#include <libcamera/event_notifier.h>
#include <libcamera/file_descriptor.h>
-#include "log.h"
-#include "media_device.h"
-#include "media_object.h"
-#include "utils.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/media_object.h"
+#include "libcamera/internal/utils.h"
/**
* \file v4l2_videodevice.h
diff --git a/src/v4l2/meson.build b/src/v4l2/meson.build
index fc1be82d..0fb941ea 100644
--- a/src/v4l2/meson.build
+++ b/src/v4l2/meson.build
@@ -22,6 +22,5 @@ v4l2_compat = shared_library('v4l2-compat',
v4l2_compat_sources,
name_prefix : '',
install : true,
- include_directories : libcamera_internal_includes,
dependencies : [ libcamera_dep, libdl ],
cpp_args : v4l2_compat_cpp_args)
diff --git a/src/v4l2/v4l2_camera.cpp b/src/v4l2/v4l2_camera.cpp
index ecbb70ac..50a4121c 100644
--- a/src/v4l2/v4l2_camera.cpp
+++ b/src/v4l2/v4l2_camera.cpp
@@ -9,7 +9,7 @@
#include <errno.h>
-#include "log.h"
+#include "libcamera/internal/log.h"
using namespace libcamera;
diff --git a/src/v4l2/v4l2_camera.h b/src/v4l2/v4l2_camera.h
index 130995d9..c969130f 100644
--- a/src/v4l2/v4l2_camera.h
+++ b/src/v4l2/v4l2_camera.h
@@ -17,7 +17,7 @@
#include <libcamera/file_descriptor.h>
#include <libcamera/framebuffer_allocator.h>
-#include "semaphore.h"
+#include "libcamera/internal/semaphore.h"
using namespace libcamera;
diff --git a/src/v4l2/v4l2_camera_proxy.cpp b/src/v4l2/v4l2_camera_proxy.cpp
index 47d0528b..19e8f6d3 100644
--- a/src/v4l2/v4l2_camera_proxy.cpp
+++ b/src/v4l2/v4l2_camera_proxy.cpp
@@ -17,8 +17,9 @@
#include <libcamera/camera.h>
#include <libcamera/object.h>
-#include "log.h"
-#include "utils.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/utils.h"
+
#include "v4l2_camera.h"
#include "v4l2_compat_manager.h"
diff --git a/src/v4l2/v4l2_compat_manager.cpp b/src/v4l2/v4l2_compat_manager.cpp
index 961d06b3..cd8ac0b8 100644
--- a/src/v4l2/v4l2_compat_manager.cpp
+++ b/src/v4l2/v4l2_compat_manager.cpp
@@ -22,7 +22,7 @@
#include <libcamera/camera.h>
#include <libcamera/camera_manager.h>
-#include "log.h"
+#include "libcamera/internal/log.h"
using namespace libcamera;
diff --git a/test/byte-stream-buffer.cpp b/test/byte-stream-buffer.cpp
index bc1d462e..d606f146 100644
--- a/test/byte-stream-buffer.cpp
+++ b/test/byte-stream-buffer.cpp
@@ -8,7 +8,8 @@
#include <array>
#include <iostream>
-#include "byte_stream_buffer.h"
+#include "libcamera/internal/byte_stream_buffer.h"
+
#include "test.h"
using namespace std;
diff --git a/test/camera-sensor.cpp b/test/camera-sensor.cpp
index 6069d668..8c7fd1d2 100644
--- a/test/camera-sensor.cpp
+++ b/test/camera-sensor.cpp
@@ -10,11 +10,11 @@
#include <linux/media-bus-format.h>
-#include "camera_sensor.h"
-#include "device_enumerator.h"
-#include "media_device.h"
-#include "utils.h"
-#include "v4l2_subdevice.h"
+#include "libcamera/internal/camera_sensor.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/utils.h"
+#include "libcamera/internal/v4l2_subdevice.h"
#include "test.h"
diff --git a/test/camera/buffer_import.cpp b/test/camera/buffer_import.cpp
index 3f392cdc..ad680a83 100644
--- a/test/camera/buffer_import.cpp
+++ b/test/camera/buffer_import.cpp
@@ -12,9 +12,9 @@
#include <numeric>
#include <vector>
-#include "device_enumerator.h"
-#include "media_device.h"
-#include "v4l2_videodevice.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/v4l2_videodevice.h"
#include "buffer_source.h"
#include "camera_test.h"
diff --git a/test/controls/control_info_map.cpp b/test/controls/control_info_map.cpp
index eeb702db..e4305f13 100644
--- a/test/controls/control_info_map.cpp
+++ b/test/controls/control_info_map.cpp
@@ -12,7 +12,7 @@
#include <libcamera/control_ids.h>
#include <libcamera/controls.h>
-#include "camera_controls.h"
+#include "libcamera/internal/camera_controls.h"
#include "camera_test.h"
#include "test.h"
diff --git a/test/controls/control_list.cpp b/test/controls/control_list.cpp
index d51ec47d..5c8485b5 100644
--- a/test/controls/control_list.cpp
+++ b/test/controls/control_list.cpp
@@ -12,7 +12,7 @@
#include <libcamera/control_ids.h>
#include <libcamera/controls.h>
-#include "camera_controls.h"
+#include "libcamera/internal/camera_controls.h"
#include "camera_test.h"
#include "test.h"
diff --git a/test/event-dispatcher.cpp b/test/event-dispatcher.cpp
index 9f9cf178..1b617786 100644
--- a/test/event-dispatcher.cpp
+++ b/test/event-dispatcher.cpp
@@ -13,8 +13,9 @@
#include <libcamera/event_dispatcher.h>
#include <libcamera/timer.h>
+#include "libcamera/internal/thread.h"
+
#include "test.h"
-#include "thread.h"
using namespace std;
using namespace libcamera;
diff --git a/test/event-thread.cpp b/test/event-thread.cpp
index 01120733..c90e6ac0 100644
--- a/test/event-thread.cpp
+++ b/test/event-thread.cpp
@@ -13,8 +13,9 @@
#include <libcamera/event_notifier.h>
#include <libcamera/timer.h>
+#include "libcamera/internal/thread.h"
+
#include "test.h"
-#include "thread.h"
using namespace std;
using namespace libcamera;
diff --git a/test/event.cpp b/test/event.cpp
index 816060cc..c865092c 100644
--- a/test/event.cpp
+++ b/test/event.cpp
@@ -13,8 +13,9 @@
#include <libcamera/event_notifier.h>
#include <libcamera/timer.h>
+#include "libcamera/internal/thread.h"
+
#include "test.h"
-#include "thread.h"
using namespace std;
using namespace libcamera;
diff --git a/test/file-descriptor.cpp b/test/file-descriptor.cpp
index e467f3a7..7477a843 100644
--- a/test/file-descriptor.cpp
+++ b/test/file-descriptor.cpp
@@ -13,8 +13,9 @@
#include <libcamera/file_descriptor.h>
+#include "libcamera/internal/utils.h"
+
#include "test.h"
-#include "utils.h"
using namespace libcamera;
using namespace std;
diff --git a/test/file.cpp b/test/file.cpp
index 65583998..6262a6f0 100644
--- a/test/file.cpp
+++ b/test/file.cpp
@@ -13,7 +13,8 @@
#include <sys/types.h>
#include <unistd.h>
-#include "file.h"
+#include "libcamera/internal/file.h"
+
#include "test.h"
using namespace std;
diff --git a/test/ipa/ipa_interface_test.cpp b/test/ipa/ipa_interface_test.cpp
index 7fa88efe..c394377d 100644
--- a/test/ipa/ipa_interface_test.cpp
+++ b/test/ipa/ipa_interface_test.cpp
@@ -18,12 +18,13 @@
#include <ipa/ipa_vimc.h>
-#include "device_enumerator.h"
-#include "ipa_manager.h"
-#include "ipa_module.h"
-#include "pipeline_handler.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/ipa_manager.h"
+#include "libcamera/internal/ipa_module.h"
+#include "libcamera/internal/pipeline_handler.h"
+#include "libcamera/internal/thread.h"
+
#include "test.h"
-#include "thread.h"
using namespace std;
using namespace libcamera;
diff --git a/test/ipa/ipa_module_test.cpp b/test/ipa/ipa_module_test.cpp
index e3aee190..bd5e0e4c 100644
--- a/test/ipa/ipa_module_test.cpp
+++ b/test/ipa/ipa_module_test.cpp
@@ -8,7 +8,7 @@
#include <iostream>
#include <string.h>
-#include "ipa_module.h"
+#include "libcamera/internal/ipa_module.h"
#include "test.h"
diff --git a/test/ipa/ipa_wrappers_test.cpp b/test/ipa/ipa_wrappers_test.cpp
index 4de13212..aa7a9dcc 100644
--- a/test/ipa/ipa_wrappers_test.cpp
+++ b/test/ipa/ipa_wrappers_test.cpp
@@ -15,11 +15,11 @@
#include <libcamera/controls.h>
#include <libipa/ipa_interface_wrapper.h>
-#include "camera_sensor.h"
-#include "device_enumerator.h"
-#include "ipa_context_wrapper.h"
-#include "media_device.h"
-#include "v4l2_subdevice.h"
+#include "libcamera/internal/camera_sensor.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/ipa_context_wrapper.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/v4l2_subdevice.h"
#include "test.h"
diff --git a/test/ipc/unixsocket.cpp b/test/ipc/unixsocket.cpp
index f53042b8..4487d27b 100644
--- a/test/ipc/unixsocket.cpp
+++ b/test/ipc/unixsocket.cpp
@@ -18,10 +18,11 @@
#include <libcamera/event_dispatcher.h>
#include <libcamera/timer.h>
-#include "ipc_unixsocket.h"
+#include "libcamera/internal/ipc_unixsocket.h"
+#include "libcamera/internal/thread.h"
+#include "libcamera/internal/utils.h"
+
#include "test.h"
-#include "thread.h"
-#include "utils.h"
#define CMD_CLOSE 0
#define CMD_REVERSE 1
diff --git a/test/libtest/buffer_source.cpp b/test/libtest/buffer_source.cpp
index d1dad2a0..ee87c8cd 100644
--- a/test/libtest/buffer_source.cpp
+++ b/test/libtest/buffer_source.cpp
@@ -10,7 +10,7 @@
#include <iostream>
#include <memory>
-#include "device_enumerator.h"
+#include "libcamera/internal/device_enumerator.h"
#include "test.h"
diff --git a/test/libtest/buffer_source.h b/test/libtest/buffer_source.h
index ae0879c9..95a82a82 100644
--- a/test/libtest/buffer_source.h
+++ b/test/libtest/buffer_source.h
@@ -9,8 +9,8 @@
#include <libcamera/libcamera.h>
-#include "media_device.h"
-#include "v4l2_videodevice.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/v4l2_videodevice.h"
using namespace libcamera;
diff --git a/test/libtest/meson.build b/test/libtest/meson.build
index 481f6d6b..542335ea 100644
--- a/test/libtest/meson.build
+++ b/test/libtest/meson.build
@@ -15,7 +15,6 @@ test_includes_public = [
test_includes_internal = [
test_includes_public,
- libcamera_internal_includes,
]
libtest = static_library('libtest', libtest_sources,
diff --git a/test/log/log_api.cpp b/test/log/log_api.cpp
index 33622f84..6f3248a7 100644
--- a/test/log/log_api.cpp
+++ b/test/log/log_api.cpp
@@ -18,7 +18,8 @@
#include <libcamera/logging.h>
-#include "log.h"
+#include "libcamera/internal/log.h"
+
#include "test.h"
using namespace std;
diff --git a/test/log/log_process.cpp b/test/log/log_process.cpp
index 2df4aa43..8463d0ed 100644
--- a/test/log/log_process.cpp
+++ b/test/log/log_process.cpp
@@ -18,11 +18,12 @@
#include <libcamera/logging.h>
#include <libcamera/timer.h>
-#include "log.h"
-#include "process.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/process.h"
+#include "libcamera/internal/thread.h"
+#include "libcamera/internal/utils.h"
+
#include "test.h"
-#include "thread.h"
-#include "utils.h"
using namespace std;
using namespace libcamera;
diff --git a/test/media_device/media_device_print_test.cpp b/test/media_device/media_device_print_test.cpp
index 5018906c..1f5e3f3e 100644
--- a/test/media_device/media_device_print_test.cpp
+++ b/test/media_device/media_device_print_test.cpp
@@ -10,7 +10,7 @@
#include <sys/stat.h>
#include <unistd.h>
-#include "media_device.h"
+#include "libcamera/internal/media_device.h"
#include "test.h"
diff --git a/test/media_device/media_device_test.h b/test/media_device/media_device_test.h
index cdbd1484..0c8bf9f2 100644
--- a/test/media_device/media_device_test.h
+++ b/test/media_device/media_device_test.h
@@ -9,8 +9,8 @@
#include <memory>
-#include "device_enumerator.h"
-#include "media_device.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/media_device.h"
#include "test.h"
diff --git a/test/message.cpp b/test/message.cpp
index 478bc79d..9553ba8c 100644
--- a/test/message.cpp
+++ b/test/message.cpp
@@ -9,8 +9,9 @@
#include <iostream>
#include <thread>
-#include "message.h"
-#include "thread.h"
+#include "libcamera/internal/message.h"
+#include "libcamera/internal/thread.h"
+
#include "test.h"
using namespace std;
diff --git a/test/object-invoke.cpp b/test/object-invoke.cpp
index fa162c83..1ae11bb1 100644
--- a/test/object-invoke.cpp
+++ b/test/object-invoke.cpp
@@ -11,8 +11,9 @@
#include <libcamera/event_dispatcher.h>
#include <libcamera/object.h>
+#include "libcamera/internal/thread.h"
+
#include "test.h"
-#include "thread.h"
using namespace std;
using namespace libcamera;
diff --git a/test/object.cpp b/test/object.cpp
index 16118971..264659b4 100644
--- a/test/object.cpp
+++ b/test/object.cpp
@@ -9,8 +9,8 @@
#include <libcamera/object.h>
-#include "message.h"
-#include "thread.h"
+#include "libcamera/internal/message.h"
+#include "libcamera/internal/thread.h"
#include "test.h"
diff --git a/test/pipeline/ipu3/ipu3_pipeline_test.cpp b/test/pipeline/ipu3/ipu3_pipeline_test.cpp
index a5c6be09..34998f8f 100644
--- a/test/pipeline/ipu3/ipu3_pipeline_test.cpp
+++ b/test/pipeline/ipu3/ipu3_pipeline_test.cpp
@@ -13,9 +13,10 @@
#include <libcamera/camera.h>
#include <libcamera/camera_manager.h>
-#include "device_enumerator.h"
-#include "media_device.h"
-#include "media_object.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/media_object.h"
+
#include "test.h"
using namespace std;
diff --git a/test/pipeline/rkisp1/rkisp1_pipeline_test.cpp b/test/pipeline/rkisp1/rkisp1_pipeline_test.cpp
index d46c928f..b6678ce7 100644
--- a/test/pipeline/rkisp1/rkisp1_pipeline_test.cpp
+++ b/test/pipeline/rkisp1/rkisp1_pipeline_test.cpp
@@ -16,9 +16,10 @@
#include <libcamera/camera.h>
#include <libcamera/camera_manager.h>
-#include "device_enumerator.h"
-#include "media_device.h"
-#include "media_object.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/media_object.h"
+
#include "test.h"
using namespace std;
diff --git a/test/process/process_test.cpp b/test/process/process_test.cpp
index 7e7b3c2c..ce0cc7c9 100644
--- a/test/process/process_test.cpp
+++ b/test/process/process_test.cpp
@@ -12,10 +12,11 @@
#include <libcamera/event_dispatcher.h>
#include <libcamera/timer.h>
-#include "process.h"
+#include "libcamera/internal/process.h"
+#include "libcamera/internal/thread.h"
+#include "libcamera/internal/utils.h"
+
#include "test.h"
-#include "thread.h"
-#include "utils.h"
using namespace std;
using namespace libcamera;
diff --git a/test/serialization/control_serialization.cpp b/test/serialization/control_serialization.cpp
index 11136524..e23383d1 100644
--- a/test/serialization/control_serialization.cpp
+++ b/test/serialization/control_serialization.cpp
@@ -11,8 +11,9 @@
#include <libcamera/control_ids.h>
#include <libcamera/controls.h>
-#include "byte_stream_buffer.h"
-#include "control_serializer.h"
+#include "libcamera/internal/byte_stream_buffer.h"
+#include "libcamera/internal/control_serializer.h"
+
#include "serialization_test.h"
#include "test.h"
diff --git a/test/signal-threads.cpp b/test/signal-threads.cpp
index f77733eb..3c5f3792 100644
--- a/test/signal-threads.cpp
+++ b/test/signal-threads.cpp
@@ -9,10 +9,11 @@
#include <iostream>
#include <thread>
-#include "message.h"
-#include "thread.h"
+#include "libcamera/internal/message.h"
+#include "libcamera/internal/thread.h"
+#include "libcamera/internal/utils.h"
+
#include "test.h"
-#include "utils.h"
using namespace std;
using namespace libcamera;
diff --git a/test/threads.cpp b/test/threads.cpp
index 0454761d..b4b8d913 100644
--- a/test/threads.cpp
+++ b/test/threads.cpp
@@ -9,7 +9,8 @@
#include <iostream>
#include <thread>
-#include "thread.h"
+#include "libcamera/internal/thread.h"
+
#include "test.h"
using namespace std;
diff --git a/test/timer-thread.cpp b/test/timer-thread.cpp
index 32853b4e..2f901787 100644
--- a/test/timer-thread.cpp
+++ b/test/timer-thread.cpp
@@ -11,8 +11,9 @@
#include <libcamera/event_dispatcher.h>
#include <libcamera/timer.h>
+#include "libcamera/internal/thread.h"
+
#include "test.h"
-#include "thread.h"
using namespace std;
using namespace libcamera;
diff --git a/test/timer.cpp b/test/timer.cpp
index 2bdb006e..7d5b93c3 100644
--- a/test/timer.cpp
+++ b/test/timer.cpp
@@ -11,8 +11,9 @@
#include <libcamera/event_dispatcher.h>
#include <libcamera/timer.h>
+#include "libcamera/internal/thread.h"
+
#include "test.h"
-#include "thread.h"
using namespace std;
using namespace libcamera;
diff --git a/test/utils.cpp b/test/utils.cpp
index 55ce9365..66b91f12 100644
--- a/test/utils.cpp
+++ b/test/utils.cpp
@@ -12,8 +12,9 @@
#include <libcamera/geometry.h>
+#include "libcamera/internal/utils.h"
+
#include "test.h"
-#include "utils.h"
using namespace std;
using namespace libcamera;
diff --git a/test/v4l2_subdevice/list_formats.cpp b/test/v4l2_subdevice/list_formats.cpp
index 067dc5ed..25503c33 100644
--- a/test/v4l2_subdevice/list_formats.cpp
+++ b/test/v4l2_subdevice/list_formats.cpp
@@ -11,7 +11,8 @@
#include <libcamera/geometry.h>
-#include "v4l2_subdevice.h"
+#include "libcamera/internal/v4l2_subdevice.h"
+
#include "v4l2_subdevice_test.h"
using namespace std;
diff --git a/test/v4l2_subdevice/test_formats.cpp b/test/v4l2_subdevice/test_formats.cpp
index 5cf5d566..9635c994 100644
--- a/test/v4l2_subdevice/test_formats.cpp
+++ b/test/v4l2_subdevice/test_formats.cpp
@@ -8,7 +8,8 @@
#include <iostream>
#include <limits.h>
-#include "v4l2_subdevice.h"
+#include "libcamera/internal/v4l2_subdevice.h"
+
#include "v4l2_subdevice_test.h"
using namespace std;
diff --git a/test/v4l2_subdevice/v4l2_subdevice_test.cpp b/test/v4l2_subdevice/v4l2_subdevice_test.cpp
index 562a638c..d8fbfd9f 100644
--- a/test/v4l2_subdevice/v4l2_subdevice_test.cpp
+++ b/test/v4l2_subdevice/v4l2_subdevice_test.cpp
@@ -9,9 +9,10 @@
#include <string.h>
#include <sys/stat.h>
-#include "device_enumerator.h"
-#include "media_device.h"
-#include "v4l2_subdevice.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/v4l2_subdevice.h"
+
#include "v4l2_subdevice_test.h"
using namespace std;
diff --git a/test/v4l2_subdevice/v4l2_subdevice_test.h b/test/v4l2_subdevice/v4l2_subdevice_test.h
index 3bce6691..00c6399d 100644
--- a/test/v4l2_subdevice/v4l2_subdevice_test.h
+++ b/test/v4l2_subdevice/v4l2_subdevice_test.h
@@ -10,10 +10,11 @@
#include <libcamera/buffer.h>
-#include "device_enumerator.h"
-#include "media_device.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/v4l2_subdevice.h"
+
#include "test.h"
-#include "v4l2_subdevice.h"
using namespace libcamera;
diff --git a/test/v4l2_videodevice/buffer_sharing.cpp b/test/v4l2_videodevice/buffer_sharing.cpp
index 14d3055a..ba2cc40d 100644
--- a/test/v4l2_videodevice/buffer_sharing.cpp
+++ b/test/v4l2_videodevice/buffer_sharing.cpp
@@ -16,7 +16,8 @@
#include <libcamera/event_dispatcher.h>
#include <libcamera/timer.h>
-#include "thread.h"
+#include "libcamera/internal/thread.h"
+
#include "v4l2_videodevice_test.h"
class BufferSharingTest : public V4L2VideoDeviceTest
diff --git a/test/v4l2_videodevice/capture_async.cpp b/test/v4l2_videodevice/capture_async.cpp
index b38aabc6..13cbcc80 100644
--- a/test/v4l2_videodevice/capture_async.cpp
+++ b/test/v4l2_videodevice/capture_async.cpp
@@ -11,7 +11,8 @@
#include <libcamera/event_dispatcher.h>
#include <libcamera/timer.h>
-#include "thread.h"
+#include "libcamera/internal/thread.h"
+
#include "v4l2_videodevice_test.h"
class CaptureAsyncTest : public V4L2VideoDeviceTest
diff --git a/test/v4l2_videodevice/controls.cpp b/test/v4l2_videodevice/controls.cpp
index 347af211..9f09d036 100644
--- a/test/v4l2_videodevice/controls.cpp
+++ b/test/v4l2_videodevice/controls.cpp
@@ -10,7 +10,7 @@
#include <iostream>
#include <limits.h>
-#include "v4l2_videodevice.h"
+#include "libcamera/internal/v4l2_videodevice.h"
#include "v4l2_videodevice_test.h"
diff --git a/test/v4l2_videodevice/formats.cpp b/test/v4l2_videodevice/formats.cpp
index a7421421..043732dc 100644
--- a/test/v4l2_videodevice/formats.cpp
+++ b/test/v4l2_videodevice/formats.cpp
@@ -8,8 +8,8 @@
#include <iostream>
#include <limits.h>
-#include "utils.h"
-#include "v4l2_videodevice.h"
+#include "libcamera/internal/utils.h"
+#include "libcamera/internal/v4l2_videodevice.h"
#include "v4l2_videodevice_test.h"
diff --git a/test/v4l2_videodevice/v4l2_m2mdevice.cpp b/test/v4l2_videodevice/v4l2_m2mdevice.cpp
index d20e5dfc..44a39d4d 100644
--- a/test/v4l2_videodevice/v4l2_m2mdevice.cpp
+++ b/test/v4l2_videodevice/v4l2_m2mdevice.cpp
@@ -11,10 +11,10 @@
#include <libcamera/event_dispatcher.h>
#include <libcamera/timer.h>
-#include "device_enumerator.h"
-#include "media_device.h"
-#include "thread.h"
-#include "v4l2_videodevice.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/thread.h"
+#include "libcamera/internal/v4l2_videodevice.h"
#include "test.h"
diff --git a/test/v4l2_videodevice/v4l2_videodevice_test.cpp b/test/v4l2_videodevice/v4l2_videodevice_test.cpp
index 93b9e72d..f23aaf8f 100644
--- a/test/v4l2_videodevice/v4l2_videodevice_test.cpp
+++ b/test/v4l2_videodevice/v4l2_videodevice_test.cpp
@@ -9,10 +9,10 @@
#include <linux/media-bus-format.h>
-#include "v4l2_videodevice_test.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/media_device.h"
-#include "device_enumerator.h"
-#include "media_device.h"
+#include "v4l2_videodevice_test.h"
using namespace std;
using namespace libcamera;
diff --git a/test/v4l2_videodevice/v4l2_videodevice_test.h b/test/v4l2_videodevice/v4l2_videodevice_test.h
index 9acaceb8..21054561 100644
--- a/test/v4l2_videodevice/v4l2_videodevice_test.h
+++ b/test/v4l2_videodevice/v4l2_videodevice_test.h
@@ -11,13 +11,13 @@
#include <libcamera/buffer.h>
-#include "test.h"
+#include "libcamera/internal/camera_sensor.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/v4l2_subdevice.h"
+#include "libcamera/internal/v4l2_videodevice.h"
-#include "camera_sensor.h"
-#include "device_enumerator.h"
-#include "media_device.h"
-#include "v4l2_subdevice.h"
-#include "v4l2_videodevice.h"
+#include "test.h"
using namespace libcamera;