libcamera v0.7.2+rpt20260817
Supporting cameras in Linux since 2019
Loading...
Searching...
No Matches
libcamera::ipa::V4L2StatsBase Class Reference

Base class for V4L2Stats. More...

Inheritance diagram for libcamera::ipa::V4L2StatsBase:

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ V4L2StatsBase()

libcamera::ipa::V4L2StatsBase::V4L2StatsBase ( Span< uint8_t >  data,
unsigned int  version 
)

Construct an instance of V4L2StatsBase.

Parameters
[in]dataReference to the v4l2-buffer memory mapped area
[in]versionThe 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().

Member Function Documentation

◆ block()

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.

Parameters
[in]blockTypeThe kernel-defined ISP block identifier, used to identify the block header
[in]blockSizeThe ISP statistics block size, for validation

Retrieve a span to the statistics block memory location by accessing the cache built at class construction time.

Returns
The memory location of the ISP statistics block, or an empty Span if blockType is not supported

◆ operator bool()

libcamera::ipa::V4L2StatsBase::operator bool ( )
inlineexplicitconstexpr

Retrieve if a V4L2StatsBase has been successfully constructed.

Returns
True if the instance has been constructed successfully, false otherwise

The documentation for this class was generated from the following files: