Show a patch.

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

{
    "id": 27297,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/27297/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/27297/",
    "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": "<20260708-libipa-algorithms-v4-32-f0e99f035294@ideasonboard.com>",
    "date": "2026-07-08T09:25:19",
    "name": "[v4,32/35] ipa: libipa: lsc: Rename sampleForCrop to resampleLscData",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "f0fb1a8ee220efd2991dc6af11fa078cd71ac22a",
    "submitter": {
        "id": 143,
        "url": "https://patchwork.libcamera.org/api/1.1/people/143/?format=api",
        "name": "Jacopo Mondi",
        "email": "jacopo.mondi@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/27297/mbox/",
    "series": [
        {
            "id": 6046,
            "url": "https://patchwork.libcamera.org/api/1.1/series/6046/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=6046",
            "date": "2026-07-08T09:24:47",
            "name": "ipa: libipa: Introduce libipa algorithms",
            "version": 4,
            "mbox": "https://patchwork.libcamera.org/series/6046/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/27297/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/27297/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 6FFF5C333D\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed,  8 Jul 2026 09:25:44 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 15BA0660D8;\n\tWed,  8 Jul 2026 11:25:44 +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 D15AA660A2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed,  8 Jul 2026 11:25:14 +0200 (CEST)",
            "from [192.168.1.182] (93-46-82-201.ip106.fastwebnet.it\n\t[93.46.82.201])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 42EA83FD4;\n\tWed,  8 Jul 2026 11:24:25 +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=\"iu5xNLwM\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1783502665;\n\tbh=meGdcwZyy3+EywvA9mHqxiAiLqYzviZC14BmcAakpzk=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=iu5xNLwM4OH94BnDYh9rCFkdD9p6ZOJJBVAcUOQtUsHRLbryoe0zwHEiNdJzZtzAJ\n\tFmq8NqKy+0+Q06AIN5JodQCWY7/AOn5q7zbfiNEHurFdDPhmfv5FfNUPq4/QI3mtwo\n\tiJO1aKcNHRMFQ1IIIEa8EaOc+XyJx2vReeXpwxic=",
        "From": "Jacopo Mondi <jacopo.mondi@ideasonboard.com>",
        "Date": "Wed, 08 Jul 2026 11:25:19 +0200",
        "Subject": "[PATCH v4 32/35] ipa: libipa: lsc: Rename sampleForCrop to\n\tresampleLscData",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260708-libipa-algorithms-v4-32-f0e99f035294@ideasonboard.com>",
        "References": "<20260708-libipa-algorithms-v4-0-f0e99f035294@ideasonboard.com>",
        "In-Reply-To": "<20260708-libipa-algorithms-v4-0-f0e99f035294@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org, \n\tStefan Klug <stefan.klug@ideasonboard.com>",
        "Cc": "Jacopo Mondi <jacopo.mondi@ideasonboard.com>",
        "X-Mailer": "b4 0.14.3",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=4426;\n\ti=jacopo.mondi@ideasonboard.com; h=from:subject:message-id;\n\tbh=meGdcwZyy3+EywvA9mHqxiAiLqYzviZC14BmcAakpzk=;\n\tb=owEBbQKS/ZANAwAKAXI0Bo8WoVY8AcsmYgBqThdwb6tZ9q2McfZLJvbJHbe41sW0bUTN1gVan\n\t9CzinBJsBiJAjMEAAEKAB0WIQS1xD1IgJogio9YOMByNAaPFqFWPAUCak4XcAAKCRByNAaPFqFW\n\tPJBmEAC1Rob3rp3W1PEK4zgW8lAR5ytNr/pYx14IP/qRx0Y3oNqsL+eQQxmJaRKKpTcN2zt6WlM\n\ts+B/lZTD2/skk0SDSVH6Fvyb4OYOAol51cxvAmraW1qo9x/Sio1tavWEbnexPZaTTakj6JuSBmj\n\tpUYgqIXrmpEGKQ5wkCCZPMXtTkrOIdEijKiu0B2OlQwi24lokmOBffqLxx6Cr0oOnhEEGJXVoql\n\tHS2+/Jq3jc9bwRkqTLf8IRWK7Xh356BE2o/uYL6QFzLB6x7D+p0ypWODZ4Hq6YXi6HjyQafDGJy\n\tPxwdwh8KzHok+VLvfXHnQVrC7MhxH19pL1gtPjUMZ0E9sZfTwMhAXtFuni+ytLPRpce817GTkTy\n\t4xq2XhJiwgIrc07Z8aKcY5xRUgQeGmwl47Cm6o+t4T/7r9BVHb1EO83//YYv2FQcQkL1oiKoftg\n\t0vK6hwNE/SZY6hT0raCnh7JC/4Eecx9DVUQEeWQGC25amDm1+dGnw5D/iFpPLtuNwwojdE4Kl0P\n\tMXQNutwTpuhl/fNCOPtudYOs78yee4jPw1CBgy5kKURtUxAnzm+n+29/8CtUOMKj9XQHDQ5rJc+\n\tOIA00W6zQPBvTN7o/cFY6jR/K9QHR/OtouyJUNPE44Q7bomBti0DUAVhadhO4UyEA83jnuGxbkz\n\t02NbeMB/v2S6Q5A==",
        "X-Developer-Key": "i=jacopo.mondi@ideasonboard.com; a=openpgp;\n\tfpr=72392EDC88144A65C701EA9BA5826A2587AD026B",
        "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": "Rename the function to a more precise name.\n\nSigned-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>\n---\n src/ipa/libipa/lsc.cpp            | 2 +-\n src/ipa/libipa/lsc.h              | 2 +-\n src/ipa/libipa/lsc_base.cpp       | 2 +-\n src/ipa/libipa/lsc_base.h         | 4 ++--\n src/ipa/libipa/lsc_polynomial.cpp | 2 +-\n src/ipa/libipa/lsc_polynomial.h   | 4 ++--\n src/ipa/libipa/lsc_table.h        | 6 +++---\n 7 files changed, 11 insertions(+), 11 deletions(-)",
    "diff": "diff --git a/src/ipa/libipa/lsc.cpp b/src/ipa/libipa/lsc.cpp\nindex f5646937c60a..0ce40c09caed 100644\n--- a/src/ipa/libipa/lsc.cpp\n+++ b/src/ipa/libipa/lsc.cpp\n@@ -269,7 +269,7 @@ void LscAlgorithmBase::process(lsc::FrameContext &context, ControlList &metadata\n  * analogCrop on a grid specified by \\a xPos and \\a yPos. Re-sampling of\n  * LSC data is currently supported by polynomial-based LSC tables.\n  *\n- * \\sa LscImplementation::sampleForCrop\n+ * \\sa LscImplementation::resampleLscData\n  *\n  * \\return 0 on success, a negative error code otherwise\n  */\ndiff --git a/src/ipa/libipa/lsc.h b/src/ipa/libipa/lsc.h\nindex 6dc76b6572b3..1f46555f9bf0 100644\n--- a/src/ipa/libipa/lsc.h\n+++ b/src/ipa/libipa/lsc.h\n@@ -98,7 +98,7 @@ public:\n \t{\n \t\tLOG(Lsc, Debug) << \"Sample Lsc data for \" << analogCrop;\n \t\tlsc::ComponentsMap<T> lscData =\n-\t\t\timpl_->sampleForCrop(analogCrop, xPos, yPos);\n+\t\t\timpl_->resampleLscData(analogCrop, xPos, yPos);\n \n \t\t/*\n \t\t * Retain a copy of the components table.\ndiff --git a/src/ipa/libipa/lsc_base.cpp b/src/ipa/libipa/lsc_base.cpp\nindex 235f11e8c53b..c87e2680d973 100644\n--- a/src/ipa/libipa/lsc_base.cpp\n+++ b/src/ipa/libipa/lsc_base.cpp\n@@ -127,7 +127,7 @@ void Interpolator<lsc::Components<uint16_t>>::\n  */\n \n /**\n- * \\fn LscImplementation::sampleForCrop\n+ * \\fn LscImplementation::resampleLscData\n  * \\brief Re-sample the LSC components for \\a cropRectangle\n  * \\param[in] cropRectangle The sensor analogue crop rectangle\n  * \\param[in] xPos List of horizontal positions of the LSC grid nodes\ndiff --git a/src/ipa/libipa/lsc_base.h b/src/ipa/libipa/lsc_base.h\nindex 4edcb2637d1b..a25d951e8ddb 100644\n--- a/src/ipa/libipa/lsc_base.h\n+++ b/src/ipa/libipa/lsc_base.h\n@@ -74,8 +74,8 @@ public:\n \t\t\t\t const LscDescriptor &descriptor) = 0;\n \n \tvirtual lsc::ComponentsMap<typename U::QuantizedType>\n-\tsampleForCrop(const Rectangle &cropRectangle,\n-\t\t      std::vector<double> xPos, std::vector<double> yPos);\n+\tresampleLscData(const Rectangle &cropRectangle,\n+\t\t\tstd::vector<double> xPos, std::vector<double> yPos) = 0;\n };\n \n } /* namespace ipa */\ndiff --git a/src/ipa/libipa/lsc_polynomial.cpp b/src/ipa/libipa/lsc_polynomial.cpp\nindex 7d4381973646..b88048e873d9 100644\n--- a/src/ipa/libipa/lsc_polynomial.cpp\n+++ b/src/ipa/libipa/lsc_polynomial.cpp\n@@ -190,7 +190,7 @@ int LscPolynomialBase::parseLscData(const ValueNode &sets,\n  */\n \n /**\n- * \\fn LscPolynomial::sampleForCrop()\n+ * \\fn LscPolynomial::resampleLscData()\n  * \\brief Re-sample the LSC components for \\a cropRectangle\n  * \\param[in] cropRectangle The sensor analogue crop rectangle\n  * \\param[in] xPos List of horizontal positions of the LSC grid nodes\ndiff --git a/src/ipa/libipa/lsc_polynomial.h b/src/ipa/libipa/lsc_polynomial.h\nindex a84a736734e1..00bbd068d537 100644\n--- a/src/ipa/libipa/lsc_polynomial.h\n+++ b/src/ipa/libipa/lsc_polynomial.h\n@@ -78,8 +78,8 @@ public:\n \t}\n \n \tlsc::ComponentsMap<T>\n-\tsampleForCrop(const Rectangle &cropRectangle,\n-\t\t      std::vector<double> xPos, std::vector<double> yPos) override\n+\tresampleLscData(const Rectangle &cropRectangle,\n+\t\t\tstd::vector<double> xPos, std::vector<double> yPos) override\n \t{\n \t\tlsc::ComponentsMap<T> components;\n \ndiff --git a/src/ipa/libipa/lsc_table.h b/src/ipa/libipa/lsc_table.h\nindex fe4e133060a6..c3d6c6b95dcd 100644\n--- a/src/ipa/libipa/lsc_table.h\n+++ b/src/ipa/libipa/lsc_table.h\n@@ -50,9 +50,9 @@ public:\n \t}\n \n \tlsc::ComponentsMap<T>\n-\tsampleForCrop([[maybe_unused]] const Rectangle &cropRectangle,\n-\t\t      [[maybe_unused]] std::vector<double> xPos,\n-\t\t      [[maybe_unused]] std::vector<double> yPos) override\n+\tresampleLscData([[maybe_unused]] const Rectangle &cropRectangle,\n+\t\t\t[[maybe_unused]] std::vector<double> xPos,\n+\t\t\t[[maybe_unused]] std::vector<double> yPos) override\n \t{\n \t\tLOG(LscTable, Warning)\n \t\t\t<< \"Tabular LSC data doesn't support resampling\";\n",
    "prefixes": [
        "v4",
        "32/35"
    ]
}