diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-05-12 15:03:27 +0100 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-08-12 08:07:25 +0100 |
commit | 024d4be63f293163934b7a68b9949d43a1172789 (patch) | |
tree | 4effe34641fa522c8af4b123c3a9000e3abc70fd | |
parent | 57e7fa9d2b9aebe85e44ddf57f121785626caef3 (diff) |
libcamera: pipeline: vivid: Set request timestampvivid-pre-0e1ff86e78ae
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 215fefe8..bdb8693d 100644 --- a/src/libcamera/pipeline/vivid/vivid.cpp +++ b/src/libcamera/pipeline/vivid/vivid.cpp @@ -395,6 +395,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); } |