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 |
![]() | |
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 } |
![]() | |
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 49 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 |
|
overridevirtual |
IsValid() must return true before any data access methods are called, other than GetDataReference() and GetData()
Reimplemented from UDPPacket.
Definition at line 5 of file rtpdatapacket.cpp.
Referenced by SatIPDataReadHelper::ReadPending(), and IPTVStreamHandlerWriteHelper::timerEvent().
|
inline |
Definition at line 44 of file rtpdatapacket.h.
Referenced by IsValid().
|
inline |
Definition at line 45 of file rtpdatapacket.h.
|
inline |
Definition at line 46 of file rtpdatapacket.h.
Referenced by IsValid().
|
inline |
Definition at line 47 of file rtpdatapacket.h.
Referenced by IsValid().
|
inline |
Definition at line 58 of file rtpdatapacket.h.
Referenced by SatIPDataReadHelper::ReadPending(), and IPTVStreamHandlerWriteHelper::timerEvent().
|
inline |
Definition at line 63 of file rtpdatapacket.h.
Referenced by RTPPacketBuffer::PushDataPacket(), SatIPDataReadHelper::ReadPending(), and IPTVStreamHandlerWriteHelper::timerEvent().
|
inline |
Definition at line 68 of file rtpdatapacket.h.
Referenced by IPTVStreamHandlerWriteHelper::timerEvent().
|
inline |
Definition at line 73 of file rtpdatapacket.h.
Definition at line 78 of file rtpdatapacket.h.
|
inline |
Definition at line 85 of file rtpdatapacket.h.
|
inline |
Definition at line 87 of file rtpdatapacket.h.
Referenced by RTPTSDataPacket::GetTSDataSize().
|
mutableprotected |
Definition at line 95 of file rtpdatapacket.h.
Referenced by RTPTSDataPacket::GetTSOffset(), and IsValid().