{"id":23602,"url":"https://patchwork.libcamera.org/api/patches/23602/?format=json","web_url":"https://patchwork.libcamera.org/patch/23602/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20250619100857.124809-2-naush@raspberrypi.com>","date":"2025-06-19T10:05:53","name":"[1/4] controls: Add FrameWallClock control","commit_ref":"6a09deaf7d4a402051ee86ddc83d5af18e92eec9","pull_url":null,"state":"accepted","archived":false,"hash":"7412c3ac4bb8c4a777023ce6586889a91e437d41","submitter":{"id":34,"url":"https://patchwork.libcamera.org/api/people/34/?format=json","name":"Naushir Patuck","email":"naush@raspberrypi.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/23602/mbox/","series":[{"id":5232,"url":"https://patchwork.libcamera.org/api/series/5232/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=5232","date":"2025-06-19T10:05:52","name":"Wallclock support","version":1,"mbox":"https://patchwork.libcamera.org/series/5232/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/23602/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/23602/checks/","tags":{},"headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id A8D07C3237\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 19 Jun 2025 10:09:08 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 786BC68DEC;\n\tThu, 19 Jun 2025 12:09:04 +0200 (CEST)","from mail-wr1-x433.google.com (mail-wr1-x433.google.com\n\t[IPv6:2a00:1450:4864:20::433])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 5E66E68DC6\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 19 Jun 2025 12:09:02 +0200 (CEST)","by mail-wr1-x433.google.com with SMTP id\n\tffacd0b85a97d-3a577f164c8so107972f8f.2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 19 Jun 2025 03:09:02 -0700 (PDT)","from NAUSH-P-DELL.pitowers.org ([93.93.133.154])\n\tby smtp.gmail.com with ESMTPSA id\n\t5b1f17b1804b1-4535ebcecb5sm23926555e9.37.2025.06.19.03.09.00\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 19 Jun 2025 03:09:01 -0700 (PDT)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (2048-bit key;\n\tunprotected) header.d=raspberrypi.com header.i=@raspberrypi.com\n\theader.b=\"ik8LmVIL\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google; t=1750327742; x=1750932542;\n\tdarn=lists.libcamera.org; \n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:from:to:cc:subject:date\n\t:message-id:reply-to;\n\tbh=yu9r/67Lvp8keDcehgTMXQn4KOvwJQfKdTVVKeCET/8=;\n\tb=ik8LmVIL625xCWe3NiMMfHxsdTncq+RfrCFEU2+3R/72Uc2tKZ/2gREM/qK9ez+WMi\n\tT6r80wXJdMcWOLWHFiNLN8KMN0cpn8OadmMw7ARSTgQt54U6PlXkqu379RiQtATKPhDV\n\trmHirhMekhfXvqkKC1IjPAzR1kLZuX49bDIgQSjXNAIhGyM2LwsoBij9L/irEF8fWigt\n\tOJ2rIDNSVsGpv5EpztqrASiUBcnFOirFB5xxTDS3Jo21VdAxM3Iqa0zicJ0kWpmCRn2S\n\tgznOl+RKK//by2IWe/FeLHAuv5AMSL1lXhAtY6t6t+3laEBeUXGFME3vz1mSSuQMxytx\n\tTibA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1750327742; x=1750932542;\n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n\t:subject:date:message-id:reply-to;\n\tbh=yu9r/67Lvp8keDcehgTMXQn4KOvwJQfKdTVVKeCET/8=;\n\tb=APp6y6frADTX/Ks/X6Sk8SLNq2BX2nMBkRLDZmN+V3nBTBEYKffLyaKHlNVGkeL5lw\n\tVCfPLfI7dt4JPkjEiyRawJ5gxzska2XbkakYg3WqoLGDdvFARYPeASm2fjv2htPYfXw+\n\tO+WHaArZ4MeXf40bqShTrNEpQGtoOwAubvKSROMfwzGJvk7PSu/ot0sohS+NkmsGF75V\n\tglGKwvCW3+Ud8jrFChW4voCyX0quAa4R0W5awoIUjtTzQdtKXiDI8XaEIfQMAI5DjdHA\n\tkdBYQhD/6W4OYiVuEyf9Myq0ue8myyiGUVoqhpLG+mAA/m8nADcxM5VAlHYNsFLT7EpT\n\t75KA==","X-Gm-Message-State":"AOJu0Yw8jLiCI8LywY38ys5bFoiNXcmc+nL8LoJQPzpHaaakKC22cJhg\n\tg/8QTnIF1MHPwSbTmPRQy7hVTKVsNfJv6yd6BXltaomJQZVehsa9dsQCSDGISkgV/u4ufY8BHHu\n\tXfEuQ","X-Gm-Gg":"ASbGnct6+kbWEslPMI3ztSgfs9pbN+6KkNB18WpjBjwYKZXNzm5aR329DeP7v5fLeOI\n\tOhq7W9zGgO/e3OumMLMYuXTx3dWoRWpqi5aedTHpFi6ZecmOVMpHAF0xJiYIsB8FKOi75Yyk+yL\n\t93i9lcQUdwj6fakoL2j6e+p5/zmO4MdnOeAhDUSvRA4BSO0N/n5hC/1cAXFETRSfty1fFbXDmui\n\tjly2I64rXNd4rKh/CY6zDobf7lwAe3lxzyWPJXkD5v2Mt1EEJNMJW3HYj3ZuNcbe4Y6fHh0LTWW\n\t4DL/4SHcb0bq4H4ma+wmhKnZ7HxcXl2x0A5+CJaT+ujAy59nMguSOC5lZxcyWbbmWUcEFl3LkR+\n\tHGNiK7g==","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\n\t5b1f17b1804b1-45352401529mr37962045e9.4.1750327741498; \n\tThu, 19 Jun 2025 03:09:01 -0700 (PDT)","From":"Naushir Patuck <naush@raspberrypi.com>","To":"libcamera-devel@lists.libcamera.org","Cc":"kieran.bingham@ideasonboard.com,\n\tDavid Plowman <david.plowman@raspberrypi.com>,\n\tNaushir Patuck <naush@raspberrypi.com>,\n\tLaurent Pinchart <laurent.pinchart@ideasonboard.com>","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","Content-Transfer-Encoding":"8bit","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"From: David Plowman <david.plowman@raspberrypi.com>\n\nAdd a FrameWallClock control that reports the same moment as the\nframe's SensorTimestamp, but in wallclock units.\n\nSigned-off-by: David Plowman <david.plowman@raspberrypi.com>\nReviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\nReviewed-by: Naushir Patuck <naush@raspberrypi.com>\nReviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\nSigned-off-by: Naushir Patuck <naush@raspberrypi.com>\n---\n src/libcamera/control_ids_core.yaml | 19 ++++++++++++++++---\n 1 file changed, 16 insertions(+), 3 deletions(-)","diff":"diff --git a/src/libcamera/control_ids_core.yaml b/src/libcamera/control_ids_core.yaml\nindex aa7448645880..028919ef3d3e 100644\n--- a/src/libcamera/control_ids_core.yaml\n+++ b/src/libcamera/control_ids_core.yaml\n@@ -1,6 +1,4 @@\n-# SPDX-License-Identifier: LGPL-2.1-or-later\n-#\n-# Copyright (C) 2019, Google Inc.\n+\n #\n %YAML 1.1\n ---\n@@ -1268,4 +1266,19 @@ controls:\n       description: |\n         Enable or disable the debug metadata.\n \n+  - FrameWallClock:\n+      type: int64_t\n+      direction: out\n+      description: |\n+        This timestamp corresponds to the same moment in time as the\n+        SensorTimestamp, but is represented as a wall clock time as measured by\n+        the CLOCK_REALTIME clock.\n+\n+        Being a wall clock measurement, it can be used to synchronise timing\n+        across different devices.\n+\n+        \\sa SensorTimestamp\n+\n+        The FrameWallClock control can only be returned in metadata.\n+\n ...\n","prefixes":["1/4"]}