[PATCH v2 1/3] controls: Add FrameWallClock control
David Plowman
david.plowman at raspberrypi.com
Wed Dec 18 19:03:08 CET 2024
Add a FrameWallClock control that reports the same moment as the
frame's SensorTimestamp, but in wallclock units.
Signed-off-by: David Plowman <david.plowman at raspberrypi.com>
Reviewed-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
Reviewed-by: Naushir Patuck <naush at raspberrypi.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
src/libcamera/control_ids_core.yaml | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/src/libcamera/control_ids_core.yaml b/src/libcamera/control_ids_core.yaml
index 073e0611..8485f7e8 100644
--- a/src/libcamera/control_ids_core.yaml
+++ b/src/libcamera/control_ids_core.yaml
@@ -1,6 +1,4 @@
-# SPDX-License-Identifier: LGPL-2.1-or-later
-#
-# Copyright (C) 2019, Google Inc.
+
#
%YAML 1.1
---
@@ -1015,4 +1013,18 @@ controls:
description: |
Enable or disable the debug metadata.
+ - FrameWallClock:
+ type: int64_t
+ description: |
+ This timestamp corresponds to the same moment in time as the
+ SensorTimestamp, but is represented as a wall clock time as measured by
+ the CLOCK_REALTIME clock.
+
+ Being a wall clock measurement, it can be used to synchronise timing
+ across different devices.
+
+ \sa SensorTimestamp
+
+ The FrameWallClock control can only be returned in metadata.
+
...
--
2.39.5
More information about the libcamera-devel
mailing list