48 lastwallclocktime(0, 0)
133 if (
csrcs[i] == csrc)
151 if (
csrcs[i] == csrc)
180 qDebug(
"RTPPacketBuilder::CreateNewSSRC: timestamp: %u",
timestamp);
244 return PrivateBuildPacket(data, len, pt, mark, timestampinc,
true, hdrextID, hdrextdata, numhdrextwords);
249 unsigned int numhdrextwords)
251 RTPPacket p(pt, data, len,
seqnr,
timestamp,
ssrc, mark,
numcsrcs,
csrcs, gotextension, hdrextID, (
uint16_t) numhdrextwords, hdrextdata,
buffer,
maxpacksize);
unsigned int GetPayloadLength() const
#define ERR_RTP_PACKBUILD_CSRCNOTINLIST
int Init(unsigned int maxpacksize)
RTPTimeInitializerObject timeinit
RTPTime lastwallclocktime
#define ERR_RTP_PACKBUILD_DEFAULTPAYLOADTYPENOTSET
#define ERR_RTP_PACKBUILD_DEFAULTTSINCNOTSET
virtual uint32_t GetRandom32()=0
int PrivateBuildPacket(const void *data, unsigned int len, uint8_t pt, bool mark, uint32_t timestampinc, bool gotextension, uint16_t hdrextID=0, const void *hdrextdata=0, unsigned int numhdrextwords=0)
unsigned int GetPacketLength() const
virtual uint16_t GetRandom16()=0
RTPPacketBuilder(RTPRandom &rtprand)
#define ERR_RTP_PACKBUILD_NOTINIT
uint32_t defaulttimestampinc
int BuildPacket(const void *data, unsigned int len)
#define ERR_RTP_PACKBUILD_CSRCLISTFULL
int GetCreationError() const
int DeleteCSRC(uint32_t csrc)
uint32_t csrcs[RTP_MAXCSRCS]
uint8_t defaultpayloadtype
unsigned int packetlength
static RTPTime CurrentTime()
#define ERR_RTP_PACKBUILD_ALREADYINIT
uint32_t prevrtptimestamp
uint32_t lastrtptimestamp
int BuildPacketEx(const void *data, unsigned int len, uint16_t hdrextID, const void *hdrextdata, unsigned int numhdrextwords)
bool GotEntry(uint32_t ssrc)
int AddCSRC(uint32_t csrc)
#define ERR_RTP_PACKBUILD_INVALIDMAXPACKETSIZE
#define ERR_RTP_PACKBUILD_CSRCALREADYINLIST
#define ERR_RTP_PACKBUILD_DEFAULTMARKNOTSET
T max(const T &x, const T &y)
int SetMaximumPacketSize(unsigned int maxpacksize)