[PATCH 1/5] controls: Add FrameWallClock control

Naushir Patuck naush at raspberrypi.com
Thu Dec 12 13:37:03 CET 2024


Hi David,

On Fri, 6 Dec 2024 at 14:27, David Plowman
<david.plowman at raspberrypi.com> wrote:
>
> 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: Naushir Patuck <naush at raspberrypi.com>

> ---
>  src/libcamera/control_ids_core.yaml | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
>
> diff --git a/src/libcamera/control_ids_core.yaml b/src/libcamera/control_ids_core.yaml
> index d45cf8e5..d951b2a3 100644
> --- a/src/libcamera/control_ids_core.yaml
> +++ b/src/libcamera/control_ids_core.yaml
> @@ -971,4 +971,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 Linux-specific CLOCK_REALTIME clock id.
> +
> +        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