From patchwork Fri May 8 16:48:50 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 26694 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 16E5EBE173 for ; Fri, 8 May 2026 16:49:02 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id F3A2763024; Fri, 8 May 2026 18:49:00 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="u9gakAup"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 9785062FD3 for ; Fri, 8 May 2026 18:48:59 +0200 (CEST) Received: from [192.168.1.7] (net-93-65-100-155.cust.vodafonedsl.it [93.65.100.155]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 6E4429A4; Fri, 8 May 2026 18:48:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1778258934; bh=zAwcqcI0dV6UEYyWYu4ZVyaoyJ5UFectGTyzlgiPqzA=; h=From:Subject:Date:To:Cc:From; b=u9gakAupIKClE+tgTIhHole/0WYGB2XirMthwVPprsahH9f5xZ6xEjr3Sj/FB+mYi Qe9L3/AUWj/aMlnuFhNP03y2R+MFTql3dtdamHXviaLWVXD0Ek2JjpwUyj+M0YMTk3 EWwdI/dagauLorVLGfpbfVYvOWNLjiqYdd0oLY04= From: Jacopo Mondi Subject: [PATCH v3 0/2] ipa: libipa: Add support for V4L2 ISP statistics Date: Fri, 08 May 2026 18:48:50 +0200 Message-Id: <20260508-extensible-stats-v3-0-f2174ab4e124@ideasonboard.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAPIT/mkC/33NQQ7CIBCF4as0rMVQakt15T2MCwamlkTBMITUN L27tCsXjcv/JfPNzAijQ2KXamYRsyMXfInmUDEzav9A7mxpJoXsRCtajlNCTw6eyCnpRFwpKXs FeALds3L2jji4aSNv99KjoxTiZ/uQ63X9g+WaCy6g7YyCGsB2V2dRU/AQdLRHE15sNbP8ddSOI 4tjB6PPzVnbRqodZ1mWL61aghn/AAAA X-Change-ID: 20260505-extensible-stats-772287be4ba8 To: libcamera-devel@lists.libcamera.org, Antoine Bouyer Cc: Jacopo Mondi , Kieran Bingham X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1495; i=jacopo.mondi@ideasonboard.com; h=from:subject:message-id; bh=zAwcqcI0dV6UEYyWYu4ZVyaoyJ5UFectGTyzlgiPqzA=; b=owEBbQKS/ZANAwAKAXI0Bo8WoVY8AcsmYgBp/hP6v9FNzArznxv0XeU/57RB/drlCtaQR1j5/ ahDLPwpSSCJAjMEAAEKAB0WIQS1xD1IgJogio9YOMByNAaPFqFWPAUCaf4T+gAKCRByNAaPFqFW PKQ6D/0dMyFU5OW0jO8ZzYWgdNo5B1Glz10Yn+x5UoYmJ1zbbbQkDWX/TOeRuNlLAjcyWbMSDjU shaeGP07SLpY1PcSy2eeg3jjQGXe6OvStotAmO8WfLSajZUCajWz+ZjuCYu4JsCJ0wc8BbqZbOk 2IJoQzOeyFuzMvvSw3eayhEU4CcTNKwrYrkSGbzkFwAP29OOqzCQvPfStJ27gV4yACVH9ByIUAc LnsiUhEmrRpnnHnMIbgepE2DEEPfslRGSDXE77znepTptgh8FRGSMm4PZGQbfAFJO8yEPtIYCVt Ms50HHrGG3qoKguVdHPvwtuPzNEfYnD66lLxspwLYH6FSWSWa34FsbXyERhEjpkrN0wZXOE494i loY6cL4CA5NYoaJegUoDixoiTTlxkEvppBXZl/jq0AQ8rHkaiCvInRoLUFAISQVklsV8xvpJs9r eJxOKbgv8GgoElwnzDHTuB81ootCteU/mmXiZWWhUQCla+cVuzKobhDuUDx/4R0zDvcJ39tQYo9 vtRAAzhfOlv+Pqstz3rjUWhTQAH0esulxVPPUAAH2Nw19z3MJl4Eg0ad9TgbNgGNf1QmnlZDmni srqJQ+oSC9xbPdEniET8NRu0KqYUaVfDa3SUnGaaWBPmOKZ+jgu/9JIBtrYGkgbNJC8mMtvnkMQ 05inCKzDF1MkaAg== X-Developer-Key: i=jacopo.mondi@ideasonboard.com; a=openpgp; fpr=72392EDC88144A65C701EA9BA5826A2587AD026B X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Support for extensible stats has been submitted for review first by Antonie then broken-out to a dedicated patch series here: https://patchwork.linuxtv.org/project/linux-media/list/?series=24772 With the same spirit as V4L2Params, introduce a V4L2Stats class to help IPA modules handle a buffer of V4L2 ISP statistics. There are currently no users in-tree of the class but we have an example user in the RPP-X1 IPA module available at: https://gitlab.freedesktop.org/jmondi/libcamera/-/blob/v4h/jmondi/rppx1/src/ipa/rppx1/stats.h https://gitlab.freedesktop.org/jmondi/libcamera/-/blob/v4h/jmondi/rppx1/src/ipa/rppx1/algorithms/awb.cpp#L365 Signed-off-by: Jacopo Mondi --- Changes in v3: - Drop V4L2StatsBlock - Introduce V4L2StatsBase - Build a cache of stats block at construction time Changes in v2: - Address Kieran's and Barnabas' comment --- Jacopo Mondi (2): include: v4l2-isp: Update to support extensible stats ipa: libipa: Introduce V4L2Stats include/linux/media/v4l2-isp.h | 125 ++++++++++++-------- src/ipa/libipa/meson.build | 2 + src/ipa/libipa/v4l2_stats.cpp | 256 +++++++++++++++++++++++++++++++++++++++++ src/ipa/libipa/v4l2_stats.h | 67 +++++++++++ 4 files changed, 404 insertions(+), 46 deletions(-) --- base-commit: 50476f7b170c187d5ca1b95e7ccc1948bc6557c1 change-id: 20260505-extensible-stats-772287be4ba8 Best regards,