[v3,0/2] ipa: libipa: Add support for V4L2 ISP statistics
mbox series

Message ID 20260508-extensible-stats-v3-0-f2174ab4e124@ideasonboard.com
Headers show
Series
  • ipa: libipa: Add support for V4L2 ISP statistics
Related show

Message

Jacopo Mondi May 8, 2026, 4:48 p.m. UTC
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 <jacopo.mondi@ideasonboard.com>
---
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,