Patch Detail
Show a patch.
GET /api/1.1/patches/27298/?format=api
{ "id": 27298, "url": "https://patchwork.libcamera.org/api/1.1/patches/27298/?format=api", "web_url": "https://patchwork.libcamera.org/patch/27298/", "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-33-f0e99f035294@ideasonboard.com>", "date": "2026-07-08T09:25:20", "name": "[v4,33/35] ipa: libipa: lsc: Specialize Interpolator for uint8_t", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "8cc70f4d288768cb68f0ddf42e1226c4373ac2b1", "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/27298/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/27298/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/27298/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 0CC0FC3301\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 8 Jul 2026 09:25:45 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id B4BAE660C5;\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 21849660AD\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 8 Jul 2026 11:25:15 +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 7E6471D18;\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=\"YGEEPmFd\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1783502665;\n\tbh=pKxxZ9cajwGg/4XFTEBKJ35/7Bmlg5h/GcltukR9A5Y=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=YGEEPmFdGlxy0Ok/QbREk3oQ/9s/GuDvefSfzdKaAVjAD+9bGOwUYTiAvFyPLwdYx\n\tx0MK+QqGYzHylmL0QO4LnJeem1B2uJ/HzAPSl3VwQKKZcAHz0xd3t30y4zvvP6J9kr\n\tE6nakEk0lY+hvDCJB5Zissid0b+PyfCEyuj+zYqg=", "From": "Jacopo Mondi <jacopo.mondi@ideasonboard.com>", "Date": "Wed, 08 Jul 2026 11:25:20 +0200", "Subject": "[PATCH v4 33/35] ipa: libipa: lsc: Specialize Interpolator for\n\tuint8_t", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "Message-Id": "<20260708-libipa-algorithms-v4-33-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=1736;\n\ti=jacopo.mondi@ideasonboard.com; h=from:subject:message-id;\n\tbh=pKxxZ9cajwGg/4XFTEBKJ35/7Bmlg5h/GcltukR9A5Y=;\n\tb=owEBbQKS/ZANAwAKAXI0Bo8WoVY8AcsmYgBqThdwvs+Wosshqjm/oUrexR4ZOqhR05t/X9loF\n\tFmhr3P57iiJAjMEAAEKAB0WIQS1xD1IgJogio9YOMByNAaPFqFWPAUCak4XcAAKCRByNAaPFqFW\n\tPNKED/9gm2zF7iPWE86wDPBPsSVZ2JlVfX2ObVp96xxFeNk8Y4+UdVwXleG/tjfmS9luHwxaPcY\n\tW3pPI+Ea42Nggyr/QYqyrDJszzrkReHsmt90E0M6RKrTmu/EHZXEJ8eCy+XsZ21GAXt/E4Zredf\n\t+DKjknXRpOhU6+A4fBaXhRP/9sU+p+N2m/0Y2iTVfwvdJdbllu3cmIAcAmh1o2EGLdd5puGK7iy\n\tjZsCRalxHpXIbTm6WzZPHXNys2y3fVTmmjS3lswRg+rXAcqyg9lQKeVI+ngtKoZjHK+dCVhmm9s\n\tcnq68YXHHNjvA0SaJHfzJ3zQ3idp+m1+m09qyXTmTIUYXzlsZ2ZsPXE5Py1jOyH9qNnteRobWsY\n\tcCJCByrgHNWUKHg907zJinWSNo2IPSFYDYnMpo5IpNe1oZKDbRNUJ9vB6mBUqXGrTTMoSpQ8p+N\n\tyg6EUBrZYNXUxIF7CPNq8nndsIGKb39ZmA3QsI1T1tqxlBVvrtE1ihYn9XLIMIRYYgDeGV9yTDf\n\tcdTlQqmkZNALO23NW+6cmpXjViSvlNXbpkXWoOBkfzIRUrzU7np8chtTP7nrrnsYFse8Tamq+b4\n\tTOGWrIZbzWCeaf+NaXi5PI3gqVWn0+cYa0HMMuVJyi5gywihFkTy5+JrnDgK+pTsX21/G0M/fEp\n\tui16eY8ZuVnXTgA==", "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": "The Mali-C55 LSC algorithm uses 8-bit gain values.\n\nSpecialize Interpolator<lsc::Components>> for uint8_t to prevent the\nuint16_t specialization from being selected.\n\nSigned-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>\n---\n src/ipa/libipa/lsc_base.cpp | 11 +++++++++++\n src/ipa/libipa/lsc_base.h | 7 +++++++\n 2 files changed, 18 insertions(+)", "diff": "diff --git a/src/ipa/libipa/lsc_base.cpp b/src/ipa/libipa/lsc_base.cpp\nindex c87e2680d973..a0b78ac5265b 100644\n--- a/src/ipa/libipa/lsc_base.cpp\n+++ b/src/ipa/libipa/lsc_base.cpp\n@@ -63,6 +63,17 @@ namespace lsc {\n } /* namespace lsc */\n \n #ifndef __DOXYGEN__\n+template<>\n+void Interpolator<lsc::Components<uint8_t>>::\n+\tinterpolate(const lsc::Components<uint8_t> &a,\n+\t\t const lsc::Components<uint8_t> &b,\n+\t\t lsc::Components<uint8_t> &dest,\n+\t\t double lambda)\n+{\n+\tfor (auto const &[k, v] : a)\n+\t\tinterpolateVector(v, b.at(k), dest[k], lambda);\n+}\n+\n template<>\n void Interpolator<lsc::Components<uint16_t>>::\n \tinterpolate(const lsc::Components<uint16_t> &a,\ndiff --git a/src/ipa/libipa/lsc_base.h b/src/ipa/libipa/lsc_base.h\nindex a25d951e8ddb..51f3dd91f547 100644\n--- a/src/ipa/libipa/lsc_base.h\n+++ b/src/ipa/libipa/lsc_base.h\n@@ -49,6 +49,13 @@ void interpolateVector(const std::vector<T> &a, const std::vector<T> &b,\n \t\tdest[i] = a[i] * (1.0 - lambda) + b[i] * lambda;\n }\n \n+template<>\n+void Interpolator<lsc::Components<uint8_t>>::\n+\tinterpolate(const lsc::Components<uint8_t> &a,\n+\t\t const lsc::Components<uint8_t> &b,\n+\t\t lsc::Components<uint8_t> &dest,\n+\t\t double lambda);\n+\n template<>\n void Interpolator<lsc::Components<uint16_t>>::\n \tinterpolate(const lsc::Components<uint16_t> &a,\n", "prefixes": [ "v4", "33/35" ] }