pipeline: imx8-isi: Set SensorTimestamp metadata
Report the sensor timestamp in metadata. Use the timestamp from the first buffer. Accuracy could be improved by using the frame start event from the CSI-2 receiver, but the kernel driver doesn't support it yet. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
f8e998a4c1
commit
47c53f8084
1 changed files with 6 additions and 0 deletions
|
@ -994,6 +994,12 @@ void PipelineHandlerISI::bufferReady(FrameBuffer *buffer)
|
|||
{
|
||||
Request *request = buffer->request();
|
||||
|
||||
/* Record the sensor's timestamp in the request metadata. */
|
||||
ControlList &metadata = request->metadata();
|
||||
if (!metadata.contains(controls::SensorTimestamp.id()))
|
||||
metadata.set(controls::SensorTimestamp,
|
||||
buffer->metadata().timestamp);
|
||||
|
||||
completeBuffer(request, buffer);
|
||||
if (request->hasPendingBuffers())
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue