8 #ifndef _INCLUDED_MPRTPBUF_H 9 #define _INCLUDED_MPRTPBUF_H 12 #ifdef __pingtel_on_posix__ // [ 13 # include <netinet/in.h> 14 #endif // __pigntel_on_posix__ ] 17 # include <winsock2.h> 21 #include <sdp/SdpCodec.h> 71 return mpData->setDataSize(payloadSize);
#define MPBUF_TYPECHECKED_COPY(classname, buffer_type, base_classname)
Copy object from base type with type check.
Definition: MpBuf.h:407
RtpSeq getRtpSequenceNumber() const
Get Sequence Number of this packet.
Definition: MpRtpBuf.h:241
SdpCodec::SdpCodecTypes getCodecId() const
Get the internal codec ID for this RTP packet's payload.
Definition: MpRtpBuf.h:221
Buffer for raw UDP packet.
Definition: MpUdpBuf.h:37
SdpCodec::SdpCodecTypes mInternalCodecId
Internal codec ID for this packets payload ID.
Definition: MpRtpBuf.h:319
static MpBufPool * smpDefaultPool
Default pool for MpDataBuf objects.
Definition: MpRtpBuf.h:48
MpRtpBuf(const MpBuf &)
Disable copy (and other) constructor.
RtpSRC mRtpCSRCs[RTP_MAX_CSRCS]
CSRCs list of RTP packet.
Definition: MpRtpBuf.h:321
MpArrayBufPtr mpData
Payload data.
Definition: MpDataBuf.h:93
#define MPBUFDATA_FROM_BASE_CONSTRUCTOR(classname, buffer_type, base_classname)
This constructor owns MpBuf object.
Definition: MpDataBuf.h:18
unsigned getPayloadSize() const
Get current size of payload data.
Definition: MpRtpBuf.h:169
MpRtpBuf & operator=(const MpBuf &)
Disable assignment operator.
void setCodecId(SdpCodec::SdpCodecTypes codecId)
Set the internal codec ID for this packet's payload.
Definition: MpRtpBuf.h:228
void disableRtpExtension()
Clear extension bit in RTP header.
Definition: MpRtpBuf.h:107
Smart pointer to MpRtpBuf.
Definition: MpRtpBuf.h:348
RtpSRC * getRtpCSRCs()
Get direct access to RtpHeader structure.
Definition: MpRtpBuf.h:178
RtpHeader mRtpHeader
Definition: MpRtpBuf.h:315
uint8_t getRtpVersion() const
Get RTP version of this packet. Should be equal to 2.
Definition: MpRtpBuf.h:191
void init()
This is called in place of constructor.
Definition: MpRtpBuf.cpp:35
struct __MpGlobals MpMisc
Definition: MpMisc.cpp:101
int profileFlowgraphPoolUsage()
Syslog a histigram of buffers used by flowgraph.
Definition: MpBufPool.cpp:253
uint32_t RtpTimestamp
RTP timestamp.
Definition: MpTypes.h:60
Smart pointer to MpUdpBuf.
Definition: MpUdpBuf.h:142
Buffer for RTP packet data.
Definition: MpRtpBuf.h:40
void enableRtpMarker()
Set marker bit in RTP header.
Definition: MpRtpBuf.h:122
uint16_t RtpSeq
RTP sequence number.
Definition: MpTypes.h:59
#define MPBUF_MEMBER_ACCESS_OPERATOR(classname)
Return pointer to buffer.
Definition: MpBuf.h:417
void enableRtpPadding()
Set padding bit in RTP header.
Definition: MpRtpBuf.h:86
interface rtpts_t rtpts_t ssrc_t ssrc
Definition: ISetSenderStatistics.h:68
#define MPBUF_CONST_MEMBER_ACCESS_OPERATOR(classname)
Return readonly pointer to buffer.
Definition: MpBuf.h:422
void setRtpTimestamp(RtpTimestamp timestamp)
Set Timestamp of this packet.
Definition: MpRtpBuf.h:152
void setRtpSSRC(RtpSRC ssrc)
Set SSRC of this packet.
Definition: MpRtpBuf.h:159
uint8_t getRtpPayloadType() const
Get Payload Type of this packet.
Definition: MpRtpBuf.h:217
uint8_t getRtpCSRCCount() const
Get CSRC Count for this packet.
Definition: MpRtpBuf.h:200
bool isRtpMarker() const
Check marker bit in RTP header.
Definition: MpRtpBuf.h:307
void setRtpVersion(uint8_t version)
Set RTP version of this packet.
Definition: MpRtpBuf.h:78
void disableRtpMarker()
Clear marker bit in RTP header.
Definition: MpRtpBuf.h:130
void disableRtpPadding()
Clear padding bit in RTP header.
Definition: MpRtpBuf.h:93
bool isRtpExtension() const
Check extension bit in RTP header.
Definition: MpRtpBuf.h:295
bool isRtpPadding() const
Check padding bit in RTP header.
Definition: MpRtpBuf.h:286
void setRtpSequenceNumber(RtpSeq sequenceNumber)
Set Sequence Number of this packet.
Definition: MpRtpBuf.h:145
void setRtpPayloadType(uint8_t type)
Set Payload Type of this packet.
Definition: MpRtpBuf.h:137
uint32_t RtpSRC
RTP SSRC or CSRC identifier.
Definition: MpTypes.h:61
const RtpHeader & getRtpHeader() const
Get read-only direct access to RtpHeader structure.
Definition: MpRtpBuf.h:175
Base class for all media buffers.
Definition: MpBuf.h:74
bool isValid() const
Can this pointer be dereferenced? Use this function instead of NULL comparison.
Definition: MpBuf.h:365
void enableRtpExtension()
Set extension bit in RTP header.
Definition: MpRtpBuf.h:100
MpBufPool * RtpPool
Memory pool for RTP data buffers.
Definition: MpMisc.h:70
RtpTimestamp getRtpTimestamp() const
Get Timestamp of this packet.
Definition: MpRtpBuf.h:254
bool setPayloadSize(int payloadSize)
Set number of bytes in payload data.
Definition: MpRtpBuf.h:65
#define MPBUF_DEFAULT_CONSTRUCTOR(classname)
Default constructor - construct invalid pointer.
Definition: MpBuf.h:387
RtpSRC getRtpSSRC() const
Get SSRC of this packet.
Definition: MpRtpBuf.h:267
Pool of buffers.
Definition: MpBufPool.h:32
Begin of the MpRtpBuf type.
Definition: MpBuf.h:55
const RtpSRC * getRtpCSRCs() const
Get read-only direct access to RtpHeader structure.
Definition: MpRtpBuf.h:181
RtpHeader & getRtpHeader()
Get direct access to RtpHeader structure.
Definition: MpRtpBuf.h:172
void setRtpCSRCCount(uint8_t csrcCount)
Set CSRC Count for this packet.
Definition: MpRtpBuf.h:114