summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libcamera/pipeline/raspberrypi/raspberrypi.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
index 91f44f68..b2256493 100644
--- a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
+++ b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
@@ -1410,6 +1410,18 @@ void RPiCameraData::unicamBufferDequeue(FrameBuffer *buffer)
if (stream == &unicam_[Unicam::Image]) {
/*
+ * Record the sensor timestamp in the Request.
+ *
+ * \todo Do not assume the request in the front of the queue
+ * is the correct one
+ */
+ Request *request = requestQueue_.front();
+ ASSERT(request);
+
+ request->metadata().set(controls::SensorTimestamp,
+ buffer->metadata().timestamp);
+
+ /*
* Lookup the sensor controls used for this frame sequence from
* DelayedControl and queue them along with the frame buffer.
*/