optris::sdk::rec::SessionPlaybackStats
What a playback run did. Every count here exists because its absence has bitten somebody.
Public attributes
frames_delivered
uint64_t frames_delivered = 0
Frames handed to the callback.
decode_errors
uint64_t decode_errors = 0
Frames the decoder refused. A truncated file produces these.
frames_late
uint64_t frames_late = 0
Frames delivered more than one frame period after the session time they were due, because the consumer's callback or the decode could not keep up.
A session player does not have a queue and therefore cannot lose a frame -- delivery is synchronous. It can be late, and late is what "dropped" would have been if it had one. The counter exists so that stays checkable rather than assumed: optris::sdk::Player discards frames when its four-deep pull queue overflows and counts nothing, and 275 of 9252 went missing in one measured run with nothing anywhere to say so.
max_lateness_us
uint64_t max_lateness_us = 0
The worst lateness observed, in microseconds. Zero when frames_late is zero.