Show a patch.

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

{
    "id": 22204,
    "url": "https://patchwork.libcamera.org/api/patches/22204/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/22204/",
    "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": "<20241206101344.767170-13-stefan.klug@ideasonboard.com>",
    "date": "2024-12-06T10:13:34",
    "name": "[v3,12/17] libcamera: rkisp1: Enable the dewarper unconditionally",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "94e59b143e9e346ed23f0169b13830e21ab25baa",
    "submitter": {
        "id": 184,
        "url": "https://patchwork.libcamera.org/api/people/184/?format=api",
        "name": "Stefan Klug",
        "email": "stefan.klug@ideasonboard.com"
    },
    "delegate": {
        "id": 17,
        "url": "https://patchwork.libcamera.org/api/users/17/?format=api",
        "username": "epaul",
        "first_name": "Paul",
        "last_name": "Elder",
        "email": "paul.elder@ideasonboard.com"
    },
    "mbox": "https://patchwork.libcamera.org/patch/22204/mbox/",
    "series": [
        {
            "id": 4854,
            "url": "https://patchwork.libcamera.org/api/series/4854/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=4854",
            "date": "2024-12-06T10:13:22",
            "name": "rkisp1: Fix aspect ratio and ScalerCrop",
            "version": 3,
            "mbox": "https://patchwork.libcamera.org/series/4854/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/22204/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/22204/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 C3FD9BF415\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri,  6 Dec 2024 10:14:26 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 6894166158;\n\tFri,  6 Dec 2024 11:14:26 +0100 (CET)",
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 9C7536614C\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri,  6 Dec 2024 11:14:22 +0100 (CET)",
            "from ideasonboard.com (unknown\n\t[IPv6:2a00:6020:448c:6c00:3543:aebe:e043:ef86])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 41FA0B2B;\n\tFri,  6 Dec 2024 11:13:53 +0100 (CET)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"aBbnTj3z\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1733480033;\n\tbh=SD1MetfQnRDPnrrch3GNJCqw121mp6YT4Qd8TmNiDpU=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=aBbnTj3zZ6TuonWKUiH1vp9yo2IV5sMmyUu2YebbUHL1uzp6Bjb8tGedDeUqCpIQX\n\tE78hGw1FUfBDiOUhdf0gXcvhlY4alx9K91MGgyBhaVcoifYSjry+b0HycN6rsjTwlG\n\tCCPHUiZaRkXw/uLsaTWpUDYDQ+XMcViG1KQrZJeM=",
        "From": "Stefan Klug <stefan.klug@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Cc": "Stefan Klug <stefan.klug@ideasonboard.com>,\n\tJacopo Mondi <jacopo.mondi@ideasonboard.com>",
        "Subject": "[PATCH v3 12/17] libcamera: rkisp1: Enable the dewarper\n\tunconditionally",
        "Date": "Fri,  6 Dec 2024 11:13:34 +0100",
        "Message-ID": "<20241206101344.767170-13-stefan.klug@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20241206101344.767170-1-stefan.klug@ideasonboard.com>",
        "References": "<20241206101344.767170-1-stefan.klug@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": "In configure() and in the future in generateConfiguration() the\ncalculated stream sizes and crop rectangles depend on the dewarper being\nused or not. It is therefore not possible to postpone that decision\nuntil the dewarper gets configured. Enable the dewarper unconditionally\nif it is found and the stream type is not RAW.\n\nSigned-off-by: Stefan Klug <stefan.klug@ideasonboard.com>\nSigned-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>\n---\n src/libcamera/pipeline/rkisp1/rkisp1.cpp | 5 ++++-\n 1 file changed, 4 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/src/libcamera/pipeline/rkisp1/rkisp1.cpp b/src/libcamera/pipeline/rkisp1/rkisp1.cpp\nindex 7f41092ee2d5..2c8d670768b1 100644\n--- a/src/libcamera/pipeline/rkisp1/rkisp1.cpp\n+++ b/src/libcamera/pipeline/rkisp1/rkisp1.cpp\n@@ -865,7 +865,10 @@ int PipelineHandlerRkISP1::configure(Camera *camera, CameraConfiguration *c)\n \t\t\tif (dewarper_ && !isRaw_) {\n \t\t\t\toutputCfgs.push_back(const_cast<StreamConfiguration &>(cfg));\n \t\t\t\tret = dewarper_->configure(cfg, outputCfgs);\n-\t\t\t\tuseDewarper_ = ret ? false : true;\n+\t\t\t\tif (ret)\n+\t\t\t\t\treturn ret;\n+\n+\t\t\t\tuseDewarper_ = true;\n \n \t\t\t\t/*\n \t\t\t\t * Calculate the crop rectangle of the data\n",
    "prefixes": [
        "v3",
        "12/17"
    ]
}