liveMedia/include/RTPSource.hh File Reference

#include "FramedSource.hh"
#include "RTPInterface.hh"

Include dependency graph for RTPSource.hh:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  RTPSource
class  RTPReceptionStatsDB
class  RTPReceptionStatsDB::Iterator
class  RTPReceptionStats

Functions

Boolean seqNumLT (u_int16_t s1, u_int16_t s2)


Function Documentation

Boolean seqNumLT ( u_int16_t  s1,
u_int16_t  s2 
)

Definition at line 398 of file RTPSource.cpp.

References False.

Referenced by QCELPDeinterleavingBuffer::deliverIncomingFrame(), AMRDeinterleavingBuffer::deliverIncomingFrame(), MediaSubsession::getNormalPlayTime(), RTPReceptionStats::noteIncomingPacket(), and ReorderingPacketBuffer::storePacket().

00398                                              {
00399   // a 'less-than' on 16-bit sequence numbers
00400   int diff = s2-s1;
00401   if (diff > 0) {
00402     return (diff < 0x8000);
00403   } else if (diff < 0) {
00404     return (diff < -0x8000);
00405   } else { // diff == 0
00406     return False;
00407   }
00408 }


Generated on Thu Feb 2 23:53:18 2012 for live by  doxygen 1.5.2