summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYudhistira Erlandinata <yerlandinata@chromium.org>2024-10-16 13:17:28 +0000
committerJacopo Mondi <jacopo.mondi@ideasonboard.com>2024-10-30 15:48:19 +0100
commitd66f54ca157b5226398f54e1bb04554fc38715f7 (patch)
tree02dae22936deb51fed70ea3c6a69dfbbeee61547 /include
parentb2b35994d37c4427d310a3d29c02cece20b97a77 (diff)
libcamera: reserve frame sequence reported from the hardware
Originally libcamera resets the sequence to 0 on streamOn. However, However, there are occasions when the user needs the original hardware sequence to query processing information of the particular frame. The patch reserves the hwSequence in the FrameMetadata. Signed-off-by: Yudhistira Erlandinata <yerlandinata@chromium.org> Co-developed-by: Harvey Yang <chenghaoyang@chromium.org> Signed-off-by: Harvey Yang <chenghaoyang@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/framebuffer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libcamera/framebuffer.h b/include/libcamera/framebuffer.h
index ff839243..fccfaa82 100644
--- a/include/libcamera/framebuffer.h
+++ b/include/libcamera/framebuffer.h
@@ -34,6 +34,7 @@ struct FrameMetadata {
Status status;
unsigned int sequence;
+ unsigned int hwSequence;
uint64_t timestamp;
Span<Plane> planes() { return planes_; }