From patchwork Wed Dec 18 18:03:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 22399 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id E8DF5C3301 for ; Wed, 18 Dec 2024 18:03:20 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 9AFC668457; Wed, 18 Dec 2024 19:03:20 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="MK+m6+7z"; dkim-atps=neutral Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 1F7B3680B6 for ; Wed, 18 Dec 2024 19:03:17 +0100 (CET) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-43618283d48so49304825e9.1 for ; Wed, 18 Dec 2024 10:03:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1734544996; x=1735149796; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MJxK/bYe/NGW7I0pZiRtUEp8+1iDVycrVP02cMFKu1Q=; b=MK+m6+7zFYEvphKWCdlOKmR/YriAxhJewL6Dx21gyVX3bixTsuDd8q9xL3eELv+/LK OBwPwnzBqb+fQqZvq5/pN3lUmWHhDh7G4IXGw0pdABE5CIceIU0ioZw4WXpE+PD1ZIEz 3xKFquqrbRaxHVNNfZFL9iuIbZ+UG7ONX7Mr8s9dp2/PcNewXr4GU9neVlF+1cgMwM9K zszzCJ3vmNe6gAj1J4D3Ao1nhDx2RGPB6FedfjC4KeHc3b0SdlsKO7xnLqZKWyedKiRk qojTm/IuczRS/POt+5t3ZzztTHRSn0/qXi3T2OQ+iUr1OjnWmCNfeRlIjPBGYoIFNSJz VHtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734544996; x=1735149796; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MJxK/bYe/NGW7I0pZiRtUEp8+1iDVycrVP02cMFKu1Q=; b=QvPoSQZ1TT4Brwd5TlTjLV5M8rWm7srsyold5X8TLRI33yyATES0QflagKpKdrBsOe RLNBBrEHwDQYftAXn9gmUYel4Ue5CITgARQbSUw1HUn1g85MjB+RsOSCx8y8xNai6dV8 3KYnHYiR1vzRiWqXcAn+a6UhI38hnZQjjEgCWcDMKeQBAepDPwL7M/3WUj8hnS5nMjOs qwjJpZYaOMYHrLXvtslRRzvBRzwNkNTnDetpmIMniP7BwRs9anPEg8kQtk0N4oiMwcmM HeMDaU1AJyOVnpg7ye5OUJi7xqA8fhtAktkrh9Ic3cZDxOCJC4vzUlDq1D0MEzV1eh66 /2DQ== X-Gm-Message-State: AOJu0YyEMY1e54E6ysGQUxzkL3LgPAxNmB0Sycfq64SF2mKxZApiB/Yi yYaQF4JCuXtUCfV/xAabgRiuWrPB2pcv8iWcQce1JMUKOdADDig9DcvdYRmkFRSQaFM7jvBTuqh z X-Gm-Gg: ASbGnctZM7F7Dr0sEiOYi/WWr4LWTwNO2VVW6ay1EEvRJbi6/ZQ3yxVnCJBKf1ql5p5 HKUEUAd9OoVBNVmKOvFCI5CeWHC6V6+F76Vagukzf6wBBpGyOTBoVt7gTut6E+XaLKDW0mv1Tx7 /TRqJdgh6KhM2JObf9ANRl+G7lJiMu4iX19vy/BVkkdvx42Ko/65Hv/H34HKAZ8iDLWKfX2k4iC vGVR4T8rxLPn8ZuXukL8Z0TVcUAFX2krk50FosPykHxygewbevdMQd+hJE/K+dvA+Zwy13q4gLs jml/JCismxL9 X-Google-Smtp-Source: AGHT+IGbJf7SVMJ0gji+EXBevVf0v7oTanxvjySagrNgvUwbEUvLcc3XYdzn6iBuSZmdIxfqmT741w== X-Received: by 2002:a05:600c:1d1f:b0:434:f131:1e64 with SMTP id 5b1f17b1804b1-4365535de80mr35777565e9.9.1734544995927; Wed, 18 Dec 2024 10:03:15 -0800 (PST) Received: from raspberrypi.pitowers.org ([2a00:1098:3142:1f:c68a:6be1:5ba3:eddd]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43656b01c88sm27927285e9.17.2024.12.18.10.03.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2024 10:03:14 -0800 (PST) From: David Plowman To: libcamera-devel@lists.libcamera.org Cc: David Plowman , Kieran Bingham , Naushir Patuck , Laurent Pinchart Subject: [PATCH v2 1/3] controls: Add FrameWallClock control Date: Wed, 18 Dec 2024 18:03:08 +0000 Message-Id: <20241218180310.7824-2-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241218180310.7824-1-david.plowman@raspberrypi.com> References: <20241218180310.7824-1-david.plowman@raspberrypi.com> MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add a FrameWallClock control that reports the same moment as the frame's SensorTimestamp, but in wallclock units. Signed-off-by: David Plowman Reviewed-by: Kieran Bingham Reviewed-by: Naushir Patuck Reviewed-by: Laurent Pinchart --- 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. + ...