MythTV
master
|
#include <libmythtv/recorders/rtp/rtppacketbuffer.h>
Public Member Functions | |
RTPPacketBuffer (unsigned int bitrate) | |
void | PushDataPacket (const UDPPacket &udp_packet) override |
Adds RFC 3550 RTP data packet. More... | |
void | PushFECPacket (const UDPPacket &packet, unsigned int fec_stream_num) override |
Adds SMPTE 2022 Forward Error Correction Stream packet. More... | |
Public Member Functions inherited from PacketBuffer | |
PacketBuffer (unsigned int bitrate) | |
virtual | ~PacketBuffer ()=default |
bool | HasAvailablePacket (void) const |
Returns true if there are ordered packets ready for processing. More... | |
UDPPacket | PopDataPacket (void) |
Fetches a data packet for processing. More... | |
UDPPacket | GetEmptyPacket (void) |
Gets a packet for use in PushDataPacket/PushFECPacket. More... | |
void | FreePacket (const UDPPacket &packet) |
Frees an RTPDataPacket returned by PopDataPacket. More... | |
Private Attributes | |
int | m_largeSequenceNumberSeenRecently { 0 } |
uint64_t | m_currentSequence { 0LL } |
QMap< uint64_t, RTPDataPacket > | m_unorderedPackets |
The key is the RTP sequence number + sequence if applicable. More... | |
Additional Inherited Members | |
Protected Attributes inherited from PacketBuffer | |
uint | m_bitrate |
uint64_t | m_next_empty_packet_key |
Packets key to use for next empty packet. More... | |
QMap< uint64_t, UDPPacket > | m_empty_packets |
Packets ready for reuse. More... | |
QList< UDPPacket > | m_available_packets |
Ordered list of available packets. More... | |
Definition at line 15 of file rtppacketbuffer.h.
|
inlineexplicit |
Definition at line 18 of file rtppacketbuffer.h.
|
overridevirtual |
Adds RFC 3550 RTP data packet.
Implements PacketBuffer.
Definition at line 13 of file rtppacketbuffer.cpp.
|
overridevirtual |
Adds SMPTE 2022 Forward Error Correction Stream packet.
Implements PacketBuffer.
Definition at line 65 of file rtppacketbuffer.cpp.
|
private |
Definition at line 28 of file rtppacketbuffer.h.
Referenced by PushDataPacket().
|
private |
Definition at line 29 of file rtppacketbuffer.h.
Referenced by PushDataPacket().
|
private |
The key is the RTP sequence number + sequence if applicable.
Definition at line 32 of file rtppacketbuffer.h.
Referenced by PushDataPacket().