OpalBitRateCalculator Class Reference
#include <ratectl.h>
Detailed Description
This class is used to calculate the instantaneous bit rate of a data stream using a one second sliding window
Constructor & Destructor Documentation
| OpalBitRateCalculator::OpalBitRateCalculator |
( |
|
) |
|
Member Function Documentation
| void OpalBitRateCalculator::AddPacket |
( |
PINDEX |
size, |
|
|
bool |
marker | |
|
) |
| | |
Add a new packet to the bit rate calculations
| void OpalBitRateCalculator::Flush |
( |
PInt64 |
now |
) |
[protected] |
| void OpalBitRateCalculator::Flush |
( |
|
) |
|
| unsigned OpalBitRateCalculator::GetAverageBitRate |
( |
|
) |
|
Get the average bit rate since SetQuanta was called
| unsigned OpalBitRateCalculator::GetAveragePacketSize |
( |
|
) |
|
Get the average bit rate since SetQuanta was called
| unsigned OpalBitRateCalculator::GetBitRate |
( |
|
) |
|
Get the instantaneous bit rate
| PInt64 OpalBitRateCalculator::GetEarliestHistoryTime |
( |
|
) |
const [inline] |
Return earlist timestamp in history
References m_history.
| size_t OpalBitRateCalculator::GetHistoryCount |
( |
|
) |
const [inline] |
Return number of frames in history
References m_history.
| unsigned OpalBitRateCalculator::GetHistoryFrames |
( |
|
) |
const |
Return number of marker bits in history
| unsigned OpalBitRateCalculator::GetHistorySize |
( |
|
) |
const [inline] |
| static PInt64 OpalBitRateCalculator::GetNow |
( |
|
) |
[static] |
| unsigned OpalBitRateCalculator::GetQuanta |
( |
|
) |
const [inline] |
Get the quanta (usually the frame time)
References m_quanta.
| PInt64 OpalBitRateCalculator::GetTotalSize |
( |
|
) |
const |
Return total bytes sent since SetQuanta was called
| PInt64 OpalBitRateCalculator::GetTotalTime |
( |
|
) |
const |
Return total miliseconds since SetQuanta was called
| unsigned OpalBitRateCalculator::GetTrialBitRate |
( |
PINDEX |
size |
) |
|
return the bit rate if the specific data size was transmitted
| void OpalBitRateCalculator::Reset |
( |
|
) |
|
| void OpalBitRateCalculator::SetQuanta |
( |
unsigned |
quanta_ |
) |
|
Set the quanta (usually the frame time)
Field Documentation
The documentation for this class was generated from the following file: