Show a patch.

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

{
    "id": 27178,
    "url": "https://patchwork.libcamera.org/api/patches/27178/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/27178/",
    "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": "<20260703122543.1991189-20-paul.elder@ideasonboard.com>",
    "date": "2026-07-03T12:25:25",
    "name": "[RFC,19/19] ipa: rkisp2: data: Add tuning file for imx708",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "c0cc67dc235021b2f8c1e250d3e38efd1ca48069",
    "submitter": {
        "id": 17,
        "url": "https://patchwork.libcamera.org/api/people/17/?format=api",
        "name": "Paul Elder",
        "email": "paul.elder@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/27178/mbox/",
    "series": [
        {
            "id": 6035,
            "url": "https://patchwork.libcamera.org/api/series/6035/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=6035",
            "date": "2026-07-03T12:25:06",
            "name": "Add support for rkisp2",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/6035/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/27178/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/27178/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 7E53BC328C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri,  3 Jul 2026 12:27:09 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 2A97565FFF;\n\tFri,  3 Jul 2026 14:27:09 +0200 (CEST)",
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id B1FE465FED\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri,  3 Jul 2026 14:27:07 +0200 (CEST)",
            "from neptunite.hamster-moth.ts.net (unknown\n\t[IPv6:2404:7a81:160:2100:a2cc:2f45:3bd7:2589])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id D54921121;\n\tFri,  3 Jul 2026 14:26:18 +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=\"pK07OReq\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1783081581;\n\tbh=jE97IpXxHWdvScNkVYbhDJHNEYa8nGsdBx/m4Ph7sg8=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=pK07OReqHfXwbmJbG7xeVah8IUNINBqKe9JQnVCb5yzCprgO77LwOGqh1yU6g8SAs\n\tPSdBweTd2TagYsmId1U82iWonCgVdsAQ3G5cz8puuM5B+Ylf6zI9HzcLlK3IVzaG6G\n\tJfkE3q34oMyyXhu6HeC+8paB50ukQIBH/lwWXIG8=",
        "From": "Paul Elder <paul.elder@ideasonboard.com>",
        "To": "laurent.pinchart@ideasonboard.com",
        "Cc": "Paul Elder <paul.elder@ideasonboard.com>, michael.riesch@collabora.com, \n\txuhf@rock-chips.com, stefan.klug@ideasonboard.com,\n\tkieran.bingham@ideasonboard.com, dan.scally@ideasonboard.com,\n\tjacopo.mondi@ideasonboard.com, nicolas.dufresne@collabora.com,\n\tlibcamera-devel@lists.libcamera.org",
        "Subject": "[RFC PATCH 19/19] ipa: rkisp2: data: Add tuning file for imx708",
        "Date": "Fri,  3 Jul 2026 21:25:25 +0900",
        "Message-ID": "<20260703122543.1991189-20-paul.elder@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.47.2",
        "In-Reply-To": "<20260703122543.1991189-1-paul.elder@ideasonboard.com>",
        "References": "<20260703122543.1991189-1-paul.elder@ideasonboard.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": "Add a tuning file for rkisp2 for imx708. This was tuned using the rkisp2\ntuning script using images from [0] (at branch raspberrypi/imx708 in\ndirectory 2026-05-22), with some hand-modifications, such as removing\nlsc because it needs further investigation to function properly.\n\n[0] https://gitlab.freedesktop.org/camera/tuning\n\nSigned-off-by: Paul Elder <paul.elder@ideasonboard.com>\n---\n src/ipa/rkisp2/data/imx708.yaml | 154 ++++++++++++++++++++++++++++++++\n src/ipa/rkisp2/data/meson.build |   1 +\n 2 files changed, 155 insertions(+)\n create mode 100644 src/ipa/rkisp2/data/imx708.yaml",
    "diff": "diff --git a/src/ipa/rkisp2/data/imx708.yaml b/src/ipa/rkisp2/data/imx708.yaml\nnew file mode 100644\nindex 000000000000..d15367ba97cc\n--- /dev/null\n+++ b/src/ipa/rkisp2/data/imx708.yaml\n@@ -0,0 +1,154 @@\n+# SPDX-License-Identifier: CC0-1.0\n+%YAML 1.1\n+---\n+version: 1\n+algorithms:\n+  - ColorSpaceConversion:\n+  - Agc:\n+      AeMeteringMode:\n+        MeteringCentreWeighted: [ 0, 0, 0, 0, 0, 0, 6, 8, 6, 0, 0, 8, 16, 8, 0, 0, 6, 8, 6, 0, 0, 0, 0, 0, 0 ]\n+      AeExposureMode:\n+        ExposureNormal:\n+          exposureTime: [ 100, 10000, 30000, 60000, 120000 ]\n+          gain: [ 1.2, 2.0, 4.0, 6.0, 6.0 ]\n+      AeConstraintMode:\n+        ConstraintNormal:\n+          lower:\n+            qLo: 0.98\n+            qHi: 1.0\n+            yTarget: 0.1\n+      relativeLuminanceTarget: 0.1\n+  - Awb:\n+      algorithm: \"grey\"\n+      AwbMode:\n+        AwbAuto:\n+          lo: 2500\n+          hi: 9000\n+        AwbIncandescent:\n+          lo: 2500\n+          hi: 3000\n+        AwbTungsten:\n+          lo: 3000\n+          hi: 3500\n+        AwbFluorescent:\n+          lo: 4000\n+          hi: 4700\n+        AwbIndoor:\n+          lo: 3000\n+          hi: 5000\n+        AwbDaylight:\n+          lo: 5500\n+          hi: 6500\n+        AwbCloudy:\n+          lo: 6500\n+          hi: 8000\n+      priors:\n+        - lux: 0\n+          ct: [ 2000, 13000 ]\n+          probability: [ 1.0, 1.0 ]\n+      colourGains:\n+        - ct: 2500\n+          gains: [ 1.1199462425803561, 1.9142419601837672 ]\n+        - ct: 3000\n+          gains: [ 1.1242270938729624, 1.9015021867275146 ]\n+        - ct: 3500\n+          gains: [ 1.1583458820803894, 1.8109380659181455 ]\n+        - ct: 4000\n+          gains: [ 1.2714558169103625, 1.6165535079211122 ]\n+        - ct: 4500\n+          gains: [ 1.476886722788362, 1.4486455164421266 ]\n+        - ct: 5000\n+          gains: [ 1.64446637066272, 1.3819789939192924 ]\n+        - ct: 5500\n+          gains: [ 1.7822135091783995, 1.3487995683841383 ]\n+        - ct: 6000\n+          gains: [ 1.8677624206200971, 1.33422281521014 ]\n+        - ct: 6500\n+          gains: [ 1.9219680953296177, 1.3266118333775536 ]\n+        - ct: 7000\n+          gains: [ 1.9516003122560501, 1.3229263130043656 ]\n+        - ct: 7500\n+          gains: [ 1.9673421207948063, 1.321178491214163 ]\n+        - ct: 8000\n+          gains: [ 1.9845207382417145, 1.3190871916633689 ]\n+        - ct: 8500\n+          gains: [ 1.993620414673046, 1.3182177695755337 ]\n+        - ct: 9000\n+          gains: [ 2.006823198876179, 1.3170025023047545 ]\n+      transversePos: 0.01269\n+      transverseNeg: 0.01561\n+  - BlackLevelSubtraction:\n+  - Ccm:\n+      ccms:\n+        - ct: 2500\n+          ccm: [\n+                 1.72201, 0.27067, -0.99269, -0.64829, 2.48777, -0.83947, -0.08905, -0.54176,\n+                 1.63081,\n+               ]\n+        - ct: 3000\n+          ccm: [\n+                 1.80587, 0.27132, -1.07719, -0.67445, 2.55729, -0.88284, -0.11544, -0.50189,\n+                 1.61734,\n+               ]\n+        - ct: 3500\n+          ccm: [\n+                 1.83389, 0.37559, -1.20949, -0.69373, 2.67018, -0.97646, -0.15308, -0.47581,\n+                 1.62889,\n+               ]\n+        - ct: 4000\n+          ccm: [\n+                 1.86271, 0.39818, -1.26089, -0.66884, 2.62966, -0.96082, -0.19298, -0.45096,\n+                 1.64394,\n+               ]\n+        - ct: 4500\n+          ccm: [\n+                 1.78213, 0.40302, -1.18514, -0.61892, 2.47338, -0.85445, -0.24296, -0.38901,\n+                 1.63197,\n+               ]\n+        - ct: 5000\n+          ccm: [\n+                 1.75328, 0.39113, -1.14441, -0.60457, 2.40168, -0.79711, -0.28013, -0.33477,\n+                 1.61489,\n+               ]\n+        - ct: 5500\n+          ccm: [\n+                 1.67989, 0.42725, -1.10714, -0.60576, 2.35811, -0.75235, -0.30859, -0.29885,\n+                 1.60744,\n+               ]\n+        - ct: 6000\n+          ccm: [\n+                 1.62571, 0.45052, -1.07622, -0.60271, 2.32574, -0.72302, -0.31931, -0.27971,\n+                 1.59902,\n+               ]\n+        - ct: 6500\n+          ccm: [\n+                 1.60018, 0.43641, -1.03658, -0.59726, 2.29742, -0.70016, -0.31271, -0.28088,\n+                 1.59358,\n+               ]\n+        - ct: 7000\n+          ccm: [\n+                 1.59364, 0.41222, -1.00585, -0.58752, 2.27837, -0.69085, -0.30352, -0.28323,\n+                 1.58675,\n+               ]\n+        - ct: 7500\n+          ccm: [\n+                 1.59057, 0.40006, -0.99063, -0.58525, 2.26603, -0.68078, -0.29994, -0.28105,\n+                 1.58099,\n+               ]\n+        - ct: 8000\n+          ccm: [\n+                 1.59551, 0.36878, -0.96428, -0.57195, 2.24572, -0.67377, -0.28793, -0.28858,\n+                 1.57651,\n+               ]\n+        - ct: 8500\n+          ccm: [\n+                 1.60576, 0.33929, -0.94504, -0.56235, 2.23411, -0.67176, -0.27817, -0.29265,\n+                 1.57082,\n+               ]\n+        - ct: 9000\n+          ccm: [\n+                 1.60867, 0.30611, -0.91478, -0.54939, 2.21074, -0.66135, -0.26915, -0.30127,\n+                 1.57042,\n+               ]\n+  - GammaOutCorrection:\n+      gamma: 2.2\ndiff --git a/src/ipa/rkisp2/data/meson.build b/src/ipa/rkisp2/data/meson.build\nindex 6b21718e408f..f4dc569db277 100644\n--- a/src/ipa/rkisp2/data/meson.build\n+++ b/src/ipa/rkisp2/data/meson.build\n@@ -2,6 +2,7 @@\n \n conf_files = files([\n     'imx219.yaml',\n+    'imx708.yaml',\n     'uncalibrated.yaml',\n ])\n \n",
    "prefixes": [
        "RFC",
        "19/19"
    ]
}