MythTV  master
Public Member Functions | List of all members
UDPPacketBuffer Class Reference

#include <udppacketbuffer.h>

Inheritance diagram for UDPPacketBuffer:
Inheritance graph
Collaboration diagram for UDPPacketBuffer:
Collaboration graph

Public Member Functions

 UDPPacketBuffer (unsigned int bitrate)
void PushDataPacket (const UDPPacket &packet) override
 Adds Raw UDP data packet. More...
void PushFECPacket (const UDPPacket &packet, unsigned int) override
 Frees the packet, there is no FEC used by Raw UDP. 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...

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, UDPPacketm_empty_packets
 Packets ready for reuse. More...
QList< UDPPacketm_available_packets
 Ordered list of available packets. More...

Detailed Description

Definition at line 12 of file udppacketbuffer.h.

Constructor & Destructor Documentation

◆ UDPPacketBuffer()

UDPPacketBuffer::UDPPacketBuffer ( unsigned int  bitrate)

Definition at line 15 of file udppacketbuffer.h.

Member Function Documentation

◆ PushDataPacket()

void UDPPacketBuffer::PushDataPacket ( const UDPPacket packet)

Adds Raw UDP data packet.

Implements PacketBuffer.

Definition at line 18 of file udppacketbuffer.h.

◆ PushFECPacket()

void UDPPacketBuffer::PushFECPacket ( const UDPPacket packet,
unsigned int   

Frees the packet, there is no FEC used by Raw UDP.

Implements PacketBuffer.

Definition at line 24 of file udppacketbuffer.h.

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