summaryrefslogtreecommitdiff
path: root/test/libtest/buffer_source.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/libtest/buffer_source.h')
-rw-r--r--test/libtest/buffer_source.h22
1 files changed, 9 insertions, 13 deletions
diff --git a/test/libtest/buffer_source.h b/test/libtest/buffer_source.h
index ae0879c9..495da8a9 100644
--- a/test/libtest/buffer_source.h
+++ b/test/libtest/buffer_source.h
@@ -2,17 +2,15 @@
/*
* Copyright (C) 2020, Google Inc.
*
- * buffer_source.h - libcamera camera test helper to create FrameBuffers
+ * libcamera camera test helper to create FrameBuffers
*/
-#ifndef __LIBCAMERA_BUFFER_SOURCE_TEST_H__
-#define __LIBCAMERA_BUFFER_SOURCE_TEST_H__
-#include <libcamera/libcamera.h>
+#pragma once
-#include "media_device.h"
-#include "v4l2_videodevice.h"
+#include <libcamera/stream.h>
-using namespace libcamera;
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/v4l2_videodevice.h"
class BufferSource
{
@@ -20,12 +18,10 @@ public:
BufferSource();
~BufferSource();
- int allocate(const StreamConfiguration &config);
- const std::vector<std::unique_ptr<FrameBuffer>> &buffers();
+ int allocate(const libcamera::StreamConfiguration &config);
+ const std::vector<std::unique_ptr<libcamera::FrameBuffer>> &buffers();
private:
- std::shared_ptr<MediaDevice> media_;
- std::vector<std::unique_ptr<FrameBuffer>> buffers_;
+ std::shared_ptr<libcamera::MediaDevice> media_;
+ std::vector<std::unique_ptr<libcamera::FrameBuffer>> buffers_;
};
-
-#endif /* __LIBCAMERA_BUFFER_SOURCE_TEST_H__ */