[libcamera-devel] [PATCH 0/3] libcamera: Add sensor timestamp support

Jacopo Mondi jacopo at jmondi.org
Wed Apr 7 18:06:41 CEST 2021


Hello,
   we have an issue with reporting sensor timestamps correctly to android.

We currently use one of the buffers timestamps, which fails some CTS tests that
verify that the reported SENSOR_TIMESTAMP is in the frame duration range
reported as static metadata
Ie. android.hardware.camera2.cts.CaptureRequestTest#testNoiseReductionModeControl
when run in FULL mode.

This series de-stages the SensorTimestamp control we had defined as draft
control and populates it in the IPU3 pipeline handler with the timestamp
of the CIO2 raw buffer. It then reports it to Android.

Paul: I didn't manage to reproduce the error on you in-development CTS patches
so I can't say this series fixes the test. But I've manually collected the
reported duration and run them through a little script and verified they all
fall in the expected range. Could you test your failing test with this series
on top ?

Thanks
  j

Jacopo Mondi (3):
  libcamera: controls: Destage 'SensorTimestamp'
  libcamera: ipu3: Report sensor timestamp
  android: camera_device: Use controls::SensorTimestamp

 src/android/camera_device.cpp        | 33 +++++++++++++++++-----------
 src/android/camera_device.h          |  3 +--
 src/libcamera/control_ids.yaml       | 21 ++++++++++++------
 src/libcamera/pipeline/ipu3/ipu3.cpp |  9 ++++++++
 4 files changed, 44 insertions(+), 22 deletions(-)

--
2.31.1



More information about the libcamera-devel mailing list