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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libcamera/buffer.h b/include/libcamera/buffer.h
index 0c844d12..8f9b42e3 100644
--- a/include/libcamera/buffer.h
+++ b/include/libcamera/buffer.h
@@ -13,6 +13,7 @@
namespace libcamera {
class BufferPool;
+class Request;
class Plane final
{
@@ -52,14 +53,18 @@ public:
unsigned int sequence() const { return sequence_; }
Status status() const { return status_; }
std::vector<Plane> &planes() { return planes_; }
+ Request *request() const { return request_; }
private:
friend class BufferPool;
friend class PipelineHandler;
+ friend class Request;
friend class V4L2Device;
void cancel();
+ void setRequest(Request *request) { request_ = request; }
+
unsigned int index_;
unsigned int bytesused_;
uint64_t timestamp_;
@@ -67,6 +72,7 @@ private:
Status status_;
std::vector<Plane> planes_;
+ Request *request_;
};
class BufferPool final