Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Computes number of packets in interval. More...
#include <packet_counter.h>
Public Member Functions | |
PacketCounter () | |
Initialize. More... | |
uint64_t | update (uint32_t begin, uint32_t end) |
Update and return packet counter. begin defines interval beginning. end defines interval end (exclusive). Packet counter is computes as the maximum seen distance from begin to end. If begin changes, the maximum is cleared. If end wraps around 32-bit boundary, this is taken into account. More... | |
Computes number of packets in interval.
Definition at line 21 of file packet_counter.h.
roc::rtcp::PacketCounter::PacketCounter | ( | ) |
Initialize.
uint64_t roc::rtcp::PacketCounter::update | ( | uint32_t | begin, |
uint32_t | end | ||
) |
Update and return packet counter. begin
defines interval beginning. end
defines interval end (exclusive). Packet counter is computes as the maximum seen distance from begin to end. If begin changes, the maximum is cleared. If end wraps around 32-bit boundary, this is taken into account.