Show a patch.

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

{
    "id": 14763,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/14763/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/14763/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/1.1/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": "<20211125054259.24792-3-jeanmichel.hautbois@ideasonboard.com>",
    "date": "2021-11-25T05:42:50",
    "name": "[libcamera-devel,v5,02/11] ipa: rkisp1: Pass IPASettings at init call",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "e593063bd3eed1f8d03bf6676f4a2bee6d09da58",
    "submitter": {
        "id": 75,
        "url": "https://patchwork.libcamera.org/api/1.1/people/75/?format=api",
        "name": "Jean-Michel Hautbois",
        "email": "jeanmichel.hautbois@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/14763/mbox/",
    "series": [
        {
            "id": 2752,
            "url": "https://patchwork.libcamera.org/api/1.1/series/2752/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=2752",
            "date": "2021-11-25T05:42:48",
            "name": "Introduce AGC for RkISP1",
            "version": 5,
            "mbox": "https://patchwork.libcamera.org/series/2752/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/14763/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/14763/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 1171CBF415\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 25 Nov 2021 05:43:12 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 929AD6043C;\n\tThu, 25 Nov 2021 06:43:10 +0100 (CET)",
            "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 5974A60231\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 25 Nov 2021 06:43:04 +0100 (CET)",
            "from tatooine.ideasonboard.com (unknown\n\t[IPv6:2a01:e0a:169:7140:d9a5:5e40:3323:d95])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 013901010;\n\tThu, 25 Nov 2021 06:43:03 +0100 (CET)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"bvqxsdhi\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1637818984;\n\tbh=YehKf1iayUezpPnKMAd/oOrQ48+itY7/+GNTbzUaglE=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=bvqxsdhihwqP81ntlblMo+GyckTkRCBG0lbzKBP5aUzyV6l9KItC2f9EMqTKnRyK2\n\tS1m3Axf6tzykaGzfCEiQv9EkZ2ajlM3BEYoGESxxp93b+bWMvbMdHnlIIvHQyKyVgH\n\thVch0kX9ROZ5KFFpfMjeYo4GiGO09b/JNJOv76fc=",
        "From": "Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Thu, 25 Nov 2021 06:42:50 +0100",
        "Message-Id": "<20211125054259.24792-3-jeanmichel.hautbois@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.32.0",
        "In-Reply-To": "<20211125054259.24792-1-jeanmichel.hautbois@ideasonboard.com>",
        "References": "<20211125054259.24792-1-jeanmichel.hautbois@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH v5 02/11] ipa: rkisp1: Pass IPASettings at\n\tinit call",
        "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": "When the IPA is initialized, it will need to know the sensor model\nused in order to properly call CameraSensorHelper for the analogue gain.\nModify the init definition in the pipeline handler and in the IPA as\nwell as the mojo interface to pass the IPASettings.\n\nSigned-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>\nReviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\nReviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n---\n include/libcamera/ipa/rkisp1.mojom       | 4 +++-\n src/ipa/rkisp1/rkisp1.cpp                | 5 +++--\n src/libcamera/pipeline/rkisp1/rkisp1.cpp | 2 +-\n 3 files changed, 7 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/include/libcamera/ipa/rkisp1.mojom b/include/libcamera/ipa/rkisp1.mojom\nindex cae757ea..a6991d4f 100644\n--- a/include/libcamera/ipa/rkisp1.mojom\n+++ b/include/libcamera/ipa/rkisp1.mojom\n@@ -29,7 +29,9 @@ struct RkISP1Action {\n };\n \n interface IPARkISP1Interface {\n-\tinit(uint32 hwRevision) => (int32 ret);\n+\tinit(libcamera.IPASettings settings,\n+\t     uint32 hwRevision)\n+\t\t=> (int32 ret);\n \tstart() => (int32 ret);\n \tstop();\n \ndiff --git a/src/ipa/rkisp1/rkisp1.cpp b/src/ipa/rkisp1/rkisp1.cpp\nindex bf2c13b6..7ecbf8ae 100644\n--- a/src/ipa/rkisp1/rkisp1.cpp\n+++ b/src/ipa/rkisp1/rkisp1.cpp\n@@ -34,7 +34,7 @@ namespace ipa::rkisp1 {\n class IPARkISP1 : public IPARkISP1Interface\n {\n public:\n-\tint init(unsigned int hwRevision) override;\n+\tint init(const IPASettings &settings, unsigned int hwRevision) override;\n \tint start() override;\n \tvoid stop() override {}\n \n@@ -75,7 +75,8 @@ private:\n \tunsigned int hwHistogramWeightGridsSize_;\n };\n \n-int IPARkISP1::init(unsigned int hwRevision)\n+int IPARkISP1::init([[maybe_unused]] const IPASettings &settings,\n+\t\t    unsigned int hwRevision)\n {\n \t/* \\todo Add support for other revisions */\n \tswitch (hwRevision) {\ndiff --git a/src/libcamera/pipeline/rkisp1/rkisp1.cpp b/src/libcamera/pipeline/rkisp1/rkisp1.cpp\nindex 98008862..6cdc4c03 100644\n--- a/src/libcamera/pipeline/rkisp1/rkisp1.cpp\n+++ b/src/libcamera/pipeline/rkisp1/rkisp1.cpp\n@@ -319,7 +319,7 @@ int RkISP1CameraData::loadIPA(unsigned int hwRevision)\n \tipa_->queueFrameAction.connect(this,\n \t\t\t\t       &RkISP1CameraData::queueFrameAction);\n \n-\tint ret = ipa_->init(hwRevision);\n+\tint ret = ipa_->init(IPASettings{ \"\", sensor_->model() }, hwRevision);\n \tif (ret < 0) {\n \t\tLOG(RkISP1, Error) << \"IPA initialization failure\";\n \t\treturn ret;\n",
    "prefixes": [
        "libcamera-devel",
        "v5",
        "02/11"
    ]
}