Show a patch.

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

{
    "id": 25141,
    "url": "https://patchwork.libcamera.org/api/patches/25141/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/25141/",
    "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": "<20251120233347.5046-18-bryan.odonoghue@linaro.org>",
    "date": "2025-11-20T23:33:41",
    "name": "[v4,17/23] libcamera: software_isp: lut: Change default Gamma to 1.0/2.2",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "f7ef2cca6548406f2f24e46a82b547e3594d63d5",
    "submitter": {
        "id": 175,
        "url": "https://patchwork.libcamera.org/api/people/175/?format=api",
        "name": "Bryan O'Donoghue",
        "email": "bryan.odonoghue@linaro.org"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/25141/mbox/",
    "series": [
        {
            "id": 5600,
            "url": "https://patchwork.libcamera.org/api/series/5600/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=5600",
            "date": "2025-11-20T23:33:24",
            "name": "Add GLES 2.0 GPUISP to libcamera",
            "version": 4,
            "mbox": "https://patchwork.libcamera.org/series/5600/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/25141/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/25141/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 48B58BD80A\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 20 Nov 2025 23:34:28 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id E6EA860B31;\n\tFri, 21 Nov 2025 00:34:27 +0100 (CET)",
            "from mail-wr1-x430.google.com (mail-wr1-x430.google.com\n\t[IPv6:2a00:1450:4864:20::430])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 1695C60AB1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 21 Nov 2025 00:34:25 +0100 (CET)",
            "by mail-wr1-x430.google.com with SMTP id\n\tffacd0b85a97d-429c7869704so1235286f8f.2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 20 Nov 2025 15:34:25 -0800 (PST)",
            "from inspiron14p-linux.ht.home (188-141-3-146.dynamic.upc.ie.\n\t[188.141.3.146]) by smtp.gmail.com with ESMTPSA id\n\tffacd0b85a97d-42cb7fa3a81sm7984139f8f.26.2025.11.20.15.34.22\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 20 Nov 2025 15:34:23 -0800 (PST)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (2048-bit key;\n\tunprotected) header.d=linaro.org header.i=@linaro.org\n\theader.b=\"WuZjIvgr\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=linaro.org; s=google; t=1763681664; x=1764286464;\n\tdarn=lists.libcamera.org; \n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:from:to:cc:subject:date\n\t:message-id:reply-to;\n\tbh=mmy0r+9dV3Qznnotmc5WkFhDt1dkOI+Qma0jEOM5Zrc=;\n\tb=WuZjIvgrR5CdD2WSWGDmQYr4xxvt8Vzda09P/4i+DYsWwc9dChzwfR6PiBTghoS7k8\n\tlobDuArlcinyBTnYIrHDQxl7E9aoJpAsFCIf4hXJ2xSrXE0J2GJqqNhkP25Q5x5PZCU8\n\t5Zo7fgEL+/nvOIX6LjwpIq0g0qe+8NIRGcYF347FsUGKZgFkdXNNCsVmpvbJsv/JQBk8\n\tqigi9CvhftjKRPgMzkh76gGxXgViWNHGsYV9INqglTXEIXQ1hHDmnIxIPTfpAM0nBCo8\n\tRpa+RSCwDP/R+pgNKjJ4Rx2xrcuisd416ptAZPEEZmEHEEnrFJtWYNWXuMzW75CseLt0\n\tzD0w==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1763681664; x=1764286464;\n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n\t:to:cc:subject:date:message-id:reply-to;\n\tbh=mmy0r+9dV3Qznnotmc5WkFhDt1dkOI+Qma0jEOM5Zrc=;\n\tb=ScfMNjj1xeGsTTTKWN5S6ZE7/WNWL32REywwiBwrtJtTLG+kZOJ3lt0+XqpWvyKgVA\n\tW9wG43D4GTActe/YW0tjnSfY+HNuBrMPcFLkiL+rGTvzznkEVylP5mTMRjeeWxZemKGg\n\tYfxGD6Uwf6J8zPJO+Biyvnk6D+t3WAlpkwdmQPB3aQ7O+dZCvsodjfEYgo4lswt7yJ23\n\ti7ZHST1c72/9jZvq8hHXl9oe6xajICLrfItHPGcjFByzEUSEgaLhUkjm5IbAvmOWhTAf\n\tdbQypHhcNgz6777V+RO1mH7+QTttIUcGAmdkhgQy7OecdKxBxn7KOEAixp1IdZvmPVqY\n\t963g==",
        "X-Gm-Message-State": "AOJu0Yxa+a6ETBhyeWQBM6E7lMFv8PGVLPHJDxwTz+RNA+Elklxo00F9\n\tvcolFA2kmC67JrBZsQYCvCjCzjPyrRLGDphgM7mP3Jd189TRmLCXFMBmuoN2ElSlDsZjiP85RF6\n\tmZiR9H2c=",
        "X-Gm-Gg": "ASbGncu9K8HRBA3LENdbqTPdGhdBTi4SP/ick0p+SfNXJSCfdudJx2C2Um8xHWijZ1E\n\tspNVoqFAVlxhmBbh/SDiNolMv+pzzd2DH8rVHhF80gu7ceBqZ7d9MBLf1ZJ4+zvcrLqFzN1pbpS\n\tEZnYIFf+pf/hGWVK5PVivJvB19NercgebMY+HH3xY23UBEKKHbOLBIzL4fyYCzlhM7iKYZ1Rdcg\n\tlj+5rKWTeb9/cO3gAIAGt+WSTHeHO+DkzvArxXFEBdgZawiMpXLoJBKUfehlXO/6OksQ0N2ylJ2\n\t5xeZpBrkjSN9qBqTWxMgrjOjdL4OgkBYpQUFSpE9WgZ6DFVDcqzBb6t9mGBLlsMUG2xd6g3UcQw\n\tYKY4a7Q+D2lPyfIAf1Sr0xWvq0YQaddUCMfjZPISm4iMdxOBWH2wfFKlKxFDwyezTZVrS4QRry6\n\tzJUDszVSvWWhN5U4fDiHj6qboGCyIvoGfomZFJAhUDu/u8OxgZG8Yu7xaA3jrUkq4riNs=",
        "X-Google-Smtp-Source": "AGHT+IH/9+fg18mKdVDpnCeyVgKHZpbfDEoxBwZsSrdvahkXu1ws53ckJKq6eOA5I8gpN1yJGrUUvQ==",
        "X-Received": "by 2002:a05:6000:144c:b0:42b:2f3d:2967 with SMTP id\n\tffacd0b85a97d-42cc1d3a3cbmr83387f8f.51.1763681664325; \n\tThu, 20 Nov 2025 15:34:24 -0800 (PST)",
        "From": "Bryan O'Donoghue <bryan.odonoghue@linaro.org>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Cc": "pavel@ucw.cz,\n\tBryan O'Donoghue <bryan.odonoghue@linaro.org>",
        "Subject": "[PATCH v4 17/23] libcamera: software_isp: lut: Change default Gamma\n\tto 1.0/2.2",
        "Date": "Thu, 20 Nov 2025 23:33:41 +0000",
        "Message-ID": "<20251120233347.5046-18-bryan.odonoghue@linaro.org>",
        "X-Mailer": "git-send-email 2.51.2",
        "In-Reply-To": "<20251120233347.5046-1-bryan.odonoghue@linaro.org>",
        "References": "<20251120233347.5046-1-bryan.odonoghue@linaro.org>",
        "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": "Change the default softisp Gamma from 0.5 to 1.0/2.2.\n\nSigned-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>\n---\n src/ipa/simple/algorithms/lut.cpp | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/src/ipa/simple/algorithms/lut.cpp b/src/ipa/simple/algorithms/lut.cpp\nindex 9aaab54f1..7f223e812 100644\n--- a/src/ipa/simple/algorithms/lut.cpp\n+++ b/src/ipa/simple/algorithms/lut.cpp\n@@ -35,7 +35,7 @@ int Lut::configure(IPAContext &context,\n \t\t   [[maybe_unused]] const IPAConfigInfo &configInfo)\n {\n \t/* Gamma value is fixed */\n-\tcontext.configuration.gamma = 0.5;\n+\tcontext.configuration.gamma = 1.0/2.2;\n \tcontext.activeState.knobs.contrast = std::optional<double>();\n \tupdateGammaTable(context);\n \n",
    "prefixes": [
        "v4",
        "17/23"
    ]
}