summaryrefslogtreecommitdiff
path: root/test/camera
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-08-23 21:56:37 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-09-21 13:50:42 +0300
commitbeed258a5a3f6a690c6774d37815527fe60375eb (patch)
treebccdc90f22b38f661c26a717ba38226159bf3b17 /test/camera
parent2fa4ba01ffa2984e85ca77fce1430b6ae86ae84f (diff)
test: Include specific headers instead of libcamera.h
Let's only pull required headers, to avoid slowing compilation down. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'test/camera')
-rw-r--r--test/camera/buffer_import.cpp3
-rw-r--r--test/camera/capture.cpp4
-rw-r--r--test/camera/statemachine.cpp2
3 files changed, 9 insertions, 0 deletions
diff --git a/test/camera/buffer_import.cpp b/test/camera/buffer_import.cpp
index d57ffa75..64e96264 100644
--- a/test/camera/buffer_import.cpp
+++ b/test/camera/buffer_import.cpp
@@ -12,6 +12,9 @@
#include <numeric>
#include <vector>
+#include <libcamera/event_dispatcher.h>
+#include <libcamera/timer.h>
+
#include "libcamera/internal/device_enumerator.h"
#include "libcamera/internal/media_device.h"
#include "libcamera/internal/v4l2_videodevice.h"
diff --git a/test/camera/capture.cpp b/test/camera/capture.cpp
index eb67bf2d..51bbd258 100644
--- a/test/camera/capture.cpp
+++ b/test/camera/capture.cpp
@@ -7,6 +7,10 @@
#include <iostream>
+#include <libcamera/event_dispatcher.h>
+#include <libcamera/framebuffer_allocator.h>
+#include <libcamera/timer.h>
+
#include "camera_test.h"
#include "test.h"
diff --git a/test/camera/statemachine.cpp b/test/camera/statemachine.cpp
index 0bda6fe4..28faeb91 100644
--- a/test/camera/statemachine.cpp
+++ b/test/camera/statemachine.cpp
@@ -7,6 +7,8 @@
#include <iostream>
+#include <libcamera/framebuffer_allocator.h>
+
#include "camera_test.h"
#include "test.h"