libcamera: Add ClockRecovery class to generate wallclock timestamps

The ClockRecovery class takes pairs of timestamps from two different
clocks, and models the second ("output") clock from the first ("input")
clock.

We can use it, in particular, to get a good wallclock estimate for a
frame's SensorTimestamp.

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
David Plowman
2025-06-19 11:05:54 +01:00
committed by Kieran Bingham
parent 6a09deaf7d
commit 2a4e347dfe
4 changed files with 300 additions and 0 deletions
+1
View File
@@ -21,6 +21,7 @@ libcamera_internal_sources = files([
'byte_stream_buffer.cpp',
'camera_controls.cpp',
'camera_lens.cpp',
'clock_recovery.cpp',
'control_serializer.cpp',
'control_validator.cpp',
'converter.cpp',