summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/framebuffer.cpp9
-rw-r--r--src/libcamera/v4l2_videodevice.cpp1
2 files changed, 10 insertions, 0 deletions
diff --git a/src/libcamera/framebuffer.cpp b/src/libcamera/framebuffer.cpp
index 826848f7..d9d6294b 100644
--- a/src/libcamera/framebuffer.cpp
+++ b/src/libcamera/framebuffer.cpp
@@ -87,6 +87,15 @@ LOG_DEFINE_CATEGORY(Buffer)
*/
/**
+ * \var FrameMetadata::hwSequence
+ * \brief The real hardware Frame sequence number
+ *
+ * \a FrameMetadata::sequence auto-corrects the initial value to zero on frame
+ * start. This value keeps the original hardware sequence to allow users to
+ * query processing information of particular frames.
+ */
+
+/**
* \var FrameMetadata::timestamp
* \brief Time when the frame was captured
*
diff --git a/src/libcamera/v4l2_videodevice.cpp b/src/libcamera/v4l2_videodevice.cpp
index 14eba056..9bc677ed 100644
--- a/src/libcamera/v4l2_videodevice.cpp
+++ b/src/libcamera/v4l2_videodevice.cpp
@@ -1862,6 +1862,7 @@ FrameBuffer *V4L2VideoDevice::dequeueBuffer()
? FrameMetadata::FrameError
: FrameMetadata::FrameSuccess;
metadata.sequence = buf.sequence;
+ metadata.hwSequence = buf.sequence;
metadata.timestamp = buf.timestamp.tv_sec * 1000000000ULL
+ buf.timestamp.tv_usec * 1000ULL;