{"id":27197,"url":"https://patchwork.libcamera.org/api/covers/27197/?format=json","web_url":"https://patchwork.libcamera.org/cover/27197/","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":"<20260703224817.15650-1-ballen4705@googlemail.com>","date":"2026-07-03T22:48:15","name":"[v2,0/2] libcamera: Add SensorSequence request metadata control","submitter":{"id":321,"url":"https://patchwork.libcamera.org/api/people/321/?format=json","name":"Bruce Allen","email":"ballen4705@googlemail.com"},"mbox":"https://patchwork.libcamera.org/cover/27197/mbox/","series":[{"id":6037,"url":"https://patchwork.libcamera.org/api/series/6037/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=6037","date":"2026-07-03T22:48:15","name":"libcamera: Add SensorSequence request metadata control","version":2,"mbox":"https://patchwork.libcamera.org/series/6037/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/27197/comments/","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 0683FC3308\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri,  3 Jul 2026 22:49:58 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id BCBC565FE0;\n\tSat,  4 Jul 2026 00:49:57 +0200 (CEST)","from mail-wm1-x331.google.com (mail-wm1-x331.google.com\n\t[IPv6:2a00:1450:4864:20::331])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 0E5DF65FB5\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat,  4 Jul 2026 00:49:56 +0200 (CEST)","by mail-wm1-x331.google.com with SMTP id\n\t5b1f17b1804b1-493c1950518so10898115e9.1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 03 Jul 2026 15:49:55 -0700 (PDT)","from localhost.localdomain (tmo-121-138.customers.d1-online.com.\n\t[80.187.121.138]) by smtp.gmail.com with ESMTPSA id\n\t5b1f17b1804b1-493c63ba971sm255611285e9.13.2026.07.03.15.49.53\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 03 Jul 2026 15:49:54 -0700 (PDT)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (2048-bit key;\n\tunprotected) header.d=googlemail.com header.i=@googlemail.com\n\theader.b=\"KYTNrxIx\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=googlemail.com; s=20251104; t=1783118995; x=1783723795;\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=AZmsZpVscUs/92w8Ed5vt6cdz4WnjtjimgpbEFOUoj0=;\n\tb=KYTNrxIxpeSEtE3fzezGdMz9zATw8QPkfZveCQMdnDUKz+musVdCj9FilqQXBL6Opa\n\tKs6WdCVWlH6k3BjyTbdBvfK3CBPYg2QyVEjHS6Pt7pxtd0REs5cqbnk54gzm0JCJcYDa\n\tzy/AwS3pybCokLaQQNwc7BuQ69SNJ1F6Ez2acVyb8lVAF+FGjjy1aFbuJhVvXFlpArSR\n\tnzMDsV2GmRSZp8p/3zTNTf51BDG1hmL+eif1ZOtoM9hTBqDTw4bQKRNYid7M+X/KkEO2\n\tWiRKvRCEG6BTZUcJ0qidoDtIrOACUEeheYqJFEFVZ6UncuZ9hR+wkf/Of+q2YVPu2RAY\n\tuklw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20251104; t=1783118995; x=1783723795;\n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n\t:to:cc:subject:date:message-id:reply-to;\n\tbh=AZmsZpVscUs/92w8Ed5vt6cdz4WnjtjimgpbEFOUoj0=;\n\tb=BazLErlTS36IuDIm/1PdZHuSPjQizV1Lhdr/L07KnfBtf1ZwGeHyATkHZZfsfqO06T\n\t+yIOGuq/I3DqefniSWtdAAd/+RkJzE/mIALldwuBtgBSiiDdzb5tZWygTT6/wPQJX/Oc\n\tUbFkrzQHL5c2/0uthStFhr1P77a8M7m1ukYTsETtkFw4POKpSX7p130qGImNy4LbHTBE\n\tUaJkmDEIxZNT4wRHHwf2zSxqFW/ETxDTF8O61ISnf4tf0zPjA+xhAysu1YslvuICrDsT\n\thsPkBDtubRhxlHoIv3i87koICzsDD+8RQKB0f++siLnlCRpvmNqQTWfnbVjxBx8irJ7g\n\tauPA==","X-Gm-Message-State":"AOJu0Yzr3VPB0rOv/9TzDhYKpzWpEVjzin3mNZ/AYmPbV7Hv6+7syLFO\n\tHTo+FLRBUy/7GIGQ9+zt/2QAdAIgg+al7jP4IXPDl8CXUrs/O4Jdm+PcOdd17xUB","X-Gm-Gg":"AfdE7ckQEuGDNww4N/C7OGMLDAKdr8S7A2ryRk6KgCjhhakzRG2dS2mYPRXj/X6YHey\n\tmtR1W23Ce8XBvKdMFtr6dQUSDv+ka9eg+V3+xh/4afd9uhviHeBjaPIjCRnhLxl21oKCrfGMxRn\n\tg0b2ABCoofh34QrFXEMJjppyYk7uNlLhsfL3HBwVEIlPVokM6Jcu7ouhYjJ4ZMKHJMJckl4mLJK\n\tp2DZLegbddag9FjTQpLMi9Og9GqLr3NlYNRHJRhoA+kia3QaGaYaZccxhIgQ87doFNERHAXXQ6F\n\tX0xZC0r2sJk5MrJl78aSFbFL5et+suLNB8ppGvd+s/ZKjeIXdtLm84hVSTltim7XEkbQfUBGsEO\n\tRRQs9mEm+pR7n9bouxceIdw9Z7Ur741MKunZnem1ztR7/U3zFTX3+q7mdC36+SMvy5uH/8pLPUd\n\t49RS6eTs1bQVsuaXrgdhijL0ggk3Ohm3WPlIMj4PfEKe05+wpq9MiT4PqZRaB+p3Vo7Eqzwh1d1\n\t/EX4Qu7aWw=","X-Received":"by 2002:a05:600c:3b28:b0:493:b698:9247 with SMTP id\n\t5b1f17b1804b1-493d1593adbmr8067865e9.14.1783118995097; \n\tFri, 03 Jul 2026 15:49:55 -0700 (PDT)","From":"Bruce Allen <ballen4705@googlemail.com>","To":"libcamera-devel@lists.libcamera.org","Cc":"Bruce Allen <ballen4705@googlemail.com>","Subject":"[PATCH v2 0/2] libcamera: Add SensorSequence request metadata\n\tcontrol","Date":"Fri,  3 Jul 2026 23:48:15 +0100","Message-ID":"<20260703224817.15650-1-ballen4705@googlemail.com>","X-Mailer":"git-send-email 2.54.0","In-Reply-To":"<20260626003712.26624-1-ballen4705@googlemail.com>","References":"<20260626003712.26624-1-ballen4705@googlemail.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":"Hi,\n\nThis v2 series follows up on my v1 submission that exposed the Unicam\nfrontend sequence as an RPi vendor control [1], and Kieran's feedback that\nthis should be a standard metadata control across all platforms [2].\n\nThe series revives the approach from Kieran's 2021 RFC \"Request metadata:\nSensorSequence\" [3], updated for the current control_ids_core.yaml layout\nand additional pipelines. Compared with that original 8-patch series, this\nsubmission is limited to the control definition, pipeline plumbing, and\napplication documentation (no cam/qcam/gstreamer changes).\n\nChanges since v1:\n- Define controls::SensorSequence in control_ids_core.yaml (int64_t, out)\n  instead of controls::rpi::SensorSequence in control_ids_rpi.yaml\n- Populate the control in every pipeline handler that already reports\n  SensorTimestamp (simple, ipu3, rkisp1, rpi/vc4, rpi/pisp, mali-c55,\n  imx8-isi, uvcvideo, vimc)\n- Document SensorSequence in the application developer guide\n\nMotivation (unchanged from v1): applications diagnosing frame loss need a\ncounter tied to sensor-side capture, not just delivered-frame or request-\nqueue sequence. Gaps in SensorSequence indicate frames that did not reach the\ncapture device stream before the previous request completed. Python bindings\nfollow from existing pycamera codegen.\n\nTested: patch applies cleanly to master @ 709ad59; builds with\n-Dpipelines=rpi/vc4 -Dipas=rpi/vc4 -Dpycamera=enabled. Verified on\nRaspberry Pi CM4 that monotonic SensorSequence detects dropped frames.\n\n[1] https://lists.libcamera.org/pipermail/libcamera-devel/2026-June/059669.html\n[2] https://lists.libcamera.org/pipermail/libcamera-devel/2026-June/059681.html\n[3] https://patchwork.libcamera.org/project/libcamera/list/?series=2822\n\nCheers,\nBruce Allen"}