![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Computes fractions loss ration since last report. More...
#include <roc_rtcp/loss_estimator.h>
Public Member Functions | |
| LossEstimator () | |
| Initialize. | |
| 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. | |
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.