Patch Detail
Show a patch.
GET /api/patches/27039/?format=api
{ "id": 27039, "url": "https://patchwork.libcamera.org/api/patches/27039/?format=api", "web_url": "https://patchwork.libcamera.org/patch/27039/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20260626003712.26624-3-ballen4705@googlemail.com>", "date": "2026-06-26T00:37:12", "name": "[v1,2/2] docs: Document SensorSequence request metadata", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "d1d167dcf0487603883cc57ac0c876ee4263a629", "submitter": { "id": 321, "url": "https://patchwork.libcamera.org/api/people/321/?format=api", "name": "Bruce Allen", "email": "ballen4705@googlemail.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/27039/mbox/", "series": [ { "id": 6016, "url": "https://patchwork.libcamera.org/api/series/6016/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=6016", "date": "2026-06-26T00:37:10", "name": "rpi: Expose Unicam frontend sequence as SensorSequence metadata", "version": 1, "mbox": "https://patchwork.libcamera.org/series/6016/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/27039/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/27039/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 66E69C3301\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 26 Jun 2026 00:37:21 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id F2812658D9;\n\tFri, 26 Jun 2026 02:37:20 +0200 (CEST)", "from mail-wm1-x330.google.com (mail-wm1-x330.google.com\n\t[IPv6:2a00:1450:4864:20::330])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id D4E50658D4\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 26 Jun 2026 02:37:17 +0200 (CEST)", "by mail-wm1-x330.google.com with SMTP id\n\t5b1f17b1804b1-491609cdd8fso2620675e9.2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 25 Jun 2026 17:37:17 -0700 (PDT)", "from localhost.localdomain (p5ddcc513.dip0.t-ipconnect.de.\n\t[93.220.197.19]) by smtp.gmail.com with ESMTPSA id\n\tffacd0b85a97d-46f0db007b3sm762055f8f.2.2026.06.25.17.37.15\n\tfor <libcamera-devel@lists.libcamera.org>\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 25 Jun 2026 17:37:16 -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=\"X1I7OVhf\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=googlemail.com; s=20251104; t=1782434237; x=1783039037;\n\tdarn=lists.libcamera.org; \n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:to:from:from:to:cc:subject:date:message-id\n\t:reply-to; bh=VpZcHw2NBHq0BkAD+UBdRuJ5E7VdAGmrSf5WbR61kBg=;\n\tb=X1I7OVhfelFlTrydGrvkimqG8rVGyULtCLN7fmmxKwDL4CX+L3DFdyeYnjYvS1t/tm\n\tE2LslzR7P4WMOS/nMjmxaglEP8ycCxr4XyNEnlGlfHJ+EeQvLz5btS+gC6A8TTIg8/SV\n\tWBCaG+So2hZA+jQMsbW/xFVz0NHOtYDizEELwNXthXlg5udVp7k/9IAeAKzJov2KwNK3\n\tntU+xj79Y6UwHiraXpcWnTohOPBx9Ut6taHO1F+PpIcCB1U4tQANAZh7bu68Jb+16xTT\n\tBbeh25gx1Z3VMwHFatmbO+EkYG02SEQnKg5xWSsZRXezkXpJpM35OHwoi9hUehaJXnlt\n\tc/mg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20251104; t=1782434237; x=1783039037;\n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to\n\t:cc:subject:date:message-id:reply-to;\n\tbh=VpZcHw2NBHq0BkAD+UBdRuJ5E7VdAGmrSf5WbR61kBg=;\n\tb=kk7GlV7g7glNbAQgi1JT1uOLj2WfT+5mIRXJSdXz4872DK09L0cuPkNsiLvevXl+UF\n\tC34QFiQpwuV6as37ACgCIFJp1tws1A8M0mzB4bwwxm2wOqQbzOqrCXy2Ao/27Apo/2Fx\n\tOUUk7uhtsn0csIoaClF5gjgjY1omDZcPCFOPpzsQXstJgdE35sd2adEZxCCxsIhOldR9\n\tOlvX13vL4L8cudLugG5mlTqAE6xJmovI4sutUC0JgWaXZKw12hmK27XK9UKV4/bMOCmk\n\tsriWQ4MjUuBpQVpMVN5egSnzrLacFKGa7KNw8kkQsSHMlUNlEu/ls9DZNeYqfXAJTu+P\n\tFkWQ==", "X-Gm-Message-State": "AOJu0YyDf/OHOOGvHLNKHAqFFZt3/BocprJjA6B7Rmk67oh/3oTQL8TV\n\tCMFqyIl+G6uD6YmYp+4Q3SBnyG/QequK4OyJUxIAC7EENNLIbRXZtMqrTxhXLw==", "X-Gm-Gg": "AfdE7clwUcnIEGMhVaGVlnrkukl70wUUtkziNtBUy/ENUg57IUkwPavOHgZ+AFao51+\n\tZ+t4bK4THaL/wU82WlSyyfIHmqHF54Z8vKhGPy588bacUzD7qne0VmFhNCrAuCnyRLPfx2d7YdK\n\t5/SxAfQWX7V+GI8YcbMxjGYASy7ACLwh5Rg9h/nqKnQ5Ha8pAqvnu5AqnS9T4+vpMTxUe8GwLNV\n\tvrlcSyhX7KJs5RXBMW3tfaYlkpGJugRVYZMs1ZfmbMFjo3Mik8O7FK+NgJ15x8G1XYTMXCG0299\n\tj3BGMR2UfWnYrWLwN9NdydlGjYviAFhGmAxFSL7fRmVStIaOrfsUzTbmP29upy5N8f9b2/6E1zu\n\thnbTWt0l7GuhUOq//e4zeBBGePP27+nT236IoyQgdL6XR/FMMn9ynzgdviJCmx964WNF4vJoETM\n\tLEtlOe1fiavmYSc+WuiAShGhSBqlaTrFRJUhagD8ajQlezZlg6S0xK7M6i65vEAR0ssQU8rjgg4\n\twBJ6A==", "X-Received": "by 2002:a05:600d:844f:10b0:490:ae52:499c with SMTP id\n\t5b1f17b1804b1-49266899ff0mr53044655e9.21.1782434237283; \n\tThu, 25 Jun 2026 17:37:17 -0700 (PDT)", "From": "Bruce Allen <ballen4705@googlemail.com>", "To": "libcamera-devel@lists.libcamera.org", "Subject": "[PATCH v1 2/2] docs: Document SensorSequence request metadata", "Date": "Fri, 26 Jun 2026 02:37:12 +0200", "Message-ID": "<20260626003712.26624-3-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": "Describe how applications read SensorSequence from Request::metadata() and\nhow it differs from per-buffer FrameMetadata::sequence.\n\nSigned-off-by: Bruce Allen <ballen4705@googlemail.com>\n---\n .../guides/application-developer.rst | 28 +++++++++++++++++++\n 1 file changed, 28 insertions(+)", "diff": "diff --git a/Documentation/guides/application-developer.rst b/Documentation/guides/application-developer.rst\nindex a9620ca..996aa9b 100644\n--- a/Documentation/guides/application-developer.rst\n+++ b/Documentation/guides/application-developer.rst\n@@ -469,6 +469,34 @@ and the bytes used by planes.\n seq: 000040 bytesused: 1843200\n seq: 000042 bytesused: 1843200\n \n+Request metadata\n+~~~~~~~~~~~~~~~~\n+\n+Completed requests also expose metadata as a :doxy-pub:`ControlList` through\n+:doxy-pub:`Request::metadata()`. Pipeline handlers populate this list with\n+controls defined as ``direction: out`` in the control definition YAML files.\n+\n+Common entries include :doxy-pub:`controls::SensorTimestamp` and\n+:doxy-pub:`controls::FrameWallClock`. On Raspberry Pi VC4 pipelines, the vendor\n+control ``controls::rpi::SensorSequence`` reports the Unicam frontend\n+``FrameBuffer::metadata().sequence`` for the sensor frame.\n+\n+While per-buffer :doxy-pub:`FrameMetadata::sequence` identifies frames in each\n+completed stream, ``SensorSequence`` reflects the sensor/frontend capture path.\n+If the value increases by more than one between consecutive completed requests,\n+frames were not captured into the frontend stream before the earlier request\n+finished. This complements sequence numbers derived from request delivery and\n+is intended for diagnosing sensor-side frame continuity.\n+\n+.. code:: cpp\n+\n+ const ControlList &metadata = request->metadata();\n+ if (auto seq = metadata.get<int64_t>(controls::rpi::SensorSequence))\n+ std::cout << \" sensor sequence: \" << *seq << std::endl;\n+\n+See also ``controls::rpi::ControlListSequence``, which reports when a request's\n+control list was applied rather than frontend capture timing.\n+\n A completed buffer contains of course image data which can be accessed through\n the per-plane dma-buf file descriptor transported by the ``FrameBuffer``\n instance. An example of how to write image data to disk is available in the\n", "prefixes": [ "v1", "2/2" ] }