14 #ifndef _MprDejitter_h_ 15 #define _MprDejitter_h_ 19 #include "os/OsStatus.h" 20 #include "os/OsBSem.h" 22 #include "utl/UtlString.h" 107 UtlBoolean *nextFrameAvailable = NULL,
108 bool lockTimestamp=
true);
202 #endif // _MprDejitter_h_ int mNumLatePackets
Number of packets in buffer, arrived late.
Definition: MprDejitter.h:160
MpRtpBufPtr mpPackets[MAX_RTP_PACKETS]
Buffer for incoming RTP packets.
Definition: MprDejitter.h:156
OsStatus getFirstPacketInfo(RtpSeq &packetSeq, RtpTimestamp &packetTime) const
Get RTP header info. for first sequentially available packet.
Definition: MprDejitter.cpp:327
virtual ~MprDejitter()
Destructor.
Definition: MprDejitter.cpp:74
UtlBoolean mIsFirstPulledPacket
Have we returned first RTP packet or not?
Definition: MprDejitter.h:166
void setFlowgrapName(const UtlString &fgName)
Set flowgraph name for debug purposes.
Definition: MprDejitter.cpp:315
Smart pointer to MpRtpBuf.
Definition: MpRtpBuf.h:348
int getNumPackets() const
Get number of packets in buffer, arrived in time.
Definition: MprDejitter.h:192
UtlString mResourceName
Resource name for debug purposes.
Definition: MprDejitter.h:177
int getNumLatePackets() const
Get number of late packets in buffer.
Definition: MprDejitter.h:197
MprDejitter(MpConnectionID connId=MP_INVALID_CONNECTION_ID, int streamId=-1)
Constructor.
Definition: MprDejitter.cpp:60
OsStatus pushPacket(MpRtpBufPtr &pRtp)
Add an incoming RTP packet to the dejitter pool.
Definition: MprDejitter.cpp:98
MpConnectionID mConnectionId
Connection ID for debug purposes.
Definition: MprDejitter.h:171
uint32_t RtpTimestamp
RTP timestamp.
Definition: MpTypes.h:60
MpRtpBufPtr pullPacket()
Get next RTP packet, or NULL if none is available.
Definition: MprDejitter.cpp:193
RtpSeq mMaxPulledSeqNo
Definition: MprDejitter.h:169
uint16_t RtpSeq
RTP sequence number.
Definition: MpTypes.h:59
int mNumPackets
Number of packets in buffer, arrived in time.
Definition: MprDejitter.h:158
void setConnectionId(MpConnectionID connId)
Set connection ID for debug purposes.
Definition: MprDejitter.cpp:299
UtlString mFlowgraphName
Parent flowgraph for debug purposes.
Definition: MprDejitter.h:175
void setStreamId(int streamId)
Set RTP stream ID for debug purposes.
Definition: MprDejitter.cpp:307
void reset()
Reset dejitter to initial state and prepare for new stream.
Definition: MprDejitter.cpp:80
Could be any value, power of 2 is desired.
Definition: MprDejitter.h:45
int mLastPushed
Index of the last inserted packet.
Definition: MprDejitter.h:164
int mNumDiscarded
Number of packets overwritten with newly came packets.
Definition: MprDejitter.h:162
MprDejitter & operator=(const MprDejitter &rhs)
Assignment operator (not implemented for this class)
int MpConnectionID
Flowgraph connection ID.
Definition: MpTypes.h:56
#define MP_INVALID_CONNECTION_ID
Definition: MpTypes.h:57
The "Dejitter" utility class.
Definition: MprDejitter.h:39
int mStreamId
RTP stream ID for debug purposes.
Definition: MprDejitter.h:173