From patchwork Thu Jun 19 10:05:53 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 23602 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 A8D07C3237 for ; Thu, 19 Jun 2025 10:09:08 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 786BC68DEC; Thu, 19 Jun 2025 12:09:04 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="ik8LmVIL"; dkim-atps=neutral Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 5E66E68DC6 for ; Thu, 19 Jun 2025 12:09:02 +0200 (CEST) Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-3a577f164c8so107972f8f.2 for ; Thu, 19 Jun 2025 03:09:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1750327742; x=1750932542; 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=yu9r/67Lvp8keDcehgTMXQn4KOvwJQfKdTVVKeCET/8=; b=ik8LmVIL625xCWe3NiMMfHxsdTncq+RfrCFEU2+3R/72Uc2tKZ/2gREM/qK9ez+WMi T6r80wXJdMcWOLWHFiNLN8KMN0cpn8OadmMw7ARSTgQt54U6PlXkqu379RiQtATKPhDV rmHirhMekhfXvqkKC1IjPAzR1kLZuX49bDIgQSjXNAIhGyM2LwsoBij9L/irEF8fWigt OJ2rIDNSVsGpv5EpztqrASiUBcnFOirFB5xxTDS3Jo21VdAxM3Iqa0zicJ0kWpmCRn2S gznOl+RKK//by2IWe/FeLHAuv5AMSL1lXhAtY6t6t+3laEBeUXGFME3vz1mSSuQMxytx TibA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750327742; x=1750932542; 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=yu9r/67Lvp8keDcehgTMXQn4KOvwJQfKdTVVKeCET/8=; b=APp6y6frADTX/Ks/X6Sk8SLNq2BX2nMBkRLDZmN+V3nBTBEYKffLyaKHlNVGkeL5lw VCfPLfI7dt4JPkjEiyRawJ5gxzska2XbkakYg3WqoLGDdvFARYPeASm2fjv2htPYfXw+ O+WHaArZ4MeXf40bqShTrNEpQGtoOwAubvKSROMfwzGJvk7PSu/ot0sohS+NkmsGF75V glGKwvCW3+Ud8jrFChW4voCyX0quAa4R0W5awoIUjtTzQdtKXiDI8XaEIfQMAI5DjdHA kdBYQhD/6W4OYiVuEyf9Myq0ue8myyiGUVoqhpLG+mAA/m8nADcxM5VAlHYNsFLT7EpT 75KA== X-Gm-Message-State: AOJu0Yw8jLiCI8LywY38ys5bFoiNXcmc+nL8LoJQPzpHaaakKC22cJhg g/8QTnIF1MHPwSbTmPRQy7hVTKVsNfJv6yd6BXltaomJQZVehsa9dsQCSDGISkgV/u4ufY8BHHu XfEuQ X-Gm-Gg: ASbGnct6+kbWEslPMI3ztSgfs9pbN+6KkNB18WpjBjwYKZXNzm5aR329DeP7v5fLeOI Ohq7W9zGgO/e3OumMLMYuXTx3dWoRWpqi5aedTHpFi6ZecmOVMpHAF0xJiYIsB8FKOi75Yyk+yL 93i9lcQUdwj6fakoL2j6e+p5/zmO4MdnOeAhDUSvRA4BSO0N/n5hC/1cAXFETRSfty1fFbXDmui jly2I64rXNd4rKh/CY6zDobf7lwAe3lxzyWPJXkD5v2Mt1EEJNMJW3HYj3ZuNcbe4Y6fHh0LTWW 4DL/4SHcb0bq4H4ma+wmhKnZ7HxcXl2x0A5+CJaT+ujAy59nMguSOC5lZxcyWbbmWUcEFl3LkR+ HGNiK7g== X-Google-Smtp-Source: AGHT+IEoX/KjeRaXExa/3w7gA+EpGErMs+VzpzTLQtmc9m9rAVASeGnTn9sqFZWTMzEvm/Pl+fSyCQ== X-Received: by 2002:a05:600c:8b5b:b0:439:8c80:6aee with SMTP id 5b1f17b1804b1-45352401529mr37962045e9.4.1750327741498; Thu, 19 Jun 2025 03:09:01 -0700 (PDT) Received: from NAUSH-P-DELL.pitowers.org ([93.93.133.154]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4535ebcecb5sm23926555e9.37.2025.06.19.03.09.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jun 2025 03:09:01 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Cc: kieran.bingham@ideasonboard.com, David Plowman , Naushir Patuck , Laurent Pinchart Subject: [PATCH 1/4] controls: Add FrameWallClock control Date: Thu, 19 Jun 2025 11:05:53 +0100 Message-ID: <20250619100857.124809-2-naush@raspberrypi.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250619100857.124809-1-naush@raspberrypi.com> References: <20250619100857.124809-1-naush@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" From: David Plowman 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 Signed-off-by: Naushir Patuck --- src/libcamera/control_ids_core.yaml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/libcamera/control_ids_core.yaml b/src/libcamera/control_ids_core.yaml index aa7448645880..028919ef3d3e 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 --- @@ -1268,4 +1266,19 @@ controls: description: | Enable or disable the debug metadata. + - FrameWallClock: + type: int64_t + direction: out + 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. + ...