{"id":27642,"url":"https://patchwork.libcamera.org/api/patches/27642/?format=json","web_url":"https://patchwork.libcamera.org/patch/27642/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260805-libipa-algorithms-v7-19-7425b5b795d4@ideasonboard.com>","date":"2026-08-05T16:13:01","name":"[v7,19/32] ipa: libipa: lsc_base: Add sampleForCrop documentation","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"088ffed4f35d6ebfb7aa5a607ee3e4baa48a4a83","submitter":{"id":143,"url":"https://patchwork.libcamera.org/api/people/143/?format=json","name":"Jacopo Mondi","email":"jacopo.mondi@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/27642/mbox/","series":[{"id":6110,"url":"https://patchwork.libcamera.org/api/series/6110/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=6110","date":"2026-08-05T16:12:42","name":"ipa: libipa: Introduce libipa algorithms","version":7,"mbox":"https://patchwork.libcamera.org/series/6110/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/27642/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/27642/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 C6CC5C3344\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed,  5 Aug 2026 16:13:53 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 3659F68174;\n\tWed,  5 Aug 2026 18:13:53 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id C9C2368139\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed,  5 Aug 2026 18:13:36 +0200 (CEST)","from [192.168.125.177] (mob-109-113-25-35.net.vodafone.it\n\t[109.113.25.35])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 1745739B6;\n\tWed,  5 Aug 2026 18:12:26 +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=\"FU6SYaHm\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1785946346;\n\tbh=WYRREtMMsGnWekfpemz4LN4fohagCWU8KMsfNpvYOME=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=FU6SYaHmFr3as/44flwkg3FtpKa40n7Pz27u3Zrq4pYnPwkSOUzvy6y/roZiErK0T\n\tcUKpf0Pv22hBLf6tf5VbQL7pn17I9pfukHWJRx3OoDjgNmkFs1JcG03vPmYfQlnKxe\n\tXHeaYAaMEfd9ROTkqBWBIPmUbEerNS/g8C0NXVw4=","From":"Jacopo Mondi <jacopo.mondi@ideasonboard.com>","Date":"Wed, 05 Aug 2026 18:13:01 +0200","Subject":"[PATCH v7 19/32] ipa: libipa: lsc_base: Add sampleForCrop\n\tdocumentation","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"7bit","Message-Id":"<20260805-libipa-algorithms-v7-19-7425b5b795d4@ideasonboard.com>","References":"<20260805-libipa-algorithms-v7-0-7425b5b795d4@ideasonboard.com>","In-Reply-To":"<20260805-libipa-algorithms-v7-0-7425b5b795d4@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org, \n\tStefan Klug <stefan.klug@ideasonboard.com>, \n\tMilan Zamazal <mzamazal@redhat.com>","Cc":"Jacopo Mondi <jacopo.mondi@ideasonboard.com>","X-Mailer":"b4 0.16-dev","X-Developer-Signature":"v=1; a=openpgp-sha256; l=1459;\n\ti=jacopo.mondi@ideasonboard.com; h=from:subject:message-id;\n\tbh=WYRREtMMsGnWekfpemz4LN4fohagCWU8KMsfNpvYOME=;\n\tb=owEBbQKS/ZANAwAKAXI0Bo8WoVY8AcsmYgBqc2EfLZhGSiAn6+wiG5mnbncHJ6C/L3atCzBYD\n\toQ4CZGdweOJAjMEAAEKAB0WIQS1xD1IgJogio9YOMByNAaPFqFWPAUCanNhHwAKCRByNAaPFqFW\n\tPPU5EACjbDOUYZoCWdoLforNCO7BPMDpzJZDXvWTVFj0+8GRDrMsYZ3kphNmsaXoiXmCuM4xwq5\n\tb2V+BhtAkmasSmUPCU1feh1jcH2d6Cby1rl3l9g28xbj3Np0Ea5QpdWejp2VewhSj7BT6puePOr\n\tqXKQwYmtLqWY2kDT/6OkhRuJNaKW25uQx6gpS+D6Hn+rqf8sQKamm77OVF3tc0CiMGCR1MFvzzN\n\t3EbNo2JmZ9nXZUjXQhlB8ge/8xzF7rEPoFZov93nNLDtuUyjPsvjc7ahw1tUcgQpXO8LNzoF236\n\tWFKtP+Grj2wGntugQe5bDm2B1fkfql2hQmHsSuDoqkV1DpBEnww+Vg8hmpdKZYv/s+AHGuof1B2\n\tcTn57VkYGTcyWxBEnsIE4OzyEkAna7aZBUPrONEMokwQaP3WIsBMGyQ7vAAUVJWKZGMbvPvG4ci\n\tmf2IIFlx5gQt5k0tEDpZJrgv7RQ8PYsWxVxH7C2yr5LFjazAexM2iEtu6RSuoVShhaTsK4SxOkU\n\t3A4CMnh3WCwHJQxkIwX62SBzYQaTyvQPA8brHDgRWLhnuhky5vdR+lJ5rxKuoUlrood0pv953Xo\n\tzBvU7uLA6Sl2sUvcBjdgc1oGpP1HkcaQkVOMUTeCJsR8Qxn988rk4CrepuXcUxiSITC0DpxtiR3\n\t+PYjU26P7/7Bxkw==","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":"Now that we have two in-tree implementations of LscImplementation\ndetail how the two perform lsc gain re-sampling.\n\nSigned-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>\n---\n src/ipa/libipa/lsc_base.cpp | 15 +++++++++++++++\n 1 file changed, 15 insertions(+)","diff":"diff --git a/src/ipa/libipa/lsc_base.cpp b/src/ipa/libipa/lsc_base.cpp\nindex b50460394925..1015cdc7cf4c 100644\n--- a/src/ipa/libipa/lsc_base.cpp\n+++ b/src/ipa/libipa/lsc_base.cpp\n@@ -103,6 +103,21 @@ void Interpolator<lsc::Components>::\n  * each segment of size 0.0625 and the list of nodes position will be\n  * [0, 0.0625, 0.125, 0.1875, ... , 1]. It is expected that the first position\n  * is 0 and the last position is 1.\n+ *\n+ * LSC tables are expressed in two formats:\n+ * - A list of gain values (LscTable)\n+ * - A radial polynomial (LscPolynomial)\n+ *\n+ * Table-based LSC tables are generated using an image at a fixed resolution and\n+ * can't at the moment be re-sampled when a different resolution is used for a\n+ * streaming session. Re-sampling a grid LSC table will return the same table\n+ * as loaded from the tuning file.\n+ *\n+ * \\todo: Implement grid based re-sampling\n+ *\n+ * Polynomial configurations are more flexible and can be re-sampled for a given\n+ * sensor frame resolution using a list of horizontal and vertical nodes that\n+ * define the LSC grid on which the polynomial is re-sampled on.\n  */\n \n } /* namespace ipa */\n","prefixes":["v7","19/32"]}