Show a patch.

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

{
    "id": 27541,
    "url": "https://patchwork.libcamera.org/api/patches/27541/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/27541/",
    "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": "<ER1-t_uBUITtJqahlHPsL9PAxsZJ6JgQgBRpIvDrSXv-dwdtsyFEHhNXbTCft5S-4wCRPzYfsAhy9sVe5zdmko2pZv5HfTduhv1aBQmSpMw=@proton.me>",
    "date": "2026-08-02T14:01:19",
    "name": "[3/3] ipa: simple: Add a tuning file for the IMX582 and IMX586",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "2311a2bd6af0c084c2684774d0e9a973305ba8e3",
    "submitter": {
        "id": 484,
        "url": "https://patchwork.libcamera.org/api/people/484/?format=api",
        "name": "j4niwzis",
        "email": "j4niwzis@proton.me"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/27541/mbox/",
    "series": [
        {
            "id": 6099,
            "url": "https://patchwork.libcamera.org/api/series/6099/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=6099",
            "date": "2026-08-02T13:59:08",
            "name": "[1/3] libcamera: camera_sensor_properties: Add IMX582, IMX586 and OV8856",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/6099/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/27541/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/27541/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 DB8C4C32FE\n\tfor <parsemail@patchwork.libcamera.org>;\n\tSun,  2 Aug 2026 14:01:27 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 8BA4A67FEC;\n\tSun,  2 Aug 2026 16:01:27 +0200 (CEST)",
            "from mail-106103.protonmail.ch (mail-106103.protonmail.ch\n\t[79.135.106.103])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id DFC5767FC1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSun,  2 Aug 2026 16:01:25 +0200 (CEST)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (2048-bit key;\n\tunprotected) header.d=proton.me header.i=@proton.me\n\theader.b=\"XyYyYKYw\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me;\n\ts=protonmail; t=1785679285; x=1785938485;\n\tbh=QAhbjaqPVyGz0Me3eC/2wmWYDTV7EBMci1VmNR+ZOOo=;\n\th=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date:\n\tSubject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector;\n\tb=XyYyYKYw1ZAYh7e4yybJKmDCDIkgBIa3lCbXKeRwK3k/ebx1JqnmnNp1a0tfVbFS1\n\tU/EQKdBpiv1aItuMGfLJ2zQW+S6+JE3Xvd1D0wdiWDucWPzJS0ml5zAIgCBQrvYRA6\n\tKB7XD4ZUtbATKXMMWWA/9DNncp/xS3+btcIAmbeA8F7DNE4XO0fNQ6Inpgm2fEM96a\n\t0fxUZi5e/5S33p22yRNvnmmp1XDXQbny5AohsnaG2QyOu+mQkCFGCV1Xz7deMbt2ll\n\tkfeaviUYnSbiqFVPpzZJUMo+MGp95UEG4EqNpLpg8FPmQdjUzVXFrRMeFg0inXXGop\n\tVNLAAllUIuaSg==",
        "Date": "Sun, 02 Aug 2026 14:01:19 +0000",
        "To": "\"libcamera-devel@lists.libcamera.org\"\n\t<libcamera-devel@lists.libcamera.org>",
        "From": "j4niwzis <j4niwzis@proton.me>",
        "Subject": "[PATCH 3/3] ipa: simple: Add a tuning file for the IMX582 and IMX586",
        "Message-ID": "<ER1-t_uBUITtJqahlHPsL9PAxsZJ6JgQgBRpIvDrSXv-dwdtsyFEHhNXbTCft5S-4wCRPzYfsAhy9sVe5zdmko2pZv5HfTduhv1aBQmSpMw=@proton.me>",
        "Feedback-ID": "156040633:user:proton",
        "X-Pm-Message-ID": "bd650ad05445810ed48e09e90ab0b4f8ab9219e5",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=utf-8",
        "Content-Transfer-Encoding": "quoted-printable",
        "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": "Without a tuning file of its own the sensor falls back to uncalibrated.yaml,which has no colour correction at all, and the picture comes out blue.\n\nThe matrices here are the generic Sony daylight and tungsten ones, normalised\nso that each row sums to one; they are not measured on a particular module,\nbut they are much closer than the identity that the uncalibrated file leaves\nin place.  A module specific profile can be built later from a colour target\nwithout touching this file.\n\nSigned-off-by: j4niwzis <j4niwzis@proton.me>\n---\n--\n2.51.0",
    "diff": "diff --git a/src/ipa/simple/data/meson.build b/src/ipa/simple/data/meson.build\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+    'imx586.yaml',\n     'uncalibrated.yaml',\n ])\n\ndiff --git a/src/ipa/simple/data/imx586.yaml b/src/ipa/simple/data/imx586.yaml\nnew file mode 100644\n--- /dev/null\n+++ b/src/ipa/simple/data/imx586.yaml\n@@ -0,0 +1,20 @@\n+# SPDX-License-Identifier: CC0-1.0\n+%YAML 1.1\n+---\n+version: 1\n+algorithms:\n+  - BlackLevel:\n+  - Awb:\n+  - Ccm:\n+      ccms:\n+        - ct: 2900\n+          ccm: [  1.55, -0.44, -0.11,\n+                 -0.29,  1.61, -0.32,\n+                 -0.03, -0.72,  1.75 ]\n+        - ct: 6500\n+          ccm: [  1.60, -0.52, -0.08,\n+                 -0.23,  1.60, -0.37,\n+                 -0.04, -0.55,  1.59 ]\n+  - Adjust:\n+  - Agc:\n+...\n",
    "prefixes": [
        "3/3"
    ]
}