Show a patch.

GET /api/patches/26900/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 26900,
    "url": "https://patchwork.libcamera.org/api/patches/26900/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/26900/",
    "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": "<20260616-ipu3-libipa-rework-v1-9-d4448b54f1d8@ideasonboard.com>",
    "date": "2026-06-16T06:41:43",
    "name": "[09/10] ipa: ipu3: Add IPACameraSensorInfo to IPAContext",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "6de3f1e4cb5995e60f6ff9a79cb7751bc6b9bc89",
    "submitter": {
        "id": 156,
        "url": "https://patchwork.libcamera.org/api/people/156/?format=api",
        "name": "Dan Scally",
        "email": "dan.scally@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/26900/mbox/",
    "series": [
        {
            "id": 5995,
            "url": "https://patchwork.libcamera.org/api/series/5995/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=5995",
            "date": "2026-06-16T06:41:34",
            "name": "libipa: Re-work IPU3 IPA to use libipa algorithms",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/5995/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/26900/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/26900/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 60084C3304\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 16 Jun 2026 06:42:05 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 8C00C62405;\n\tTue, 16 Jun 2026 08:42:00 +0200 (CEST)",
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id C55DF62405\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 16 Jun 2026 08:41:50 +0200 (CEST)",
            "from [127.0.1.1]\n\t(chfd-03-b2-v4wan-176392-cust229.vm15.cable.virginm.net\n\t[82.19.20.230])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 87EE6217B;\n\tTue, 16 Jun 2026 08:41:17 +0200 (CEST)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"oVn8tQpl\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1781592077;\n\tbh=WBiLUavGVYS+agA29NNKFx8Asd82s77zRY361/HLD1s=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=oVn8tQpl65IJJ6/kK3Gx73ZlaiqDye3jApNnJO6s2tp3IjtGLys+W0eaRHruzqmIQ\n\tGAzYVx8wtmYJ6/QR8qzEx2YnanUX/w9UZoxIsnZvxc2+Ho5J21J03AwXhzCESwSivf\n\tgyYuy6uT86D5RcU6NUOp+T71AYqY7xiy1+Xefpco=",
        "From": "Daniel Scally <dan.scally@ideasonboard.com>",
        "Date": "Tue, 16 Jun 2026 07:41:43 +0100",
        "Subject": "[PATCH 09/10] ipa: ipu3: Add IPACameraSensorInfo to IPAContext",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260616-ipu3-libipa-rework-v1-9-d4448b54f1d8@ideasonboard.com>",
        "References": "<20260616-ipu3-libipa-rework-v1-0-d4448b54f1d8@ideasonboard.com>",
        "In-Reply-To": "<20260616-ipu3-libipa-rework-v1-0-d4448b54f1d8@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Cc": "Daniel Scally <dan.scally@ideasonboard.com>",
        "X-Mailer": "b4 0.14.2",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=2132;\n\ti=dan.scally@ideasonboard.com; h=from:subject:message-id;\n\tbh=WBiLUavGVYS+agA29NNKFx8Asd82s77zRY361/HLD1s=;\n\tb=owEBbQKS/ZANAwAKAchJV3psRXUyAcsmYgBqMPAqlHKIvBEm9cm+1tluERsnTu9/CyS0CwlCd\n\tn8xLnGarGSJAjMEAAEKAB0WIQQqyuwyDnZdb+mxmm/ISVd6bEV1MgUCajDwKgAKCRDISVd6bEV1\n\tMkgxD/4oAM9N87by9UsgTRjiJb3iThu1amiOtTMH+ehwbADzVG50cvVS0f+s6aUKFMRQxWxnuOm\n\tbQ3OMUjjyIEfciQqz3idvPkOV70x72bog8zaK4mbph6wsg6HLa/U3hhdMyhnrTwQOMwfKPhkfV3\n\tqnmd+8l+yvMPFskKu4dkyXBTMCQFNrDruqO9uVwRdJWf04E5Q2SWM+iQtbBDiLtzr69J2L6SHdZ\n\toXnjo67QrxpN3U8VRBYT12QrcuvaEtxOj63qz7MBffVraG/RZ/UUlg8UdSfjEiDaNJIEmbB8Qki\n\t1KmcHHT+utJYptRotTlV3qAmJNLEIREb8mEu5qAC9nAjzMa7cBfRaHvMVsltdfQEgU/TS4FEQe4\n\tNXOOf5DSaa8MRpQM/bMyaCH8j66TXJogA1IriLnu2r2VA+xOKv55MudduWw3OTJUmo4O11iTf7S\n\tT6semhyvwjI8Kp2dmjIeZt4Bi68Ctv3Tb7RFJP1s4F9X+AcOISy99ZZVGgCq/rTkGN+mmsszj0z\n\txKd2G7w4JqPvqWWxp59xHTLHSAA40ltO0pBKl8pTUPjN3+GaxRPM/PR9db9vkPvZoOMeMrBjWHb\n\tYO0HnSS9X0aB/p/R0A1S0MA7yEVlNNS0AhKJaNkfy9XdQlIp5Q5tQ2RD6H81hzmPxB5tHscIMKj\n\t6B+EeEvEpqIVHbw==",
        "X-Developer-Key": "i=dan.scally@ideasonboard.com; a=openpgp;\n\tfpr=EEC699ACA1B7CB5D31330C0BBD501C2A3546CCF6",
        "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": "Add an instance of IPACameraSensorInfo to the IPAContext and fill it\nduring IPAIPU3::init(). This will allow us to pass sensor information\nto algorithms at init time.\n\nSigned-off-by: Daniel Scally <dan.scally@ideasonboard.com>\n---\n src/ipa/ipu3/ipa_context.cpp | 3 +++\n src/ipa/ipu3/ipa_context.h   | 3 +++\n src/ipa/ipu3/ipu3.cpp        | 1 +\n 3 files changed, 7 insertions(+)",
    "diff": "diff --git a/src/ipa/ipu3/ipa_context.cpp b/src/ipa/ipu3/ipa_context.cpp\nindex 7152d070d3ab1bc463fdaad437d5e1c1b87ce25c..7fcfd5e0e4ade92521cc2914dd07113235af8e45 100644\n--- a/src/ipa/ipu3/ipa_context.cpp\n+++ b/src/ipa/ipu3/ipa_context.cpp\n@@ -54,6 +54,9 @@ namespace libcamera::ipa::ipu3 {\n  *\n  * \\var IPAContext::ctrlMap\n  * \\brief A ControlInfoMap::Map of controls populated by the algorithms\n+ *\n+ * \\var IPAContext::sensorInfo\n+ * \\brief An IPACameraSensorInfo instance holding information about the sensor\n  */\n \n /**\ndiff --git a/src/ipa/ipu3/ipa_context.h b/src/ipa/ipu3/ipa_context.h\nindex 1eaaac82da0e3ad5bed0749c39d9dad8c585cab0..f157f223cbb3119f108d768b14fca514ac5661ca 100644\n--- a/src/ipa/ipu3/ipa_context.h\n+++ b/src/ipa/ipu3/ipa_context.h\n@@ -15,6 +15,8 @@\n #include <libcamera/controls.h>\n #include <libcamera/geometry.h>\n \n+#include <libcamera/ipa/core_ipa_interface.h>\n+\n #include <libipa/awb.h>\n #include <libipa/ccm.h>\n #include <libipa/fc_queue.h>\n@@ -93,6 +95,7 @@ struct IPAContext {\n \tFCQueue<IPAFrameContext> frameContexts;\n \n \tControlInfoMap::Map ctrlMap;\n+\tIPACameraSensorInfo sensorInfo;\n };\n \n } /* namespace ipa::ipu3 */\ndiff --git a/src/ipa/ipu3/ipu3.cpp b/src/ipa/ipu3/ipu3.cpp\nindex 4bdc4b7677fe9703fb968ca91967c68742454514..0827ad207c9d89b8af4887f609fe08881612ab96 100644\n--- a/src/ipa/ipu3/ipu3.cpp\n+++ b/src/ipa/ipu3/ipu3.cpp\n@@ -313,6 +313,7 @@ int IPAIPU3::init(const IPASettings &settings,\n \tcontext_.configuration = {};\n \tcontext_.configuration.sensor.lineDuration =\n \t\tsensorInfo.minLineLength * 1.0s / sensorInfo.pixelRate;\n+\tcontext_.sensorInfo = sensorInfo;\n \n \t/* Load the tuning data file. */\n \tFile file(settings.configurationFile);\n",
    "prefixes": [
        "09/10"
    ]
}