|
libcamera v0.7.2+rpt20260817
Supporting cameras in Linux since 2019
|
Base class for V4L2Stats. More...

Public Member Functions | |
| V4L2StatsBase (Span< uint8_t > data, unsigned int version) | |
| Construct an instance of V4L2StatsBase. | |
| Span< const uint8_t > | block (unsigned int blockType, size_t blockSize) const |
| Retrieve an ISP statistics block and return a reference to it. | |
| constexpr | operator bool () |
| Retrieve if a V4L2StatsBase has been successfully constructed. | |
Base class for V4L2Stats.
The V4L2StatsBase is an integral part of V4L2Stats. It serves as a container for all code that does not depend on the V4L2Stats template arguments, to avoid duplicate copies of inline code.
| libcamera::ipa::V4L2StatsBase::V4L2StatsBase | ( | Span< uint8_t > | data, |
| unsigned int | version | ||
| ) |
Construct an instance of V4L2StatsBase.
| [in] | data | Reference to the v4l2-buffer memory mapped area |
| [in] | version | The ISP parameters version the implementation supports |
Parse the statistics buffer and construct a cache that maps a block type to the memory location of a statistics block in the buffer.
After construction users of this class shall check the validity of the constructed instance using operator bool().
| Span< const uint8_t > libcamera::ipa::V4L2StatsBase::block | ( | unsigned int | blockType, |
| size_t | blockSize | ||
| ) | const |
Retrieve an ISP statistics block and return a reference to it.
| [in] | blockType | The kernel-defined ISP block identifier, used to identify the block header |
| [in] | blockSize | The ISP statistics block size, for validation |
Retrieve a span to the statistics block memory location by accessing the cache built at class construction time.
|
inlineexplicitconstexpr |
Retrieve if a V4L2StatsBase has been successfully constructed.