Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::rtcp::LossEstimator Class Reference

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...
 

Detailed Description

Computes fractions loss ration since last report.

Definition at line 21 of file loss_estimator.h.

Constructor & Destructor Documentation

◆ LossEstimator()

roc::rtcp::LossEstimator::LossEstimator ( )

Initialize.

Member Function Documentation

◆ update()

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.


The documentation for this class was generated from the following file: