Patch Detail
Show a patch.
GET /api/patches/22489/?format=api
{ "id": 22489, "url": "https://patchwork.libcamera.org/api/patches/22489/?format=api", "web_url": "https://patchwork.libcamera.org/patch/22489/", "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": "<20250109115412.356768-3-stefan.klug@ideasonboard.com>", "date": "2025-01-09T11:53:53", "name": "[v1,02/11] libipa: pwl: Add clear() function", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "0882316f165900f99c1f18c47f6968be5d9542cf", "submitter": { "id": 184, "url": "https://patchwork.libcamera.org/api/people/184/?format=api", "name": "Stefan Klug", "email": "stefan.klug@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/22489/mbox/", "series": [ { "id": 4938, "url": "https://patchwork.libcamera.org/api/series/4938/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=4938", "date": "2025-01-09T11:53:51", "name": "Add Bayesian AWB algorithm to libipa and rkisp1", "version": 1, "mbox": "https://patchwork.libcamera.org/series/4938/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/22489/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/22489/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 61548C32EA\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 9 Jan 2025 11:55:16 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 9498F684EA;\n\tThu, 9 Jan 2025 12:55:15 +0100 (CET)", "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 6C4BA684E0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 9 Jan 2025 12:55:10 +0100 (CET)", "from ideasonboard.com (unknown\n\t[IPv6:2a00:6020:448c:6c00:93b9:eca8:897d:eae6])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id E36E46F3;\n\tThu, 9 Jan 2025 12:54:16 +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=\"IpMUMXep\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1736423657;\n\tbh=4wCwvb9rwqa8z7IgKnIk4/c9q6lnKUjzpR7afccj5/g=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=IpMUMXepxp2KdPXwudx9Ehz7jaSq1XyGciCaugJJWpiCGvZh+cnCY/pXrV5an787L\n\t9x/FcarK5+TcNssCfD9WlXMMLZt4V1q8V8H3t6nWCyRu9cWZ/UHUQ36dBIJDNdngzs\n\tU1HIFQHP5tEAG6BR4Ehvja4Rh2wS/F4kZVt+fCbI=", "From": "Stefan Klug <stefan.klug@ideasonboard.com>", "To": "libcamera-devel@lists.libcamera.org", "Cc": "Stefan Klug <stefan.klug@ideasonboard.com>", "Subject": "[PATCH v1 02/11] libipa: pwl: Add clear() function", "Date": "Thu, 9 Jan 2025 12:53:53 +0100", "Message-ID": "<20250109115412.356768-3-stefan.klug@ideasonboard.com>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20250109115412.356768-1-stefan.klug@ideasonboard.com>", "References": "<20250109115412.356768-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": "Sometimes it is necessary to clear a pwl. Add a function for that.\n\nSigned-off-by: Stefan Klug <stefan.klug@ideasonboard.com>\n---\n src/ipa/libipa/pwl.cpp | 5 +++++\n src/ipa/libipa/pwl.h | 1 +\n 2 files changed, 6 insertions(+)", "diff": "diff --git a/src/ipa/libipa/pwl.cpp b/src/ipa/libipa/pwl.cpp\nindex 88fe2022d66d..3fa005ba92df 100644\n--- a/src/ipa/libipa/pwl.cpp\n+++ b/src/ipa/libipa/pwl.cpp\n@@ -159,6 +159,11 @@ void Pwl::prepend(double x, double y, const double eps)\n * \\return True if there are no points in the function, false otherwise\n */\n \n+/**\n+ * \\fn Pwl::clear()\n+ * \\brief Clear the piecewise linear function\n+ */\n+\n /**\n * \\fn Pwl::size() const\n * \\brief Retrieve the number of points in the piecewise linear function\ndiff --git a/src/ipa/libipa/pwl.h b/src/ipa/libipa/pwl.h\nindex d4ec9f4f18fb..93ced1a39745 100644\n--- a/src/ipa/libipa/pwl.h\n+++ b/src/ipa/libipa/pwl.h\n@@ -49,6 +49,7 @@ public:\n \tvoid append(double x, double y, double eps = 1e-6);\n \n \tbool empty() const { return points_.empty(); }\n+\tvoid clear() { points_.clear(); }\n \tsize_t size() const { return points_.size(); }\n \n \tInterval domain() const;\n", "prefixes": [ "v1", "02/11" ] }