libcamera v0.2.0+3-70b69666-nvm
Supporting cameras in Linux since 2019
|
Implementation for the Software statistics on the CPU. More...
#include <swstats_cpu.h>
Public Member Functions | |
bool | isValid () const |
Gets wether the statistics object is valid. | |
const SharedFD & | getStatsFD () |
Get the file descriptor for the statistics. | |
int | configure (const StreamConfiguration &inputCfg) |
Configure the statistics object for the passed in input format. | |
![]() | |
virtual bool | isValid () const =0 |
Gets wether the statistics object is valid. | |
virtual int | configure (const StreamConfiguration &inputCfg)=0 |
Configure the statistics object for the passed in input format. | |
virtual const SharedFD & | getStatsFD ()=0 |
Get the file descriptor for the statistics. | |
const Size & | patternSize () |
Get the pattern size. | |
void | setWindow (Rectangle window) |
Specify window coordinates over which to gather statistics. | |
void | startFrame () |
Reset state to start statistics gathering for a new frame. | |
void | processLine0 (unsigned int y, const uint8_t *src[]) |
Process line 0. | |
void | processLine2 (unsigned int y, const uint8_t *src[]) |
Process line 2 and 3. | |
void | finishFrame () |
Finish statistics calculation for the current frame. | |
Additional Inherited Members | |
![]() | |
Signal< int > | statsReady |
Signals that the statistics are ready. | |
![]() | |
typedef void(SwStats::* | statsProcessFn) (const uint8_t *src[]) |
Called when there is data to get statistics from. | |
typedef void(SwStats::* | statsVoidFn) () |
Called when the statistics gathering is done or when a new frame starts. | |
![]() | |
statsProcessFn | stats0_ |
The function called when a line is ready for statistics processing. | |
statsProcessFn | stats2_ |
The function called when a line is ready for statistics processing. | |
unsigned int | bpp_ |
The memory used per pixel in bits. | |
unsigned int | y_skip_mask_ |
Skip lines where this bitmask is set in y. | |
Rectangle | window_ |
Statistics window, set by setWindow(), used ever line. | |
statsVoidFn | startFrame_ |
The function called at the start of a frame. | |
statsVoidFn | finishFrame_ |
The function called at the end of a frame. | |
Size | patternSize_ |
The size of the bayer pattern. | |
unsigned int | x_shift_ |
The offset of x, applied to window_.x for bayer variants. | |
Implementation for the Software statistics on the CPU.
|
virtual |
Configure the statistics object for the passed in input format.
[in] | inputCfg | The input format |
Implements libcamera::SwStats.
|
inlinevirtual |
Get the file descriptor for the statistics.
Implements libcamera::SwStats.
|
inlinevirtual |
Gets wether the statistics object is valid.
Implements libcamera::SwStats.