Go to the documentation of this file.
7 #ifndef PACKET_BUFFER_H
8 #define PACKET_BUFFER_H
58 #endif // PACKET_BUFFER_H
void FreePacket(const UDPPacket &packet)
Frees an RTPDataPacket returned by PopDataPacket.
virtual ~PacketBuffer()=default
uint64_t m_next_empty_packet_key
Packets key to use for next empty packet.
QList< UDPPacket > m_available_packets
Ordered list of available packets.
bool HasAvailablePacket(void) const
Returns true if there are ordered packets ready for processing.
virtual void PushFECPacket(const UDPPacket &, unsigned int)=0
QMap< uint64_t, UDPPacket > m_empty_packets
Packets ready for reuse.
virtual void PushDataPacket(const UDPPacket &)=0
PacketBuffer(unsigned int bitrate)
UDPPacket PopDataPacket(void)
Fetches a data packet for processing.
UDPPacket GetEmptyPacket(void)
Gets a packet for use in PushDataPacket/PushFECPacket.