diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-05-12 15:03:27 +0100 |
---|---|---|
committer | Barnabás Pőcze <barnabas.pocze@ideasonboard.com> | 2025-05-05 09:44:19 +0200 |
commit | 1a7928d52d77f615a8ac8fbdde719bfdabc2d26b (patch) | |
tree | 6f0f3e3ee4cb2e1ba05f1391bdd1daa39280bebf | |
parent | 127d424ceec19ee39fa45c257d1afa18d8980fcd (diff) |
libcamera: pipeline: vivid: Set request timestamppobrn/rebase
Provide the request SensorTimestamp as the buffer completion time. This
is fake, as there is no SensorTimestamp on the VIVID pipeline as it's a
virtual video device, but it provides a suitable data point.
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r-- | src/libcamera/pipeline/vivid/vivid.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcamera/pipeline/vivid/vivid.cpp b/src/libcamera/pipeline/vivid/vivid.cpp index 8baa7b94..a56dcffd 100644 --- a/src/libcamera/pipeline/vivid/vivid.cpp +++ b/src/libcamera/pipeline/vivid/vivid.cpp @@ -388,6 +388,10 @@ void VividCameraData::bufferReady(FrameBuffer *buffer) { Request *request = buffer->request(); + /* Record the sensor's timestamp in the request metadata. */ + request->metadata().set(controls::SensorTimestamp, + buffer->metadata().timestamp); + pipe()->completeBuffer(request, buffer); pipe()->completeRequest(request); } |