Show a patch.

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

{
    "id": 16278,
    "url": "https://patchwork.libcamera.org/api/patches/16278/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/16278/",
    "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": "<20220620014305.26778-9-laurent.pinchart@ideasonboard.com>",
    "date": "2022-06-20T01:43:01",
    "name": "[libcamera-devel,v4,08/12] ipa: rkisp1: Register algorithms",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "a176845caaba0fad3c27c806f5519722bcd8fd39",
    "submitter": {
        "id": 2,
        "url": "https://patchwork.libcamera.org/api/people/2/?format=api",
        "name": "Laurent Pinchart",
        "email": "laurent.pinchart@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/16278/mbox/",
    "series": [
        {
            "id": 3191,
            "url": "https://patchwork.libcamera.org/api/series/3191/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3191",
            "date": "2022-06-20T01:42:53",
            "name": "Add tuning file support for the RkISP1 IPA module",
            "version": 4,
            "mbox": "https://patchwork.libcamera.org/series/3191/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/16278/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/16278/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 F369DBE173\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 20 Jun 2022 01:43:37 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 977EF65647;\n\tMon, 20 Jun 2022 03:43:37 +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 B726B6563D\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 20 Jun 2022 03:43:28 +0200 (CEST)",
            "from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 45246892;\n\tMon, 20 Jun 2022 03:43:28 +0200 (CEST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1655689417;\n\tbh=M4w1H+jmyVZ2LSQfVgXAT+hHM17N/I3m3Jl9XgRhV38=;\n\th=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:\n\tFrom;\n\tb=aly7WXuYE2OngeqvM3tRHrfIak4y/X+KmVIfCOhTdHDbQ0KU38OH8901ECqD941dK\n\t+7X1MMIDTtkWsr9HrUgXaNPrcDAFPp/WFKmLFU62Ch6q/WZ8AhjokeYxznU8kNlyR8\n\tEd7J+zjOrzp4WaNeOJoPRSKtELDp6iCGBAHrc1QywpVB4mNAgNc9G1dxSdon8TEaN+\n\t6L50Ng+mKpauwtxUvYDxKGs1kD0NgImLSSZQDODcC+iyre4ma/7QKJ1hty+QPcAVML\n\t1B2Gy8P/HZTGs5sT9qvSZ1bYPne+W8Pi3Q1kfM8EyVwHvp8a+h3Lo5EB0QwvVmLyjc\n\tbM8eKHTGjxTcg==",
            "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1655689408;\n\tbh=M4w1H+jmyVZ2LSQfVgXAT+hHM17N/I3m3Jl9XgRhV38=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=M6HFHvBhq9Rm6FPWXWVq8SdSxlXINg0zg8F9w+rp7f9g0J1TNocDM12WBJzyNuxQZ\n\tW0SyzWOJE0B+E1T8ul7gM8mTtlXOBTfP6EpePi4/ScX5H87hcPNaTPs44Pb4zhF8Cz\n\t2zcjsueRSmYfmMBEHdsTe7r+QOAH+ZJ239S2u8mI="
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"M6HFHvBh\"; dkim-atps=neutral",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Mon, 20 Jun 2022 04:43:01 +0300",
        "Message-Id": "<20220620014305.26778-9-laurent.pinchart@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.35.1",
        "In-Reply-To": "<20220620014305.26778-1-laurent.pinchart@ideasonboard.com>",
        "References": "<20220620014305.26778-1-laurent.pinchart@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH v4 08/12] ipa: rkisp1: Register algorithms",
        "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>",
        "From": "Laurent Pinchart via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>",
        "Reply-To": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "To prepare for dynamic instantiation of algorithms from the tuning file,\nregister the algorithms with the Module class.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n src/ipa/rkisp1/algorithms/agc.cpp | 2 ++\n src/ipa/rkisp1/algorithms/awb.cpp | 2 ++\n src/ipa/rkisp1/algorithms/blc.cpp | 2 ++\n 3 files changed, 6 insertions(+)",
    "diff": "diff --git a/src/ipa/rkisp1/algorithms/agc.cpp b/src/ipa/rkisp1/algorithms/agc.cpp\nindex 9a12e93ae4c7..6bfe4375b396 100644\n--- a/src/ipa/rkisp1/algorithms/agc.cpp\n+++ b/src/ipa/rkisp1/algorithms/agc.cpp\n@@ -355,6 +355,8 @@ void Agc::prepare(IPAContext &context, rkisp1_params_cfg *params)\n \tparams->module_en_update |= RKISP1_CIF_ISP_MODULE_HST;\n }\n \n+REGISTER_IPA_ALGORITHM(Agc)\n+\n } /* namespace ipa::rkisp1::algorithms */\n \n } /* namespace libcamera */\ndiff --git a/src/ipa/rkisp1/algorithms/awb.cpp b/src/ipa/rkisp1/algorithms/awb.cpp\nindex 884413828d1d..852d8559aa8a 100644\n--- a/src/ipa/rkisp1/algorithms/awb.cpp\n+++ b/src/ipa/rkisp1/algorithms/awb.cpp\n@@ -175,6 +175,8 @@ void Awb::process([[maybe_unused]] IPAContext &context,\n \t\t\t      << \" and for blue: \" << context.frameContext.awb.gains.blue;\n }\n \n+REGISTER_IPA_ALGORITHM(Awb)\n+\n } /* namespace ipa::rkisp1::algorithms */\n \n } /* namespace libcamera */\ndiff --git a/src/ipa/rkisp1/algorithms/blc.cpp b/src/ipa/rkisp1/algorithms/blc.cpp\nindex 0c5948ff2c02..ea9611bd712e 100644\n--- a/src/ipa/rkisp1/algorithms/blc.cpp\n+++ b/src/ipa/rkisp1/algorithms/blc.cpp\n@@ -52,6 +52,8 @@ void BlackLevelCorrection::prepare(IPAContext &context,\n \tparams->module_cfg_update |= RKISP1_CIF_ISP_MODULE_BLS;\n }\n \n+REGISTER_IPA_ALGORITHM(BlackLevelCorrection)\n+\n } /* namespace ipa::rkisp1::algorithms */\n \n } /* namespace libcamera */\n",
    "prefixes": [
        "libcamera-devel",
        "v4",
        "08/12"
    ]
}