diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-05-12 15:03:27 +0100 |
---|---|---|
committer | Barnabás Pőcze <pobrn@protonmail.com> | 2025-02-21 16:20:40 +0100 |
commit | 982ecc7f97a53dc02e842309536f90abd6f4f6aa (patch) | |
tree | 2cf17d139b3368bee78d3e76531038781c688141 | |
parent | 8dc4f3d1ad194b0e26a78e871766ede6dc3e1810 (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 6371d7ae..c75791c1 100644 --- a/src/libcamera/pipeline/vivid/vivid.cpp +++ b/src/libcamera/pipeline/vivid/vivid.cpp @@ -389,6 +389,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); } |