Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Computes fractions loss ration since last report. More...
#include <loss_estimator.h>
Public Member Functions | |
LossEstimator () | |
Initialize. More... | |
float | update (uint64_t total_packets, int64_t lost_packets) |
Update and return fractional loss ration since previous update. total_packets defines total count of packets expected. lost_packets defines count of packets not received, probably negative dues to duplicates. More... | |
Computes fractions loss ration since last report.
Definition at line 21 of file loss_estimator.h.
roc::rtcp::LossEstimator::LossEstimator | ( | ) |
Initialize.
float roc::rtcp::LossEstimator::update | ( | uint64_t | total_packets, |
int64_t | lost_packets | ||
) |
Update and return fractional loss ration since previous update. total_packets
defines total count of packets expected. lost_packets
defines count of packets not received, probably negative dues to duplicates.