optris::sdk::FrameIntervalClock
Measures the interval between the frames that are actually coloured.
Measured, not nominal, and taken on the host clock rather than from a frame's capture timestamp. Measured because a nominal frame rate is wrong across dropped frames, across ProcessingConfig:: subsampled_framerate and across an operation-mode change, and the two pipeline backends are handed a raw sensor buffer with no timestamp on it at all. On the host clock because on a live camera the host's time between two frames is the time that passed between them.
A replay does not use this clock. Its frames carry the recording's own time, and the colour scale there is damped by that, so a Player at four times speed, or one feeding a video export as fast as it decodes, draws the scale the camera showed live rather than one that depends on how fast it was played.
The first Tick() after construction or Reset() has nothing to measure against and reports kAssumedFirstInterval. It stands in for exactly one frame, and only ever affects how far the scale moves out of its seed on that frame.
Public static attributes
kAssumedFirstInterval
static constexpr std::chrono::microseconds kAssumedFirstInterval {33333}
1/30 s. A plausible thermal frame interval, used for one frame only -- see the class comment.
Public functions
Tick
auto Tick() -> std::chrono::microseconds
The interval since the previous Tick().
Reset
void Reset()
Forget the previous frame, so the next Tick() reports kAssumedFirstInterval again.