summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/buffer.h3
-rw-r--r--include/libcamera/stream.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/include/libcamera/buffer.h b/include/libcamera/buffer.h
index f5ba6207..f8569a6b 100644
--- a/include/libcamera/buffer.h
+++ b/include/libcamera/buffer.h
@@ -7,6 +7,7 @@
#ifndef __LIBCAMERA_BUFFER_H__
#define __LIBCAMERA_BUFFER_H__
+#include <array>
#include <stdint.h>
#include <vector>
@@ -75,6 +76,7 @@ public:
Buffer &operator=(const Buffer &) = delete;
unsigned int index() const { return index_; }
+ const std::array<int, 3> &dmabufs() const { return dmabuf_; }
unsigned int bytesused() const { return bytesused_; }
uint64_t timestamp() const { return timestamp_; }
@@ -95,6 +97,7 @@ private:
void setRequest(Request *request) { request_ = request; }
unsigned int index_;
+ std::array<int, 3> dmabuf_;
unsigned int bytesused_;
uint64_t timestamp_;
diff --git a/include/libcamera/stream.h b/include/libcamera/stream.h
index 08eb8cc7..1883d9e9 100644
--- a/include/libcamera/stream.h
+++ b/include/libcamera/stream.h
@@ -75,6 +75,7 @@ public:
Stream();
std::unique_ptr<Buffer> createBuffer(unsigned int index);
+ std::unique_ptr<Buffer> createBuffer(const std::array<int, 3> &fds);
BufferPool &bufferPool() { return bufferPool_; }
std::vector<BufferMemory> &buffers() { return bufferPool_.buffers(); }