summaryrefslogtreecommitdiff
path: root/include/libcamera/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libcamera/buffer.h')
-rw-r--r--include/libcamera/buffer.h61
1 files changed, 0 insertions, 61 deletions
diff --git a/include/libcamera/buffer.h b/include/libcamera/buffer.h
index 0eb84c32..8e5ec699 100644
--- a/include/libcamera/buffer.h
+++ b/include/libcamera/buffer.h
@@ -7,7 +7,6 @@
#ifndef __LIBCAMERA_BUFFER_H__
#define __LIBCAMERA_BUFFER_H__
-#include <array>
#include <stdint.h>
#include <vector>
@@ -16,7 +15,6 @@
namespace libcamera {
class Request;
-class Stream;
struct FrameMetadata {
enum Status {
@@ -71,65 +69,6 @@ private:
unsigned int cookie_;
};
-class BufferMemory final
-{
-public:
- const std::vector<FrameBuffer::Plane> &planes() const { return planes_; }
- std::vector<FrameBuffer::Plane> &planes() { return planes_; }
-
-private:
- std::vector<FrameBuffer::Plane> planes_;
-};
-
-class BufferPool final
-{
-public:
- ~BufferPool();
-
- void createBuffers(unsigned int count);
- void destroyBuffers();
-
- unsigned int count() const { return buffers_.size(); }
- std::vector<BufferMemory> &buffers() { return buffers_; }
-
-private:
- std::vector<BufferMemory> buffers_;
-};
-
-class Buffer final
-{
-public:
- Buffer(unsigned int index = -1, const Buffer *metadata = nullptr);
- Buffer(const Buffer &) = delete;
- Buffer &operator=(const Buffer &) = delete;
-
- unsigned int index() const { return index_; }
- const std::array<int, 3> &dmabufs() const { return dmabuf_; }
- BufferMemory *mem() { return mem_; }
-
- const FrameMetadata &metadata() const { return metadata_; };
-
- Request *request() const { return request_; }
- Stream *stream() const { return stream_; }
-
-private:
- friend class Camera;
- friend class Request;
- friend class Stream;
- friend class V4L2VideoDevice;
-
- void cancel();
-
- unsigned int index_;
- std::array<int, 3> dmabuf_;
- BufferMemory *mem_;
-
- FrameMetadata metadata_;
-
- Request *request_;
- Stream *stream_;
-};
-
} /* namespace libcamera */
#endif /* __LIBCAMERA_BUFFER_H__ */