{"id":26694,"url":"https://patchwork.libcamera.org/api/covers/26694/?format=json","web_url":"https://patchwork.libcamera.org/cover/26694/","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":"<20260508-extensible-stats-v3-0-f2174ab4e124@ideasonboard.com>","date":"2026-05-08T16:48:50","name":"[v3,0/2] ipa: libipa: Add support for V4L2 ISP statistics","submitter":{"id":143,"url":"https://patchwork.libcamera.org/api/people/143/?format=json","name":"Jacopo Mondi","email":"jacopo.mondi@ideasonboard.com"},"mbox":"https://patchwork.libcamera.org/cover/26694/mbox/","series":[{"id":5925,"url":"https://patchwork.libcamera.org/api/series/5925/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=5925","date":"2026-05-08T16:48:50","name":"ipa: libipa: Add support for V4L2 ISP statistics","version":3,"mbox":"https://patchwork.libcamera.org/series/5925/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/26694/comments/","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 16E5EBE173\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri,  8 May 2026 16:49:02 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id F3A2763024;\n\tFri,  8 May 2026 18:49:00 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 9785062FD3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri,  8 May 2026 18:48:59 +0200 (CEST)","from [192.168.1.7] (net-93-65-100-155.cust.vodafonedsl.it\n\t[93.65.100.155])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 6E4429A4;\n\tFri,  8 May 2026 18:48:54 +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=\"u9gakAup\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1778258934;\n\tbh=zAwcqcI0dV6UEYyWYu4ZVyaoyJ5UFectGTyzlgiPqzA=;\n\th=From:Subject:Date:To:Cc:From;\n\tb=u9gakAupIKClE+tgTIhHole/0WYGB2XirMthwVPprsahH9f5xZ6xEjr3Sj/FB+mYi\n\tQe9L3/AUWj/aMlnuFhNP03y2R+MFTql3dtdamHXviaLWVXD0Ek2JjpwUyj+M0YMTk3\n\tEWwdI/dagauLorVLGfpbfVYvOWNLjiqYdd0oLY04=","From":"Jacopo Mondi <jacopo.mondi@ideasonboard.com>","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","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"7bit","X-B4-Tracking":"v=1; b=H4sIAPIT/mkC/33NQQ7CIBCF4as0rMVQakt15T2MCwamlkTBMITUN\n\tL27tCsXjcv/JfPNzAijQ2KXamYRsyMXfInmUDEzav9A7mxpJoXsRCtajlNCTw6eyCnpRFwpKXs\n\tFeALds3L2jji4aSNv99KjoxTiZ/uQ63X9g+WaCy6g7YyCGsB2V2dRU/AQdLRHE15sNbP8ddSOI\n\t4tjB6PPzVnbRqodZ1mWL61aghn/AAAA","X-Change-ID":"20260505-extensible-stats-772287be4ba8","To":"libcamera-devel@lists.libcamera.org, \n\tAntoine Bouyer <antoine.bouyer@nxp.com>","Cc":"Jacopo Mondi <jacopo.mondi@ideasonboard.com>, \n\tKieran Bingham <kieran.bingham@ideasonboard.com>","X-Mailer":"b4 0.14.3","X-Developer-Signature":"v=1; a=openpgp-sha256; l=1495;\n\ti=jacopo.mondi@ideasonboard.com; h=from:subject:message-id;\n\tbh=zAwcqcI0dV6UEYyWYu4ZVyaoyJ5UFectGTyzlgiPqzA=;\n\tb=owEBbQKS/ZANAwAKAXI0Bo8WoVY8AcsmYgBp/hP6v9FNzArznxv0XeU/57RB/drlCtaQR1j5/\n\tahDLPwpSSCJAjMEAAEKAB0WIQS1xD1IgJogio9YOMByNAaPFqFWPAUCaf4T+gAKCRByNAaPFqFW\n\tPKQ6D/0dMyFU5OW0jO8ZzYWgdNo5B1Glz10Yn+x5UoYmJ1zbbbQkDWX/TOeRuNlLAjcyWbMSDjU\n\tshaeGP07SLpY1PcSy2eeg3jjQGXe6OvStotAmO8WfLSajZUCajWz+ZjuCYu4JsCJ0wc8BbqZbOk\n\t2IJoQzOeyFuzMvvSw3eayhEU4CcTNKwrYrkSGbzkFwAP29OOqzCQvPfStJ27gV4yACVH9ByIUAc\n\tLnsiUhEmrRpnnHnMIbgepE2DEEPfslRGSDXE77znepTptgh8FRGSMm4PZGQbfAFJO8yEPtIYCVt\n\tMs50HHrGG3qoKguVdHPvwtuPzNEfYnD66lLxspwLYH6FSWSWa34FsbXyERhEjpkrN0wZXOE494i\n\tloY6cL4CA5NYoaJegUoDixoiTTlxkEvppBXZl/jq0AQ8rHkaiCvInRoLUFAISQVklsV8xvpJs9r\n\teJxOKbgv8GgoElwnzDHTuB81ootCteU/mmXiZWWhUQCla+cVuzKobhDuUDx/4R0zDvcJ39tQYo9\n\tvtRAAzhfOlv+Pqstz3rjUWhTQAH0esulxVPPUAAH2Nw19z3MJl4Eg0ad9TgbNgGNf1QmnlZDmni\n\tsrqJQ+oSC9xbPdEniET8NRu0KqYUaVfDa3SUnGaaWBPmOKZ+jgu/9JIBtrYGkgbNJC8mMtvnkMQ\n\t05inCKzDF1MkaAg==","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":"Support for extensible stats has been submitted for review first by\nAntonie then broken-out to a dedicated patch series here:\nhttps://patchwork.linuxtv.org/project/linux-media/list/?series=24772\n\nWith the same spirit as V4L2Params, introduce a V4L2Stats class to help\nIPA modules handle a buffer of V4L2 ISP statistics.\n\nThere are currently no users in-tree of the class but we have an example\nuser in the RPP-X1 IPA module available at:\nhttps://gitlab.freedesktop.org/jmondi/libcamera/-/blob/v4h/jmondi/rppx1/src/ipa/rppx1/stats.h\nhttps://gitlab.freedesktop.org/jmondi/libcamera/-/blob/v4h/jmondi/rppx1/src/ipa/rppx1/algorithms/awb.cpp#L365\n\nSigned-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>\n---\nChanges in v3:\n- Drop V4L2StatsBlock\n- Introduce V4L2StatsBase\n- Build a cache of stats block at construction time\n\nChanges in v2:\n- Address Kieran's and Barnabas' comment\n\n---\nJacopo Mondi (2):\n      include: v4l2-isp: Update to support extensible stats\n      ipa: libipa: Introduce V4L2Stats\n\n include/linux/media/v4l2-isp.h | 125 ++++++++++++--------\n src/ipa/libipa/meson.build     |   2 +\n src/ipa/libipa/v4l2_stats.cpp  | 256 +++++++++++++++++++++++++++++++++++++++++\n src/ipa/libipa/v4l2_stats.h    |  67 +++++++++++\n 4 files changed, 404 insertions(+), 46 deletions(-)\n---\nbase-commit: 50476f7b170c187d5ca1b95e7ccc1948bc6557c1\nchange-id: 20260505-extensible-stats-772287be4ba8\n\nBest regards,"}