{"id":26734,"url":"https://patchwork.libcamera.org/api/covers/26734/?format=json","web_url":"https://patchwork.libcamera.org/cover/26734/","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":"<20260512-extensible-stats-v4-0-e0425f6171e2@ideasonboard.com>","date":"2026-05-12T13:45:04","name":"[v4,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/26734/mbox/","series":[{"id":5937,"url":"https://patchwork.libcamera.org/api/series/5937/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=5937","date":"2026-05-12T13:45:04","name":"ipa: libipa: Add support for V4L2 ISP statistics","version":4,"mbox":"https://patchwork.libcamera.org/series/5937/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/26734/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 F2210BDB1C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 12 May 2026 13:45:18 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id E7F4063024;\n\tTue, 12 May 2026 15:45:17 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 75F696271A\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 12 May 2026 15:45:16 +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 47CEE838;\n\tTue, 12 May 2026 15:45:08 +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=\"cJBnZ6hl\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1778593508;\n\tbh=0VFIWoxY/ugYpp5HhiT2T+wsSGL6l1XcjYidceVG3iw=;\n\th=From:Subject:Date:To:Cc:From;\n\tb=cJBnZ6hlB7rqc+6mvU1feKWjwGNm/1MPDKncUqwGD27K6a9/sTlzLkTL2jIdhzKOd\n\tAHEjz4NilvQ26t6O5bB4ZNIAzWuJYVALOpnlTEEw9aecC2kbk/ZYZXKYlOGKll0pLj\n\tOPE37G9sEWyIx9Uyp3iqRGzKLJAy27pvL6hgi7Pg=","From":"Jacopo Mondi <jacopo.mondi@ideasonboard.com>","Subject":"[PATCH v4 0/2] ipa: libipa: Add support for V4L2 ISP statistics","Date":"Tue, 12 May 2026 15:45:04 +0200","Message-Id":"<20260512-extensible-stats-v4-0-e0425f6171e2@ideasonboard.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"7bit","X-B4-Tracking":"v=1; b=H4sIAOAuA2oC/33NQQ6CMBCF4auQrq1ph0LBlfcwLjp0kCZKTUsIh\n\tnB3CysW6PJ/yXwzs0jBUWSXbGaBRhed71OoU8aazvQP4s6mZiCgFIUoOE0D9dHhk3gczBC51gC\n\tVRlJoKpbO3oFaN23k7Z66c3Hw4bN9GOW6/sFGyQUXWJSNRoloy6uzZKLv0Ztgz41/sdUcYe/oA\n\tweSY9vG1HltbA76h5PvnerAyZPTgtTKoCIJ6sBZluULFerggkcBAAA=","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=1589;\n\ti=jacopo.mondi@ideasonboard.com; h=from:subject:message-id;\n\tbh=0VFIWoxY/ugYpp5HhiT2T+wsSGL6l1XcjYidceVG3iw=;\n\tb=owEBbQKS/ZANAwAKAXI0Bo8WoVY8AcsmYgBqAy7rrS/d4EiS111WhTWC6A6Q6YVuRboVNxod0\n\tAx3wJDDaSKJAjMEAAEKAB0WIQS1xD1IgJogio9YOMByNAaPFqFWPAUCagMu6wAKCRByNAaPFqFW\n\tPORnEACnYm+5W0JFtE2QyVtL0c2qTmf4AR4rl9l1zkh4b6mXnC2v+dDJBSQLgiE5zYzrcjwnZ2m\n\tlKmGDVACFQlfSsU3DJHt2Ho3O927glh1QlcgGp79RW6Hs0wApI2CXMDAze5iT3h6bRwGVzRQAHJ\n\t9+KxkBMFbKBQpTqsFz5II+OU1PPGkY1Lu3/ZPaaiGDsD+jnoSsv1SbftwMXg5/t66arJgihk+g1\n\tZrpbABsqZW0F/MsxFHOgexiXR1EmwdrdCzA59puRQp3y7mTPM53GEYwQtiRekakiNUhdiMSUqqs\n\tF36c+3zC/UIZ7LdkRAmks2EVPv8kltToaqc4BZk/sCaY+3hDjQ8ZoJasZL7PSrp2uCzKBRS8TaA\n\tc0nfSXZRORwwKxb8qh2T6vra+wWvQjl5d1eUZ6llHPP29OWBEeaG7cyWfbP5ziB8Fx2ZQCx6qVR\n\tZC4H5fchf9sSI8k3chscaE/7Ce9L+1RTCZnYcHG2yFGnizzSpULnuRDvh0oSkhortvnHjqwkK9W\n\tmRMUt98nvhzL6Dm/Muuoiq5kC7a3xs1R94n6MCi3ofzKvQJushepYlINDDEA0OVmJPbwSWybw5l\n\tV9suu50QzvvM589YwG3pQ5gvpFQRKEWYObCvE6DhbecF/BB++vfz8bCqbhn4EDYspEPxpWynQA7\n\tXJUyULlCyPH+bFQ==","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 v4:\n- Restore public constructor for V4L2Stats\n- Address Barnabas' comments\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  | 243 +++++++++++++++++++++++++++++++++++++++++\n src/ipa/libipa/v4l2_stats.h    |  67 ++++++++++++\n 4 files changed, 391 insertions(+), 46 deletions(-)\n---\nbase-commit: b0dbd5100b1b1665dd2bc839d06263d55a89a6bd\nchange-id: 20260505-extensible-stats-772287be4ba8\n\nBest regards,"}