Patch Detail
Show a patch.
GET /api/patches/21477/?format=api
{ "id": 21477, "url": "https://patchwork.libcamera.org/api/patches/21477/?format=api", "web_url": "https://patchwork.libcamera.org/patch/21477/", "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": "<20241002161933.247091-7-stefan.klug@ideasonboard.com>", "date": "2024-10-02T16:19:24", "name": "[v1,6/8] ipa: libipa: Add data accessor to Histogram", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "b34903de05508966a25aa5da59d0ec69e212ec8a", "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/21477/mbox/", "series": [ { "id": 4648, "url": "https://patchwork.libcamera.org/api/series/4648/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=4648", "date": "2024-10-02T16:19:18", "name": "Add support for IPA debugging metadata", "version": 1, "mbox": "https://patchwork.libcamera.org/series/4648/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/21477/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/21477/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 D8417BD80A\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 2 Oct 2024 16:20:34 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 7C04A6352A;\n\tWed, 2 Oct 2024 18:20:34 +0200 (CEST)", "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 2DAE56352A\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 2 Oct 2024 18:20:32 +0200 (CEST)", "from ideasonboard.com (unknown\n\t[IPv6:2a00:6020:448c:6c00:b246:b33f:c662:8ae1])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id F01391BC7;\n\tWed, 2 Oct 2024 18:18:58 +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=\"AfamQfPx\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1727885939;\n\tbh=eKtLY3QBGZK4eCYQ44bf5E8qhoHSYhXKt5FgzFB8w7Q=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=AfamQfPxA+ENuKL72SD3QotHcCIiAy2JWMJwIn8i4RIFH9giJf152E7DLOCoXrP2y\n\tPkkLPTcsXvhls8tGPQzAM7wNiTh6XYzVTc5mbHzvipXWacr42sRcH57U3EMAD+6HX3\n\t7/xLfh8lwmKEc6A7ovcln78mo67p+grsK5tIE6xs=", "From": "Stefan Klug <stefan.klug@ideasonboard.com>", "To": "libcamera-devel@lists.libcamera.org", "Cc": "Stefan Klug <stefan.klug@ideasonboard.com>", "Subject": "[PATCH v1 6/8] ipa: libipa: Add data accessor to Histogram", "Date": "Wed, 2 Oct 2024 18:19:24 +0200", "Message-ID": "<20241002161933.247091-7-stefan.klug@ideasonboard.com>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20241002161933.247091-1-stefan.klug@ideasonboard.com>", "References": "<20241002161933.247091-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": "For debugging purposes it is helpful to access the internal data of the\nhistogram. Add an accessor for that.\n\nSigned-off-by: Stefan Klug <stefan.klug@ideasonboard.com>\n---\n src/ipa/libipa/histogram.cpp | 6 ++++++\n src/ipa/libipa/histogram.h | 1 +\n 2 files changed, 7 insertions(+)", "diff": "diff --git a/src/ipa/libipa/histogram.cpp b/src/ipa/libipa/histogram.cpp\nindex 5fbfadf5e4e1..10e44b54a0cf 100644\n--- a/src/ipa/libipa/histogram.cpp\n+++ b/src/ipa/libipa/histogram.cpp\n@@ -62,6 +62,12 @@ Histogram::Histogram(Span<const uint32_t> data)\n * \\return Number of bins\n */\n \n+/**\n+ * \\fn Histogram::data()\n+ * \\brief Retrieve the internal data\n+ * \\return The data\n+ */\n+\n /**\n * \\fn Histogram::total()\n * \\brief Retrieve the total number of values in the data set\ndiff --git a/src/ipa/libipa/histogram.h b/src/ipa/libipa/histogram.h\nindex 6fd641683694..91ce05f17d9f 100644\n--- a/src/ipa/libipa/histogram.h\n+++ b/src/ipa/libipa/histogram.h\n@@ -36,6 +36,7 @@ public:\n \t}\n \n \tsize_t bins() const { return cumulative_.size() - 1; }\n+\tconst std::vector<uint64_t> &data() const { return cumulative_; }\n \tuint64_t total() const { return cumulative_[cumulative_.size() - 1]; }\n \tuint64_t cumulativeFrequency(double bin) const;\n \tdouble quantile(double q, uint32_t first = 0, uint32_t last = UINT_MAX) const;\n", "prefixes": [ "v1", "6/8" ] }