MythTV
master
|
RTP Data Packet. More...
#include <libmythtv/recorders/rtp/rtpdatapacket.h>
Public Types | |
enum | { kPayLoadTypePCMAudio = 8, kPayLoadTypeMPEGAudio = 12, kPayLoadTypeH261Video = 31, kPayLoadTypeMPEG2Video = 32, kPayLoadTypeTS = 33, kPayLoadTypeH263Video = 34 } |
Public Member Functions | |
RTPDataPacket (const RTPDataPacket &)=default | |
RTPDataPacket (const UDPPacket &o) | |
RTPDataPacket (uint64_t key) | |
RTPDataPacket (void) | |
RTPDataPacket & | operator= (const RTPDataPacket &)=default |
bool | IsValid (void) const override |
IsValid() must return true before any data access methods are called, other than GetDataReference() and GetData() More... | |
uint | GetVersion (void) const |
bool | HasPadding (void) const |
bool | HasExtension (void) const |
uint | GetCSRCCount (void) const |
uint | GetPayloadType (void) const |
uint | GetSequenceNumber (void) const |
uint | GetTimeStamp (void) const |
uint | GetSynchronizationSource (void) const |
uint | GetContributingSource (uint i) const |
uint | GetPayloadOffset (void) const |
uint | GetPaddingSize (void) const |
Public Member Functions inherited from UDPPacket | |
UDPPacket (const UDPPacket &)=default | |
UDPPacket (uint64_t key) | |
UDPPacket (void)=default | |
virtual | ~UDPPacket ()=default |
UDPPacket & | operator= (const UDPPacket &)=default |
uint64_t | GetKey (void) const |
QByteArray & | GetDataReference (void) |
QByteArray | GetData (void) const |
Protected Attributes | |
uint | m_off { 0 } |
Protected Attributes inherited from UDPPacket | |
uint64_t | m_key { 0ULL } |
Key used to ensure we avoid extra memory allocation in m_data QByteArray. More... | |
QByteArray | m_data |
RTP Data Packet.
The RTP Header exists for all RTP packets, it contains a payload type, timestamp and a sequence number for packet reordering.
Different RTP Data Packet types have their own sub-classes for accessing the data portion of the packet.
The data is stored in a QByteArray which is a reference counted shared data container, so an RTPDataPacket can be assigned to a subclass efficiently.
Definition at line 32 of file rtpdatapacket.h.
anonymous enum |
Enumerator | |
---|---|
kPayLoadTypePCMAudio | |
kPayLoadTypeMPEGAudio | |
kPayLoadTypeH261Video | |
kPayLoadTypeMPEG2Video | |
kPayLoadTypeTS | |
kPayLoadTypeH263Video |
Definition at line 83 of file rtpdatapacket.h.
|
default |
|
inlineexplicit |
Definition at line 36 of file rtpdatapacket.h.
|
inlineexplicit |
Definition at line 37 of file rtpdatapacket.h.
|
inline |
Definition at line 38 of file rtpdatapacket.h.
|
default |
|
inlineoverridevirtual |
IsValid() must return true before any data access methods are called, other than GetDataReference() and GetData()
Reimplemented from UDPPacket.
Definition at line 42 of file rtpdatapacket.h.
Referenced by SatIPDataReadHelper::ReadPending(), and IPTVStreamHandlerWriteHelper::timerEvent().
|
inline |
Definition at line 78 of file rtpdatapacket.h.
Referenced by IsValid().
|
inline |
Definition at line 79 of file rtpdatapacket.h.
Referenced by GetPaddingSize().
|
inline |
Definition at line 80 of file rtpdatapacket.h.
Referenced by IsValid().
|
inline |
Definition at line 81 of file rtpdatapacket.h.
Referenced by IsValid().
|
inline |
Definition at line 92 of file rtpdatapacket.h.
Referenced by SatIPDataReadHelper::ReadPending(), and IPTVStreamHandlerWriteHelper::timerEvent().
|
inline |
Definition at line 97 of file rtpdatapacket.h.
Referenced by RTPPacketBuffer::PushDataPacket(), SatIPDataReadHelper::ReadPending(), and IPTVStreamHandlerWriteHelper::timerEvent().
|
inline |
Definition at line 102 of file rtpdatapacket.h.
Referenced by IPTVStreamHandlerWriteHelper::timerEvent().
|
inline |
Definition at line 107 of file rtpdatapacket.h.
Definition at line 112 of file rtpdatapacket.h.
|
inline |
Definition at line 119 of file rtpdatapacket.h.
|
inline |
Definition at line 121 of file rtpdatapacket.h.
Referenced by RTPTSDataPacket::GetTSDataSize().
|
mutableprotected |
Definition at line 129 of file rtpdatapacket.h.
Referenced by GetPayloadOffset(), RTPTSDataPacket::GetTSOffset(), and IsValid().