diff options
| author | Jacopo Mondi <jacopo.mondi@ideasonboard.com> | 2026-06-27 15:42:03 +0200 |
|---|---|---|
| committer | Sakari Ailus <sakari.ailus@linux.intel.com> | 2026-07-30 20:51:13 +0300 |
| commit | 4ade3af89b2facff395467af1a5d953ea9dfc181 (patch) | |
| tree | e67280db316e178786b6ee8d37dac742d2948843 /include/uapi | |
| parent | 07a4324a81196f4b475b566a79f91f111b2fc4be (diff) | |
| download | linux-4ade3af89b2facff395467af1a5d953ea9dfc181.tar.gz linux-4ade3af89b2facff395467af1a5d953ea9dfc181.zip | |
media: v4l2-isp: Add helpers for stats buffer
Add two helper functions to v4l2-isp to handle statistics:
- v4l2_isp_stats_init_buffer() to initialize a statistics buffer
- v4l2_isp_stats_init_block() to initialize a statistics block in the
next available memory location of a buffer
The v4l2_isp_stats_init_buffer() resets the data size counter of the
buffer and initializes its 'version' field.
The v4l2_isp_stats_init_block() helper accepts the type of the stats
block about to be populated, an array of per-block-type information and
the maximum size of the v4l2-isp buffer. If enough space for the new
block is available, the function increments the
v4l2_isp_buffer.data_size counter, initializes the new stats block
header and returns a pointer to the block for the driver to populate it.
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions
