rollingMeanEncodeMicros property
double
get
rollingMeanEncodeMicros
Mean of Vp8FrameStats.encodeDurationMicros across the most recent up to rollingWindowFrames non-dropped frames. 0.0 when rolling stats are disabled or no frames have been encoded yet.
Implementation
double get rollingMeanEncodeMicros {
if (_ringFill == 0) return 0.0;
var sum = 0;
for (var i = 0; i < _ringFill; i++) {
sum += _ringMicros[i];
}
return sum / _ringFill;
}