summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/internal/pipeline_handler.h4
-rw-r--r--include/libcamera/request.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/include/libcamera/internal/pipeline_handler.h b/include/libcamera/internal/pipeline_handler.h
index 6aca0b46..9bdda8f3 100644
--- a/include/libcamera/internal/pipeline_handler.h
+++ b/include/libcamera/internal/pipeline_handler.h
@@ -38,7 +38,7 @@ class CameraData
{
public:
explicit CameraData(PipelineHandler *pipe)
- : pipe_(pipe)
+ : pipe_(pipe), requestSequence_(0)
{
}
virtual ~CameraData() = default;
@@ -48,6 +48,8 @@ public:
ControlInfoMap controlInfo_;
ControlList properties_;
+ uint32_t requestSequence_;
+
private:
LIBCAMERA_DISABLE_COPY(CameraData)
};
diff --git a/include/libcamera/request.h b/include/libcamera/request.h
index 6e5aad5f..cd5a2474 100644
--- a/include/libcamera/request.h
+++ b/include/libcamera/request.h
@@ -50,6 +50,7 @@ public:
int addBuffer(const Stream *stream, FrameBuffer *buffer);
FrameBuffer *findBuffer(const Stream *stream) const;
+ uint32_t sequence() const { return sequence_; }
uint64_t cookie() const { return cookie_; }
Status status() const { return status_; }
@@ -71,6 +72,7 @@ private:
BufferMap bufferMap_;
std::unordered_set<FrameBuffer *> pending_;
+ uint32_t sequence_;
const uint64_t cookie_;
Status status_;
bool cancelled_;