37 #define ACCEPTPACKETCODE \ 44 if (pack->GetExtendedSequenceNumber() == 0) \ 46 baseseqnr = 0x0000FFFF; \ 47 numcycles = 0x00010000; \ 50 baseseqnr = pack->GetExtendedSequenceNumber() - 1; \ 52 exthighseqnr = baseseqnr + 1; \ 53 prevpacktime = receivetime; \ 54 prevexthighseqnr = baseseqnr; \ 55 savedextseqnr = baseseqnr; \ 57 pack->SetExtendedSequenceNumber(exthighseqnr); \ 59 prevtimestamp = pack->GetTimestamp(); \ 60 lastmsgtime = prevpacktime; \ 62 lastrtptime = prevpacktime; 124 double diffts1,diffts2,diff;
129 diff = diffts1 - diffts2;
138 double diffts1, diffts2, diff;
148 if (unsigneddiff < 0x10000000)
149 diffts2 = (double) unsigneddiff;
154 unsigneddiff = -unsigneddiff;
155 diffts2 = -((double) unsigneddiff);
162 if (unsigneddiff < 0x10000000)
163 diffts2 = -((double) unsigneddiff);
168 unsigneddiff = -unsigneddiff;
169 diffts2 = (double) unsigneddiff;
175 diff = diffts1 - diffts2;
235 if (t1.
IsZero() || t2.IsZero())
245 return (t1.
GetDouble() / ((double) tsdiff));
260 double drtt = (((double) rtt) / 65536.0);
uint32_t GetDelaySinceLastSR() const
void ProcessPacket(RTPPacket *pack, const RTPTime &receivetime, double tsunit, bool ownpacket, bool *accept)
uint32_t GetLastSRTimestamp() const
uint32_t GetRTPTimestamp() const
RTPTime INF_GetRoundtripTime() const
double INF_GetEstimatedTimestampUnit() const
RTCPSenderReportInfo SRprevinf
uint32_t GetExtendedSequenceNumber() const
RTPSourceData(uint32_t ssrc)
void SetExtendedSequenceNumber(uint32_t seq)
RTPNTPTime GetNTPTime() const
RTCPSenderReportInfo SRinf
uint32_t GetTimestamp() const
RTPNTPTime GetNTPTimestamp() const
RTCPReceiverReportInfo RRinf
RTPTime GetReceiveTime() const