MythTV  master
Public Member Functions | Protected Attributes | List of all members
RTCPDataPacket Class Reference

RTCP Data Packet. More...

#include <rtcpdatapacket.h>

Inheritance diagram for RTCPDataPacket:
Inheritance graph
[legend]
Collaboration diagram for RTCPDataPacket:
Collaboration graph
[legend]

Public Member Functions

 RTCPDataPacket (const RTCPDataPacket &o)
 
 RTCPDataPacket (uint32_t timestamp, uint32_t last_timestamp, uint32_t sequence, uint32_t last_sequence, uint32_t lost, uint32_t lost_interval, uint32_t ssrc)
 
QByteArray GetData (void) const
 
uint GetSequenceNumber (void) const
 
- Public Member Functions inherited from UDPPacket
 UDPPacket (const UDPPacket &)=default
 
 UDPPacket (uint64_t key)
 
 UDPPacket (void)=default
 
virtual ~UDPPacket ()=default
 
UDPPacketoperator= (const UDPPacket &)=default
 
virtual bool IsValid (void) const
 IsValid() must return true before any data access methods are called, other than GetDataReference() and GetData() More...
 
uint64_t GetKey (void) const
 
QByteArray & GetDataReference (void)
 
QByteArray GetData (void) const
 

Protected Attributes

uint32_t m_timestamp
 
uint32_t m_last_timestamp
 
uint32_t m_sequence
 
uint32_t m_last_sequence
 
uint32_t m_lost
 
uint32_t m_lost_interval {0}
 
uint32_t m_ssrc
 
- 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
 

Detailed Description

RTCP Data Packet.

The RTCP 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 38 of file rtcpdatapacket.h.

Constructor & Destructor Documentation

◆ RTCPDataPacket() [1/2]

RTCPDataPacket::RTCPDataPacket ( const RTCPDataPacket o)
inline

Definition at line 41 of file rtcpdatapacket.h.

◆ RTCPDataPacket() [2/2]

RTCPDataPacket::RTCPDataPacket ( uint32_t  timestamp,
uint32_t  last_timestamp,
uint32_t  sequence,
uint32_t  last_sequence,
uint32_t  lost,
uint32_t  lost_interval,
uint32_t  ssrc 
)
inline

Definition at line 48 of file rtcpdatapacket.h.

Member Function Documentation

◆ GetData()

QByteArray RTCPDataPacket::GetData ( void  ) const
inline

Definition at line 57 of file rtcpdatapacket.h.

Referenced by IPTVStreamHandlerWriteHelper::SendRTCPReport().

◆ GetSequenceNumber()

uint RTCPDataPacket::GetSequenceNumber ( void  ) const
inline

Definition at line 149 of file rtcpdatapacket.h.

Member Data Documentation

◆ m_timestamp

uint32_t RTCPDataPacket::m_timestamp
protected

Definition at line 155 of file rtcpdatapacket.h.

Referenced by GetData().

◆ m_last_timestamp

uint32_t RTCPDataPacket::m_last_timestamp
protected

Definition at line 156 of file rtcpdatapacket.h.

Referenced by GetData().

◆ m_sequence

uint32_t RTCPDataPacket::m_sequence
protected

Definition at line 157 of file rtcpdatapacket.h.

Referenced by GetData(), and GetSequenceNumber().

◆ m_last_sequence

uint32_t RTCPDataPacket::m_last_sequence
protected

Definition at line 158 of file rtcpdatapacket.h.

◆ m_lost

uint32_t RTCPDataPacket::m_lost
protected

Definition at line 159 of file rtcpdatapacket.h.

◆ m_lost_interval

uint32_t RTCPDataPacket::m_lost_interval {0}
protected

Definition at line 160 of file rtcpdatapacket.h.

◆ m_ssrc

uint32_t RTCPDataPacket::m_ssrc
protected

Definition at line 161 of file rtcpdatapacket.h.

Referenced by GetData().


The documentation for this class was generated from the following file: