Show a patch.

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

{
    "id": 26699,
    "url": "https://patchwork.libcamera.org/api/patches/26699/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/26699/",
    "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": "<20260508171722.53AD71EA0070@mailuser.phl.internal>",
    "date": "2026-05-08T16:51:51",
    "name": "[v2,2/3] ipa: simple: data: Add OV2740 tuning file",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "9b23647d32a0d28f3e5bb146b839444db2a18160",
    "submitter": {
        "id": 261,
        "url": "https://patchwork.libcamera.org/api/people/261/?format=api",
        "name": "Javier Tia",
        "email": "floss@jetm.me"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/26699/mbox/",
    "series": [
        {
            "id": 5926,
            "url": "https://patchwork.libcamera.org/api/series/5926/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=5926",
            "date": "2026-05-08T16:51:31",
            "name": "ipa: simple: OV2740 tuning file and swstats sumShift cleanup",
            "version": 2,
            "mbox": "https://patchwork.libcamera.org/series/5926/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/26699/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/26699/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 113A6BE173\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri,  8 May 2026 17:17:27 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id A4B6063030;\n\tFri,  8 May 2026 19:17:26 +0200 (CEST)",
            "from fout-a6-smtp.messagingengine.com\n\t(fout-a6-smtp.messagingengine.com [103.168.172.149])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 3A16663024\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri,  8 May 2026 19:17:23 +0200 (CEST)",
            "from phl-compute-02.internal (phl-compute-02.internal\n\t[10.202.2.42])\n\tby mailfout.phl.internal (Postfix) with ESMTP id 7354AEC032B;\n\tFri,  8 May 2026 13:17:22 -0400 (EDT)",
            "from phl-imap-07 ([10.202.2.97])\n\tby phl-compute-02.internal (MEProxy); Fri, 08 May 2026 13:17:22 -0400",
            "by mailuser.phl.internal (Postfix, from userid 501)\n\tid 53AD71EA0070; Fri,  8 May 2026 13:17:22 -0400 (EDT)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (2048-bit key;\n\tunprotected) header.d=jetm.me header.i=@jetm.me header.b=\"sho2JYJU\";\n\tdkim=pass (2048-bit key;\n\tunprotected) header.d=messagingengine.com\n\theader.i=@messagingengine.com header.b=\"FE/55NtE\"; \n\tdkim-atps=neutral",
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=jetm.me; h=cc:cc\n\t:content-transfer-encoding:content-type:content-type:date:date\n\t:from:from:in-reply-to:in-reply-to:message-id:mime-version\n\t:references:reply-to:subject:subject:to:to; s=fm2; t=1778260642;\n\tx=1778347042; bh=tB6DowHUtYxV1IWRWYuUf2t4ClDgxd/hhuIQ8tW1r4E=; b=\n\tsho2JYJU+/5jrfd9cbo8C1+EUZgVar0FxG2Kj63kZOYd9ymQsZVpz1GvxwjZ9oIG\n\t8dO7vy43+DBwFOtIr1AWNRb42gcf8QaLCuzWQGXLLHoGMbzAe9tZOZUvIyKZbKHk\n\t9bMNjAU0XEyBL3qoj2o1+bWCG8vLp8XxJIVUaHo4joXpMaPSWplMbagjUaudD7Bq\n\tjrt7ohrYA7kNvmAeeYnx5/s0QQeB0IYiyUd2DTCut1upb5b270OT07rxmwpdveOK\n\tQmvsmdkNg6KSLci+lrcNfdFe+RgjuQZ07+hYbyjEwWFoA3lLqISld4mRv55V8/VY\n\tkaz9Y7wxiYAAf2yuIDTYtw==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n\tmessagingengine.com; h=cc:cc:content-transfer-encoding\n\t:content-type:content-type:date:date:feedback-id:feedback-id\n\t:from:from:in-reply-to:in-reply-to:message-id:mime-version\n\t:references:reply-to:subject:subject:to:to:x-me-proxy\n\t:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1778260642; x=\n\t1778347042; bh=tB6DowHUtYxV1IWRWYuUf2t4ClDgxd/hhuIQ8tW1r4E=; b=F\n\tE/55NtE039Vuu55IHDTU6qr+ozGI5DaSibZ0+mVXXr9wF2jFD5kEpZcG613XjNgp\n\tn+/6OyUmloS3uf4A6Vdo8f+fgxlcYzvCFBGoa127ibk4MUhOcCuKUuonwsndkfma\n\tiBorUK84F3Z5pRliM+xxF6+Fa7KYxdxHZJESJJIuE/uHm3QOk+IdFN/KNIrVd2lJ\n\tdCav1gETZhfydW6syXyg8kmoONDJ/P6YQCdyyH9bUhQg0CPEWJueS0GlpjNi7FPX\n\tiwFx2m4LGNk0DmfU94YQTt89ZD4i5cIGSUbXoLsEpVQK2iUsxC/6Yza85h04+aa/\n\tvMySdpFtQqi0rlHM0MdWQ=="
        ],
        "X-ME-Sender": "<xms:ohr-adqquPTu4JOp0qebPCO6vlTGZOkPc2RwO8F1pvagRdPnzRUI-A>\n\t<xme:ohr-aadup4T7_PLn8pwVCxVg0L0gfEWq0XkNX8ExswpS1wV4ixooC8sLjKxMTsF6J\n\tLJlOIfjSMmi4TSVZT2AwX5Z75TiHMiZF6s5zPIfjll0Xd0LQVAGYyQ>",
        "X-ME-Proxy-Cause": "gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdduuddtledvucetufdoteggodetrf\n\tdotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu\n\trghilhhouhhtmecufedttdenucgopfhokfffucdluddtmdenucfjughrpefotggggffhvf\n\tffufevjghfsehtkedttdertdejnecuhfhrohhmpeflrghvihgvrhcuvfhirgcuoehflhho\n\tshhssehjvghtmhdrmhgvqeenucggtffrrghtthgvrhhnpedtudejffejkeekteelueefvd\n\tejvdeuhfefteehkeevtddvleduteekleetvdelhfenucevlhhushhtvghrufhiiigvpedu\n\tnecurfgrrhgrmhepmhgrihhlfhhrohhmpehflhhoshhssehjvghtmhdrmhgvpdhnsggprh\n\tgtphhtthhopeejpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehrohgsvghrthdr\n\tmhgruggvrhestgholhhlrggsohhrrgdrtghomhdprhgtphhtthhopegsrghrnhgrsggrsh\n\tdrphhotgiivgesihguvggrshhonhgsohgrrhgurdgtohhmpdhrtghpthhtohepkhhivghr\n\trghnrdgsihhnghhhrghmsehiuggvrghsohhnsghorghrugdrtghomhdprhgtphhtthhope\n\thlrghurhgvnhhtrdhpihhntghhrghrthesihguvggrshhonhgsohgrrhgurdgtohhmpdhr\n\ttghpthhtoheplhhisggtrghmvghrrgdquggvvhgvlheslhhishhtshdrlhhisggtrghmvg\n\thrrgdrohhrghdprhgtphhtthhopehjohhhrghnnhgvshdrghhovgguvgesohhsshdrqhhu\n\trghltghomhhmrdgtohhmpdhrtghpthhtohepmhiirghmrgiirghlsehrvgguhhgrthdrtg\n\thomh",
        "X-ME-Proxy": "<xmx:ohr-abSMDMs9rym0k1y29Gh7RYCmI_bIgxay2DTqQIVxbHRf8N6P4g>\n\t<xmx:ohr-aW0A_9r2M_EutJ5tTDODygdXWho_8MDjbv8rYfQL9ibX4_452A>\n\t<xmx:ohr-aQt4S7eoFic6RrSsNg4CemOr1RTQWAFrz6hJoRL2nU-b55mL9g>\n\t<xmx:ohr-acj5iJtwtvJNx1m1W-v7Jbk0v_qEOqlInJcMtir0FvUd4qDBzg>\n\t<xmx:ohr-aWRijqZFuW2thjB7puYzh5wtcaiMzQsmb-dOczXjiWJWfUl7mBtM>",
        "Feedback-ID": "i9dde48b3:Fastmail",
        "X-Mailer": "MessagingEngine.com Webmail Interface",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "From": "Javier Tia <floss@jetm.me>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Fri, 08 May 2026 10:51:51 -0600",
        "Subject": "[PATCH v2 2/3] ipa: simple: data: Add OV2740 tuning file",
        "Cc": "mzamazal@redhat.com, kieran.bingham@ideasonboard.com,\n\tlaurent.pinchart@ideasonboard.com, barnabas.pocze@ideasonboard.com,\n\tjohannes.goede@oss.qualcomm.com, robert.mader@collabora.com",
        "In-Reply-To": "<177826063718.39714.13674874482653763631@jetm.me>",
        "References": "<177826063718.39714.13674874482653763631@jetm.me>",
        "Message-Id": "<20260508171722.53AD71EA0070@mailuser.phl.internal>",
        "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 a tuning file for the OV2740 sensor calibrated from the Intel IPU6\nAIQB binary (OV2740_CJFLE23_ADL.aiqb) shipped with the Lenovo ThinkPad\nX1 Carbon Gen 10 (Alder Lake, JP2 module, Chicony CJFLE23 camera).\n\nBlack level is 0x40 at 10-bit (64 ADU), stored as the 16-bit value 4096\nper the BlackLevel algorithm convention (value >> 8 = 16 at 8-bit scale).\n\nAWB gain limits are derived from the minimum R/G and B/G chromaticities\nacross the 8 calibrated illuminants (2319 K to 6302 K), with a 10%\nheadroom margin: maxGainR=2.49, maxGainB=3.07.\n\nEight CCMs are extracted from the AIQB advanced color matrix records\n(record id=25, float format), covering illuminants from 2319 K\n(incandescent) to 6302 K (daylight).\n\nSigned-off-by: Javier Tia <floss@jetm.me>\n---\n src/ipa/simple/data/meson.build |  1 +\n src/ipa/simple/data/ov2740.yaml | 52 +++++++++++++++++++++++++++++++++\n 2 files changed, 53 insertions(+)\n create mode 100644 src/ipa/simple/data/ov2740.yaml",
    "diff": "diff --git a/src/ipa/simple/data/meson.build b/src/ipa/simple/data/meson.build\nindex 92795ee4..e3e4de74 100644\n--- a/src/ipa/simple/data/meson.build\n+++ b/src/ipa/simple/data/meson.build\n@@ -1,6 +1,7 @@\n # SPDX-License-Identifier: CC0-1.0\n \n conf_files = files([\n+    'ov2740.yaml',\n     'uncalibrated.yaml',\n ])\n \ndiff --git a/src/ipa/simple/data/ov2740.yaml b/src/ipa/simple/data/ov2740.yaml\nnew file mode 100644\nindex 00000000..da7e1efe\n--- /dev/null\n+++ b/src/ipa/simple/data/ov2740.yaml\n@@ -0,0 +1,52 @@\n+# SPDX-License-Identifier: CC0-1.0\n+# Calibrated from OV2740_CJFLE23_ADL.aiqb (Lenovo JP2 module, IPU6 ADL)\n+%YAML 1.1\n+---\n+version: 1\n+algorithms:\n+  - BlackLevel:\n+      blackLevel: 4096\n+  - Awb:\n+      maxGainR: 2.49\n+      maxGainB: 3.07\n+      speed: 0.25\n+  - Ccm:\n+      ccms:\n+        - ct: 2319\n+          ccm: [  1.5938, -0.1714, -0.4224,\n+                 -0.6134,  1.9612, -0.3478,\n+                 -0.4710, -1.8500,  3.3210 ]\n+        - ct: 2854\n+          ccm: [  1.6119, -0.3132, -0.2987,\n+                 -0.4418,  1.8227, -0.3809,\n+                 -0.1017, -1.3958,  2.4975 ]\n+        - ct: 2884\n+          ccm: [  1.7739, -0.6655, -0.1085,\n+                 -0.4113,  1.6619, -0.2506,\n+                 -0.0150, -1.1661,  2.1811 ]\n+        - ct: 3239\n+          ccm: [  1.8298, -0.6636, -0.1662,\n+                 -0.4086,  1.7373, -0.3287,\n+                 -0.0500, -1.0836,  2.1335 ]\n+        - ct: 3865\n+          ccm: [  1.8836, -0.7430, -0.1406,\n+                 -0.3653,  1.7000, -0.3348,\n+                 -0.0542, -0.8442,  1.8984 ]\n+        - ct: 4136\n+          ccm: [  1.9043, -0.8348, -0.0695,\n+                 -0.3241,  1.6389, -0.3148,\n+                  0.0262, -0.9593,  1.9332 ]\n+        - ct: 4939\n+          ccm: [  1.6371, -0.4490, -0.1881,\n+                 -0.2675,  1.6494, -0.3819,\n+                 -0.0245, -0.7782,  1.8026 ]\n+        - ct: 6302\n+          ccm: [  1.6401, -0.4418, -0.1984,\n+                 -0.2360,  1.7191, -0.4832,\n+                 -0.0248, -0.7221,  1.7469 ]\n+  - Adjust:\n+      gamma: 2.2\n+      contrast: 1.0\n+      saturation: 1.0\n+  - Agc:\n+...\n",
    "prefixes": [
        "v2",
        "2/3"
    ]
}