sipxmedialib
Version 3.3
|
Buffer for RTP packet data. More...
#include <MpRtpBuf.h>
Public Member Functions | |
Manipulators | |
bool | setPayloadSize (int payloadSize) |
Set number of bytes in payload data. More... | |
void | setRtpVersion (uint8_t version) |
Set RTP version of this packet. More... | |
void | enableRtpPadding () |
Set padding bit in RTP header. More... | |
void | disableRtpPadding () |
Clear padding bit in RTP header. More... | |
void | enableRtpExtension () |
Set extension bit in RTP header. More... | |
void | disableRtpExtension () |
Clear extension bit in RTP header. More... | |
void | setRtpCSRCCount (uint8_t csrcCount) |
Set CSRC Count for this packet. More... | |
void | enableRtpMarker () |
Set marker bit in RTP header. More... | |
void | disableRtpMarker () |
Clear marker bit in RTP header. More... | |
void | setRtpPayloadType (uint8_t type) |
Set Payload Type of this packet. More... | |
void | setRtpSequenceNumber (RtpSeq sequenceNumber) |
Set Sequence Number of this packet. More... | |
void | setRtpTimestamp (RtpTimestamp timestamp) |
Set Timestamp of this packet. More... | |
void | setRtpSSRC (RtpSRC ssrc) |
Set SSRC of this packet. More... | |
Accessors | |
unsigned | getPayloadSize () const |
Get current size of payload data. More... | |
RtpHeader & | getRtpHeader () |
Get direct access to RtpHeader structure. More... | |
const RtpHeader & | getRtpHeader () const |
Get read-only direct access to RtpHeader structure. More... | |
RtpSRC * | getRtpCSRCs () |
Get direct access to RtpHeader structure. More... | |
const RtpSRC * | getRtpCSRCs () const |
Get read-only direct access to RtpHeader structure. More... | |
uint8_t | getRtpVersion () const |
Get RTP version of this packet. Should be equal to 2. More... | |
uint8_t | getRtpCSRCCount () const |
Get CSRC Count for this packet. More... | |
uint8_t | getRtpPayloadType () const |
Get Payload Type of this packet. More... | |
SdpCodec::SdpCodecTypes | getCodecId () const |
Get the internal codec ID for this RTP packet's payload. More... | |
void | setCodecId (SdpCodec::SdpCodecTypes codecId) |
Set the internal codec ID for this packet's payload. More... | |
RtpSeq | getRtpSequenceNumber () const |
Get Sequence Number of this packet. More... | |
RtpTimestamp | getRtpTimestamp () const |
Get Timestamp of this packet. More... | |
RtpSRC | getRtpSSRC () const |
Get SSRC of this packet. More... | |
Inquiry | |
bool | isRtpPadding () const |
Check padding bit in RTP header. More... | |
bool | isRtpExtension () const |
Check extension bit in RTP header. More... | |
bool | isRtpMarker () const |
Check marker bit in RTP header. More... | |
Public Member Functions inherited from MpUdpBuf | |
bool | setPacketSize (int size) |
Set size of packet data in bytes. More... | |
void | setTimecode (unsigned timecode) |
Set time code for this packet. More... | |
void | setIP (const in_addr &ip) |
Set source/destination address for this packet. More... | |
void | setUdpPort (unsigned port) |
Set source/destination UDP port for this packet. More... | |
unsigned | getPacketSize () const |
Get size of packet data in bytes. More... | |
unsigned | getMaximumPacketSize () const |
Get maximum size of data this buffer can bear. More... | |
unsigned | getTimecode () const |
Get time code for this packet. More... | |
const in_addr & | getIP () const |
Get source/destination address for this packet. More... | |
unsigned | getUdpPort () const |
Get source/destination UDP port for this packet. More... | |
Public Member Functions inherited from MpDataBuf | |
void | setData (const MpArrayBufPtr &pData) |
Set new payload data. More... | |
char * | getDataWritePtr () |
Return pointer to payload data. More... | |
const char * | getDataPtr () const |
Return pointer to payload data. More... | |
MpArrayBufPtr | getData () const |
Get payload data. More... | |
Public Member Functions inherited from MpBuf | |
void | attach () |
Increments reference counter. More... | |
void | detach () |
Decrements reference counter and free buffer if needed. More... | |
void | setFlowGraph (MpFlowGraphBase *flowgraph) |
MP_BUFFERS_TREE | getType () const |
Get buffer type. More... | |
MpBufPool * | getBufferPool () const |
Get parent pool of this buffer. More... | |
Static Public Attributes | |
static MpBufPool * | smpDefaultPool = NULL |
Default pool for MpDataBuf objects. More... | |
Static Public Attributes inherited from MpUdpBuf | |
static MpBufPool * | smpDefaultPool = NULL |
Default pool for this type of buffer. More... | |
Static Public Attributes inherited from MpDataBuf | |
static MpBufPool * | smpDefaultPool = NULL |
Default pool for MpDataBuf objects. More... | |
Protected Member Functions | |
void | init () |
This is called in place of constructor. More... | |
Protected Member Functions inherited from MpUdpBuf | |
void | init () |
This is called in place of constructor. More... | |
Protected Member Functions inherited from MpDataBuf | |
void | init () |
This is called in place of constructor. More... | |
Protected Attributes | |
RtpHeader | mRtpHeader |
SdpCodec::SdpCodecTypes | mInternalCodecId |
Internal codec ID for this packets payload ID. More... | |
RtpSRC | mRtpCSRCs [RTP_MAX_CSRCS] |
CSRCs list of RTP packet. More... | |
Protected Attributes inherited from MpUdpBuf | |
unsigned | mTimecode |
in_addr | mIP |
Source/destination IP-addres of this packet. More... | |
unsigned | mPort |
Source/destination UDP-port of this packet. More... | |
Protected Attributes inherited from MpDataBuf | |
MpArrayBufPtr | mpData |
Payload data. More... | |
Protected Attributes inherited from MpBuf | |
MP_BUFFERS_TREE | mType |
Buffer class type. Used for type safety. More... | |
int | mRefCounter |
Reference counter for use with MpBufPtr. More... | |
MpBufPool * | mpPool |
Parent memory pool. More... | |
MpFlowGraphBase * | mpFlowGraph |
Debug pointer to flowgraph in which this buf is used. More... | |
void(* | mpDestroy )(MpBuf *) |
void(* | mpInitClone )(MpBuf *) |
Private Member Functions | |
MpRtpBuf (const MpBuf &) | |
Disable copy (and other) constructor. More... | |
MpRtpBuf & | operator= (const MpBuf &) |
Disable assignment operator. More... | |
Friends | |
class | MpRtpBufPtr |
Additional Inherited Members | |
Static Protected Member Functions inherited from MpDataBuf | |
static void | sDestroy (MpBuf *pBuffer) |
Destructor for MpDataBuf. More... | |
static void | sInitClone (MpBuf *pBuffer) |
Function that initialize buffer after cloning. It makes clone of mpData. More... | |
Static Protected Member Functions inherited from MpBuf | |
static void | sInitClone (MpBuf *pBuffer) |
Function that initialize buffer after cloning. It adjusts reference counters. More... | |
Buffer for RTP packet data.
This is only the header for RTP data. It contain some RTP-related parameters and pointer to external data (cause it is based on MpDataBuf).
Disable copy (and other) constructor.
This struct will be initialized by init() member.
|
inline |
Set number of bytes in payload data.
|
inline |
Set RTP version of this packet.
|
inline |
Set padding bit in RTP header.
|
inline |
Clear padding bit in RTP header.
|
inline |
Set extension bit in RTP header.
|
inline |
Clear extension bit in RTP header.
|
inline |
Set CSRC Count for this packet.
|
inline |
Set marker bit in RTP header.
|
inline |
Clear marker bit in RTP header.
|
inline |
Set Payload Type of this packet.
|
inline |
Set Sequence Number of this packet.
|
inline |
Set Timestamp of this packet.
|
inline |
Set SSRC of this packet.
|
inline |
Get current size of payload data.
|
inline |
Get RTP version of this packet. Should be equal to 2.
|
inline |
Get CSRC Count for this packet.
|
inline |
Get Payload Type of this packet.
|
inline |
Get the internal codec ID for this RTP packet's payload.
|
inline |
Set the internal codec ID for this packet's payload.
|
inline |
Get Sequence Number of this packet.
|
inline |
Get Timestamp of this packet.
|
inline |
Get SSRC of this packet.
|
inline |
Check padding bit in RTP header.
|
inline |
Check extension bit in RTP header.
|
inline |
Check marker bit in RTP header.
|
protected |
This is called in place of constructor.
Disable assignment operator.
Buffers may be copied. But do we need this?
|
friend |
|
protected |
Fixed header of RTP packet. It is contained as is and functions to access its components are provided.
|
protected |
Internal codec ID for this packets payload ID.
|
protected |
CSRCs list of RTP packet.