Go to the documentation of this file.
6 #ifndef RTP_DATA_PACKET_H
7 #define RTP_DATA_PACKET_H
17 # include <WinSock2.h>
50 LOG(VB_GENERAL, LOG_INFO, QString(
"Version incorrect %1")
58 LOG(VB_GENERAL, LOG_INFO, QString(
"off %1 > sz %2")
59 .arg(off).arg(
m_data.size()));
65 off += 4 * (1 + ext_size);
69 LOG(VB_GENERAL, LOG_INFO, QString(
"off + ext %1 > sz %2")
70 .arg(off).arg(
m_data.size()));
99 return qFromBigEndian(*
reinterpret_cast<const uint16_t*
>(
m_data.data()+2));
104 return qFromBigEndian(*
reinterpret_cast<const uint32_t*
>(
m_data.data()+4));
109 return qFromBigEndian(*
reinterpret_cast<const uint32_t*
>(
m_data.data()+8));
115 *
reinterpret_cast<const uint32_t*
>(
m_data.data() + 12 + 4 * i);
116 return qFromBigEndian(
tmp);
132 #endif // RTP_DATA_PACKET_H
uint GetTimeStamp(void) const
RTPDataPacket & operator=(const RTPDataPacket &)=default
uint GetVersion(void) const
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
uint GetContributingSource(uint i) const
uint GetPayloadOffset(void) const
RTPDataPacket(const UDPPacket &o)
uint GetSynchronizationSource(void) const
uint GetCSRCCount(void) const
bool HasPadding(void) const
uint GetPaddingSize(void) const
uint GetSequenceNumber(void) const
uint GetPayloadType(void) const
bool HasExtension(void) const
RTPDataPacket(uint64_t key)
bool IsValid(void) const override
IsValid() must return true before any data access methods are called, other than GetDataReference() a...