OPAL
Version 3.18.8
|
#include <rtp_session.h>
Data Structures | |
struct | RxPacket |
struct | TxPacket |
Public Types | |
typedef std::map< uint32_t, RxPacket > | RxPacketMap |
typedef std::map < RTP_SequenceNumber, TxPacket > | TxPacketMap |
typedef std::map< PTime, RTP_SequenceNumber > | TxPacketTimes |
Public Member Functions | |
SyncSource (OpalRTPSession &session, RTP_SyncSourceId id, Direction dir, const char *cname) | |
virtual | ~SyncSource () |
virtual SendReceiveStatus | OnSendData (RTP_DataFrame &frame, RewriteMode rewrite, const PTime &now) |
virtual SendReceiveStatus | OnReceiveData (RTP_DataFrame &frame, ReceiveType rxType, const PTime &now) |
virtual SendReceiveStatus | OnReceiveRetransmit (RTP_DataFrame &frame, const PTime &now) |
virtual void | SetLastSequenceNumber (RTP_SequenceNumber sequenceNumber) |
virtual void | SaveSentData (const RTP_DataFrame &frame, const PTime &now) |
virtual void | OnRxNACK (const RTP_ControlFrame::LostPacketMask &lostPackets, const PTime &now) |
virtual bool | IsExpectingRetransmit (RTP_SequenceNumber sequenceNumber) |
virtual SendReceiveStatus | OnOutOfOrderPacket (RTP_DataFrame &frame, ReceiveType &rxType, const PTime &now) |
virtual bool | HasPendingFrames () const |
virtual bool | HandlePendingFrames (const PTime &now) |
void | CalculateRTT (const PTime &reportTime, const PTimeInterval &reportDelay, const PTime &now) |
virtual void | CalculateStatistics (const RTP_DataFrame &frame, const PTime &now) |
virtual void | GetStatistics (OpalMediaStatistics &statistics) const |
virtual bool | OnSendReceiverReport (RTP_ControlFrame::ReceiverReport *report, const PTime &now PTRACE_PARAM(, unsigned logLevel)) |
virtual bool | OnSendDelayLastReceiverReport (RTP_ControlFrame::DelayLastReceiverReport::Receiver *report, const PTime &now) |
virtual void | OnRxSenderReport (const RTP_SenderReport &report, const PTime &now) |
virtual void | OnRxReceiverReport (const RTP_ReceiverReport &report, const PTime &now) |
virtual void | OnRxDelayLastReceiverReport (const RTP_DelayLastReceiverReport &dlrr, const PTime &now) |
virtual SendReceiveStatus | SendBYE () |
bool | IsStaleReceiver (const PTime &now) const |
bool | IsRtx () const |
bool | IsNackEnabled () const |
uint32_t | ExtendSequenceNumber (RTP_SequenceNumber sequenceNumber) const |
OpalJitterBuffer * | GetJitterBuffer () const |
PTRACE_THROTTLE (m_throttleSendData, 3, 20000) | |
PTRACE_THROTTLE (m_throttleReceiveData, 3, 20000) | |
PTRACE_THROTTLE (m_throttleRxSR, 3, 60000, 5) | |
PTRACE_THROTTLE (m_throttleRxRR, 3, 60000, 5) | |
PTRACE_THROTTLE (m_throttleTxRED, 3, 60000) | |
PTRACE_THROTTLE (m_throttleRxRED, 3, 60000) | |
PTRACE_THROTTLE (m_throttleRxUnknownFEC, 3, 10000) | |
PTRACE_THROTTLE (m_throttleInvalidLost, 2, 60000) | |
P_REMOVE_VIRTUAL (SendReceiveStatus, OnSendData(RTP_DataFrame &, bool), e_AbortTransport) | |
P_REMOVE_VIRTUAL (SendReceiveStatus, OnSendData(RTP_DataFrame &, RewriteMode), e_AbortTransport) | |
P_REMOVE_VIRTUAL (SendReceiveStatus, OnOutOfOrderPacket(RTP_DataFrame &), e_AbortTransport) | |
P_REMOVE_VIRTUAL (SendReceiveStatus, OnReceiveData(RTP_DataFrame &, ReceiveType), e_AbortTransport) | |
typedef std::map<uint32_t, RxPacket> OpalRTPSession::SyncSource::RxPacketMap |
typedef std::map<RTP_SequenceNumber, TxPacket> OpalRTPSession::SyncSource::TxPacketMap |
typedef std::map<PTime, RTP_SequenceNumber> OpalRTPSession::SyncSource::TxPacketTimes |
OpalRTPSession::SyncSource::SyncSource | ( | OpalRTPSession & | session, |
RTP_SyncSourceId | id, | ||
Direction | dir, | ||
const char * | cname | ||
) |
|
virtual |
void OpalRTPSession::SyncSource::CalculateRTT | ( | const PTime & | reportTime, |
const PTimeInterval & | reportDelay, | ||
const PTime & | now | ||
) |
|
virtual |
uint32_t OpalRTPSession::SyncSource::ExtendSequenceNumber | ( | RTP_SequenceNumber | sequenceNumber | ) | const |
OpalJitterBuffer* OpalRTPSession::SyncSource::GetJitterBuffer | ( | ) | const |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inline |
References OpalRTPSession::HasFeedback(), IsRtx(), and m_session.
|
inline |
References RTP_DataFrame::IllegalPayloadType, and m_rtxPT.
Referenced by IsNackEnabled().
bool OpalRTPSession::SyncSource::IsStaleReceiver | ( | const PTime & | now | ) | const |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
OpalRTPSession::SyncSource::P_REMOVE_VIRTUAL | ( | SendReceiveStatus | , |
OnSendData(RTP_DataFrame &, bool) | , | ||
e_AbortTransport | |||
) |
OpalRTPSession::SyncSource::P_REMOVE_VIRTUAL | ( | SendReceiveStatus | , |
OnSendData(RTP_DataFrame &, RewriteMode) | , | ||
e_AbortTransport | |||
) |
OpalRTPSession::SyncSource::P_REMOVE_VIRTUAL | ( | SendReceiveStatus | , |
OnOutOfOrderPacket(RTP_DataFrame &) | , | ||
e_AbortTransport | |||
) |
OpalRTPSession::SyncSource::P_REMOVE_VIRTUAL | ( | SendReceiveStatus | , |
OnReceiveData(RTP_DataFrame &, ReceiveType) | , | ||
e_AbortTransport | |||
) |
OpalRTPSession::SyncSource::PTRACE_THROTTLE | ( | m_throttleSendData | , |
3 | , | ||
20000 | |||
) |
OpalRTPSession::SyncSource::PTRACE_THROTTLE | ( | m_throttleReceiveData | , |
3 | , | ||
20000 | |||
) |
OpalRTPSession::SyncSource::PTRACE_THROTTLE | ( | m_throttleRxSR | , |
3 | , | ||
60000 | , | ||
5 | |||
) |
OpalRTPSession::SyncSource::PTRACE_THROTTLE | ( | m_throttleRxRR | , |
3 | , | ||
60000 | , | ||
5 | |||
) |
OpalRTPSession::SyncSource::PTRACE_THROTTLE | ( | m_throttleTxRED | , |
3 | , | ||
60000 | |||
) |
OpalRTPSession::SyncSource::PTRACE_THROTTLE | ( | m_throttleRxRED | , |
3 | , | ||
60000 | |||
) |
OpalRTPSession::SyncSource::PTRACE_THROTTLE | ( | m_throttleRxUnknownFEC | , |
3 | , | ||
10000 | |||
) |
OpalRTPSession::SyncSource::PTRACE_THROTTLE | ( | m_throttleInvalidLost | , |
2 | , | ||
60000 | |||
) |
|
virtual |
|
virtual |
|
virtual |
uint32_t OpalRTPSession::SyncSource::m_absSendTimeLowBits |
uint64_t OpalRTPSession::SyncSource::m_absSendTimeNTP |
int OpalRTPSession::SyncSource::m_averagePacketTime |
Referenced by OpalRTPSession::GetAverageReceiveTime(), and OpalRTPSession::GetAverageSendTime().
unsigned OpalRTPSession::SyncSource::m_averageTimeAccum |
PString OpalRTPSession::SyncSource::m_canonicalName |
PTime OpalRTPSession::SyncSource::m_consecutiveOutOfOrderEndTime |
unsigned OpalRTPSession::SyncSource::m_consecutiveOutOfOrderPackets |
int OpalRTPSession::SyncSource::m_currentJitter |
Referenced by OpalRTPSession::GetAvgJitterTime(), and OpalRTPSession::GetJitterTimeOnRemote().
Direction OpalRTPSession::SyncSource::m_direction |
PTime OpalRTPSession::SyncSource::m_endWaitOutOfOrderTime |
uint32_t OpalRTPSession::SyncSource::m_extendedSequenceNumber |
PTime OpalRTPSession::SyncSource::m_firstPacketTime |
uint32_t OpalRTPSession::SyncSource::m_firstSequenceNumber |
unsigned OpalRTPSession::SyncSource::m_jitterAccum |
OpalJitterBuffer* OpalRTPSession::SyncSource::m_jitterBuffer |
unsigned OpalRTPSession::SyncSource::m_lastFIRSequenceNumber |
PTime OpalRTPSession::SyncSource::m_lastPacketAbsTime |
PTime OpalRTPSession::SyncSource::m_lastPacketNetTime |
Referenced by OpalRTPSession::GetLastSentNetTime().
RTP_Timestamp OpalRTPSession::SyncSource::m_lastPacketTimestamp |
Referenced by OpalRTPSession::GetLastSentTimestamp().
PTime OpalRTPSession::SyncSource::m_lastReferencedTime |
unsigned OpalRTPSession::SyncSource::m_lastRRPacketsReceived |
uint32_t OpalRTPSession::SyncSource::m_lastRRSequenceNumber |
PTime OpalRTPSession::SyncSource::m_lastSenderReportTime |
RTP_SequenceNumber OpalRTPSession::SyncSource::m_lastSequenceNumber |
unsigned OpalRTPSession::SyncSource::m_lastTSTOSequenceNumber |
int OpalRTPSession::SyncSource::m_lateOutOfOrder |
PTimeInterval OpalRTPSession::SyncSource::m_lateOutOfOrderAdaptBoost |
unsigned OpalRTPSession::SyncSource::m_lateOutOfOrderAdaptCount |
unsigned OpalRTPSession::SyncSource::m_lateOutOfOrderAdaptMax |
PTimeInterval OpalRTPSession::SyncSource::m_lateOutOfOrderAdaptPeriod |
PTime OpalRTPSession::SyncSource::m_lateOutOfOrderAdaptTime |
RTP_SyncSourceId OpalRTPSession::SyncSource::m_loopbackIdentifier |
unsigned OpalRTPSession::SyncSource::m_markerCount |
Referenced by OpalRTPSession::GetMarkerRecvCount(), and OpalRTPSession::GetMarkerSendCount().
int OpalRTPSession::SyncSource::m_maxConsecutiveLost |
int OpalRTPSession::SyncSource::m_maximumJitter |
Referenced by OpalRTPSession::GetMaxJitterTime().
int OpalRTPSession::SyncSource::m_maximumPacketTime |
Referenced by OpalRTPSession::GetMaximumReceiveTime(), and OpalRTPSession::GetMaximumSendTime().
unsigned OpalRTPSession::SyncSource::m_maximumTimeAccum |
PString OpalRTPSession::SyncSource::m_mediaStreamId |
PString OpalRTPSession::SyncSource::m_mediaTrackId |
int OpalRTPSession::SyncSource::m_minimumPacketTime |
Referenced by OpalRTPSession::GetMinimumReceiveTime(), and OpalRTPSession::GetMinimumSendTime().
unsigned OpalRTPSession::SyncSource::m_minimumTimeAccum |
atomic<unsigned> OpalRTPSession::SyncSource::m_NACKs |
RTP_SequenceNumber OpalRTPSession::SyncSource::m_nextOutOfOrderPacket |
NotifierMap OpalRTPSession::SyncSource::m_notifiers |
uint64_t OpalRTPSession::SyncSource::m_ntpPassThrough |
uint64_t OpalRTPSession::SyncSource::m_octets |
Referenced by OpalRTPSession::GetOctetsReceived(), and OpalRTPSession::GetOctetsSent().
unsigned OpalRTPSession::SyncSource::m_packets |
Referenced by OpalRTPSession::GetPacketsReceived(), and OpalRTPSession::GetPacketsSent().
int OpalRTPSession::SyncSource::m_packetsMissing |
Referenced by OpalRTPSession::GetPacketsLostByRemote().
unsigned OpalRTPSession::SyncSource::m_packetsOutOfOrder |
Referenced by OpalRTPSession::GetPacketsOutOfOrder().
int OpalRTPSession::SyncSource::m_packetsUnrecovered |
Referenced by OpalRTPSession::GetPacketsLost().
RTP_DataFrame::PayloadTypes OpalRTPSession::SyncSource::m_payloadType |
RxPacketMap OpalRTPSession::SyncSource::m_pendingRxPackets |
PTimeInterval OpalRTPSession::SyncSource::m_pendingTxPacketAgeLimit |
TxPacketMap OpalRTPSession::SyncSource::m_pendingTxPackets |
TxPacketTimes OpalRTPSession::SyncSource::m_pendingTxPacketTime |
PTime OpalRTPSession::SyncSource::m_referenceReportNTP |
PTime OpalRTPSession::SyncSource::m_referenceReportTime |
PTime OpalRTPSession::SyncSource::m_reportAbsoluteTime |
RTP_Timestamp OpalRTPSession::SyncSource::m_reportTimestamp |
float OpalRTPSession::SyncSource::m_rtcpDiscardRate |
int OpalRTPSession::SyncSource::m_rtcpJitterBufferDelay |
int OpalRTPSession::SyncSource::m_rtxDuplicates |
int OpalRTPSession::SyncSource::m_rtxPackets |
RTP_DataFrame::PayloadTypes OpalRTPSession::SyncSource::m_rtxPT |
Referenced by IsRtx().
RTP_SyncSourceId OpalRTPSession::SyncSource::m_rtxSSRC |
unsigned OpalRTPSession::SyncSource::m_senderReports |
OpalRTPSession& OpalRTPSession::SyncSource::m_session |
Referenced by IsNackEnabled().
RTP_SyncSourceId OpalRTPSession::SyncSource::m_sourceIdentifier |
Referenced by OpalRTPSession::GetSyncSourceIn(), and OpalRTPSession::GetSyncSourceOut().
unsigned OpalRTPSession::SyncSource::m_statisticsCount |
bool OpalRTPSession::SyncSource::m_synthesizeAbsTime |