{"id":24101,"url":"https://patchwork.libcamera.org/api/1.1/patches/24101/?format=json","web_url":"https://patchwork.libcamera.org/patch/24101/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/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":"<20250814072816.35592-1-david.plowman@raspberrypi.com>","date":"2025-08-14T07:28:16","name":"ipa: rpi: sync: Convert wallclock from nanoseconds to microseconds","commit_ref":null,"pull_url":null,"state":"not-applicable","archived":false,"hash":"3b2c6cbe7fe205e4481e3fc90da557d574c20b50","submitter":{"id":42,"url":"https://patchwork.libcamera.org/api/1.1/people/42/?format=json","name":"David Plowman","email":"david.plowman@raspberrypi.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/24101/mbox/","series":[{"id":5373,"url":"https://patchwork.libcamera.org/api/1.1/series/5373/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=5373","date":"2025-08-14T07:28:16","name":"ipa: rpi: sync: Convert wallclock from nanoseconds to microseconds","version":1,"mbox":"https://patchwork.libcamera.org/series/5373/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/24101/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/24101/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 ABA28BDCC1\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 14 Aug 2025 07:28:24 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 82AD569251;\n\tThu, 14 Aug 2025 09:28:23 +0200 (CEST)","from mail-wm1-x336.google.com (mail-wm1-x336.google.com\n\t[IPv6:2a00:1450:4864:20::336])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id CC75361436\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 14 Aug 2025 09:28:21 +0200 (CEST)","by mail-wm1-x336.google.com with SMTP id\n\t5b1f17b1804b1-45a1b04f8b5so2893425e9.1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 14 Aug 2025 00:28:21 -0700 (PDT)","from raspberrypi.pitowers.org\n\t([2a00:1098:3142:1f:ffc9:aff6:7f7f:893b])\n\tby smtp.gmail.com with ESMTPSA id\n\tffacd0b85a97d-3b79c469319sm48978451f8f.54.2025.08.14.00.28.18\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 14 Aug 2025 00:28:19 -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=\"bMqb2cXz\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google; t=1755156501; x=1755761301;\n\tdarn=lists.libcamera.org; \n\th=content-transfer-encoding:mime-version:message-id:date:subject:cc\n\t:to:from:from:to:cc:subject:date:message-id:reply-to;\n\tbh=ItssY86DDWmFeFbp1iF9VNbn4frD85qVGMlXukdCnfE=;\n\tb=bMqb2cXzYb9Zp8LkJ2LnqxhcOpUHUX6Hzb34DLWcSnnmYr8AfizXd6CnmiCWAQb5cP\n\tS+4NtSfvAbmRWIRhSOSxn0OrM7aPQAYXxlQt/p/NTFeGydjD1KQci0tEPLAdFmbboVSi\n\tH652Dh0q/SIK4jmN8AJD01QYjaLxrs6qV03tnAzc54K73rzvv7eqK7173rRrydPvb8aI\n\t8FZ2IyR1Q5DKzGgavmE7xcmTrSvzCfIQUIUTw1+6rY491kb2URz+MtghIZ8T9+3fkh+l\n\tObYqBNSm0GsmptnMwGoVSjFJhsy1GVbANwKXLYcnGm1wc1KwtdljGJlMOfeUXb+rpq9b\n\tiLYQ==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1755156501; x=1755761301;\n\th=content-transfer-encoding:mime-version:message-id:date:subject:cc\n\t:to:from:x-gm-message-state:from:to:cc:subject:date:message-id\n\t:reply-to;\n\tbh=ItssY86DDWmFeFbp1iF9VNbn4frD85qVGMlXukdCnfE=;\n\tb=naMTkzXJDr7QIYMiYWT2scMEBWpHu/QuMO3hG11u/GETVNWMjGhVs9IVHJU8rICFtQ\n\tG+6bd2DZgtzBzyuPi28ezR1R4KNaqhfERrbnAbT7ZJWK5k7WrfOThPaiqFocKYC6k7lA\n\tG1CaX8wpVzIRf6/Q5TankSVbCvWtzNpmGX+/r3DkOKV+Q/tp5kPg38+bdEuNuNri/xki\n\tJ8XdFfZD3LP/X/BwrAh//Cuxc+5mkEs4ah2BE2mkwLSq95UrhviDmW7ZymwzcHvVcSUd\n\tBIeqexZXUJ4jpwqU8Q2GzO/SjClSrcwEci+spuYoNw3bQIJJq6R79Me4Eqx3vzv+2Tlw\n\t/4cA==","X-Gm-Message-State":"AOJu0YzyHikmtotMsPgw0QEU/ed712xUwtTHGx7mwDfZ099oOHz2N21G\n\t5dFDv1bCkFtGTjN439QdILc+f+UD6HQK6yeMTs6RfTRD1x+JLw7NYRHxB81LEksMhee3vn/vrFJ\n\tKurbn67g=","X-Gm-Gg":"ASbGncuspeZMQJM9Kb9OQefsjH3UuQDP9dK/wBPubPSEN4F6F7e9zstbUHl2VEpG56a\n\tTzJIfaStmRzDjL37FYiwOKtJY6BDPN7w6DBtYtDsHb1Bqn0CXUk19NguQjQIX++arM97Ho3SanY\n\t6nK+HBJoUxUehtUG9y2Bot4sxAA+GY+uf09B0P8TsLM019ileeFOaWuUD+7qcc7so05GTQ2PKvN\n\t9MsEdFFQWhB+k21EskLhrnSLc/Z7w3sooN9fMViY39KHn1bsDfdpV9iQxoGBF+Evfz0VEhTpSH/\n\tNfxOrcMF2/Rah7w+XAS4cLveBdontoW2qMz0XJRkBlv0Q2nwpUmzVgfZF6vHXUw9sU017Slu2EL\n\t1PpHdiH3yZvlddkNpXFoH8zjeXO/2LB+/M9WxpA/wCLOXDzK8V+++xHTx0Czncuc2","X-Google-Smtp-Source":"AGHT+IEDFHLOKyDbloxdS/dg87iSLyNzX1O/sqefxRLCYjMpfNkSYtxEusiVS+CPyoGAwyislmgJvg==","X-Received":"by 2002:a05:600c:3509:b0:456:19b2:6aa8 with SMTP id\n\t5b1f17b1804b1-45a1b6499e9mr11352585e9.19.1755156500748; \n\tThu, 14 Aug 2025 00:28:20 -0700 (PDT)","From":"David Plowman <david.plowman@raspberrypi.com>","To":"libcamera-devel@lists.libcamera.org","Cc":"David Plowman <david.plowman@raspberrypi.com>","Subject":"[PATCH] ipa: rpi: sync: Convert wallclock from nanoseconds to\n\tmicroseconds","Date":"Thu, 14 Aug 2025 08:28:16 +0100","Message-Id":"<20250814072816.35592-1-david.plowman@raspberrypi.com>","X-Mailer":"git-send-email 2.39.5","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":"The wallclock timestamp has been changed to nanosecond units, and all\nthe calculations here assume it's in microseconds, so add the\nnecessary conversion.\n\nFixes: 29a88d85b730 (\"libcamera: controls: Use nanoseconds units for FrameWallClock\")\nSigned-off-by: David Plowman <david.plowman@raspberrypi.com>\n---\n src/ipa/rpi/controller/rpi/sync.cpp | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)","diff":"diff --git a/src/ipa/rpi/controller/rpi/sync.cpp b/src/ipa/rpi/controller/rpi/sync.cpp\nindex 39bf5de7..5f9c3c22 100644\n--- a/src/ipa/rpi/controller/rpi/sync.cpp\n+++ b/src/ipa/rpi/controller/rpi/sync.cpp\n@@ -163,8 +163,8 @@ void Sync::process([[maybe_unused]] StatisticsPtr &stats, Metadata *imageMetadat\n \n \timageMetadata->get(\"sync.params\", local);\n \n-\t/* The wallclock has already been de-jittered for us. */\n-\tuint64_t wallClockFrameTimestamp = local.wallClock;\n+\t/* The wallclock has already been de-jittered for us. Convert from ns into us. */\n+\tuint64_t wallClockFrameTimestamp = local.wallClock / 1000;\n \n \t/*\n \t * This is the headline frame duration in microseconds as programmed into the sensor. Strictly,\n","prefixes":[]}