37 #ifndef RTPSOURCEDATA_H 39 #define RTPSOURCEDATA_H 60 ntptimestamp(0, 0), receivetime(0, 0)
69 ntptimestamp = ntptime;
70 rtptimestamp = rtptime;
73 receivetime = rcvtime;
126 fractionlost = ((double) fraclost) / 256.0;
128 exthighseqnr = exthigh;
132 receivetime = rcvtime;
196 return packetsreceived;
213 return numnewpackets;
217 return savedextseqnr;
222 savedextseqnr = exthighseqnr;
267 prevpacktime(0, 0), lastmsgtime(0, 0), lastrtptime(0, 0), lastnotetime(0, 0)
300 return packetlist.empty() ? false :
true;
361 return processedinrtcp;
377 return isrtcpaddrset;
436 return timestampunit;
442 return SRinf.HasInfo();
448 return SRinf.GetNTPTimestamp();
454 return SRinf.GetRTPTimestamp();
460 return SRinf.GetPacketCount();
466 return SRinf.GetByteCount();
472 return SRinf.GetReceiveTime();
478 return SRprevinf.HasInfo();
484 return SRprevinf.GetNTPTimestamp();
490 return SRprevinf.GetRTPTimestamp();
496 return SRprevinf.GetPacketCount();
502 return SRprevinf.GetByteCount();
508 return SRprevinf.GetReceiveTime();
514 return RRinf.HasInfo();
520 return RRinf.GetFractionLost();
526 return RRinf.GetPacketsLost();
532 return RRinf.GetExtendedHighestSequenceNumber();
538 return RRinf.GetJitter();
544 return RRinf.GetLastSRTimestamp();
550 return RRinf.GetDelaySinceLastSR();
556 return RRinf.GetReceiveTime();
564 return RRprevinf.HasInfo();
570 return RRprevinf.GetFractionLost();
576 return RRprevinf.GetPacketsLost();
582 return RRprevinf.GetExtendedHighestSequenceNumber();
588 return RRprevinf.GetJitter();
594 return RRprevinf.GetLastSRTimestamp();
600 return RRprevinf.GetDelaySinceLastSR();
606 return RRprevinf.GetReceiveTime();
612 return stats.HasSentData();
618 return stats.GetNumPacketsReceived();
624 return stats.GetBaseSequenceNumber();
630 return stats.GetExtendedHighestSequenceNumber();
636 return stats.GetJitter();
642 return stats.GetLastMessageTime();
648 return stats.GetLastRTPPacketTime();
652 double INF_GetEstimatedTimestampUnit()
const;
657 return stats.GetNumPacketsReceivedInInterval();
663 return stats.GetSavedExtendedSequenceNumber();
671 stats.StartNewInterval();
675 RTPTime INF_GetRoundtripTime()
const;
680 return stats.GetLastNoteTime();
686 return SDESinf.GetCNAME(len);
692 return SDESinf.GetName(len);
698 return SDESinf.GetEMail(len);
704 return SDESinf.GetPhone(len);
710 return SDESinf.GetLocation(len);
716 return SDESinf.GetTool(len);
722 return SDESinf.GetNote(len);
725 #ifdef RTP_SUPPORT_SDESPRIV 729 SDESinf.GotoFirstPrivateValue();
737 return SDESinf.GetNextPrivateValue(prefix, prefixlen, value, valuelen);
746 return SDESinf.GetPrivateValue(prefix, prefixlen, value, valuelen);
748 #endif // RTP_SUPPORT_SDESPRIV 782 if (packetlist.empty())
784 p = *(packetlist.begin());
785 packetlist.pop_front();
791 std::list<RTPPacket *>::const_iterator it;
793 for (it = packetlist.begin(); it != packetlist.end(); ++it)
800 #endif // RTPSOURCEDATA_H RTPTime GetLastMessageTime() const
bool RR_Prev_HasInfo() const
uint32_t INF_GetExtendedHighestSequenceNumber() const
int32_t RR_Prev_GetPacketsLost() const
uint32_t SR_GetPacketCount() const
uint8_t * SDES_GetPhone(std::size_t *len) const
double RR_GetFractionLost() const
RTPTime INF_GetLastMessageTime() const
RTPTime SR_Prev_GetReceiveTime() const
uint32_t GetDelaySinceLastSR() const
uint32_t GetSavedExtendedSequenceNumber() const
uint32_t GetLastSRTimestamp() const
int32_t RR_GetPacketsLost() const
RTPTime SR_GetReceiveTime() const
uint32_t SR_GetRTPTimestamp() const
bool IsRTCPAddressSet() const
uint32_t GetRTPTimestamp() const
RTPTime INF_GetLastSDESNoteTime() const
uint8_t * GetBYEReason(std::size_t *len) const
uint32_t SR_Prev_GetRTPTimestamp() const
int32_t INF_GetNumPacketsReceived() const
uint32_t GetExtendedHighestSequenceNumber() const
uint8_t * SDES_GetName(std::size_t *len) const
const RTPAddress * GetRTPDataAddress() const
uint32_t prevexthighseqnr
bool SDES_GetNextPrivateValue(uint8_t **prefix, std::size_t *prefixlen, uint8_t **value, std::size_t *valuelen)
uint32_t RR_GetLastSRTimestamp() const
RTPTime GetBYETime() const
void SetLastRTPPacketTime(const RTPTime &t)
uint32_t INF_GetSavedExtendedSequenceNumber() const
uint32_t GetNumPacketsReceived() const
uint32_t SR_Prev_GetPacketCount() const
uint32_t GetBaseSequenceNumber() const
const RTPAddress * GetRTCPDataAddress() const
uint32_t SR_GetByteCount() const
RTPTime RR_Prev_GetReceiveTime() const
RTPNTPTime SR_GetNTPTimestamp() const
uint32_t INF_GetBaseSequenceNumber() const
RTPPacket * GetNextPacket()
uint32_t RR_Prev_GetExtendedHighestSequenceNumber() const
void SetLastNoteTime(const RTPTime &t)
uint32_t GetByteCount() const
uint32_t RR_Prev_GetJitter() const
bool IsProcessedInRTCP() const
uint32_t RR_GetExtendedHighestSequenceNumber() const
RTCPSenderReportInfo SRprevinf
void SetTimestampUnit(double tsu)
bool SR_Prev_HasInfo() const
uint32_t GetExtendedHighestSequenceNumber() const
uint32_t SR_Prev_GetByteCount() const
RTPTime GetLastRTPPacketTime() const
uint8_t * SDES_GetLocation(std::size_t *len) const
double GetTimestampUnit() const
RTPTime RR_GetReceiveTime() const
uint8_t * SDES_GetTool(std::size_t *len) const
double GetFractionLost() const
uint32_t RR_GetJitter() const
void Set(uint8_t fraclost, int32_t plost, uint32_t exthigh, uint32_t jit, uint32_t l, uint32_t dl, const RTPTime &rcvtime)
bool IsRTPAddressSet() const
int32_t GetNumPacketsReceivedInInterval() const
uint32_t RR_Prev_GetDelaySinceLastSR() const
uint8_t * SDES_GetEMail(std::size_t *len) const
uint32_t INF_GetNumPacketsReceivedInInterval() const
uint32_t GetJitter() const
uint8_t * SDES_GetCNAME(std::size_t *len) const
RTPTime GetReceiveTime() const
RTCPReceiverReportInfo RRprevinf
uint32_t GetJitter() const
void SetLastMessageTime(const RTPTime &t)
void INF_StartNewInterval()
bool SDES_GetPrivateValue(uint8_t *prefix, std::size_t prefixlen, uint8_t **value, std::size_t *valuelen) const
uint32_t RR_Prev_GetLastSRTimestamp() const
uint32_t GetPacketCount() const
void SDES_GotoFirstPrivateValue()
std::list< RTPPacket * > packetlist
int32_t GetPacketsLost() const
uint32_t INF_GetJitter() const
RTPNTPTime GetNTPTimestamp() const
uint32_t RR_GetDelaySinceLastSR() const
void SetProcessedInRTCP(bool v)
RTPNTPTime SR_Prev_GetNTPTimestamp() const
RTPTime GetReceiveTime() const
uint8_t * SDES_GetNote(std::size_t *len) const
RTPTime INF_GetLastRTPPacketTime() const
RTPTime GetLastNoteTime() const
bool INF_HasSentData() const
double RR_Prev_GetFractionLost() const
void Set(const RTPNTPTime &ntptime, uint32_t rtptime, uint32_t pcount, uint32_t bcount, const RTPTime &rcvtime)