QMap< uint64_t, UDPPacket > m_emptyPackets
Packets ready for reuse.
UDPPacket PopDataPacket(void)
Fetches a data packet for processing.
QList< UDPPacket > m_availablePackets
Ordered list of available packets.
virtual void PushFECPacket(const UDPPacket &, unsigned int)=0
uint64_t m_nextEmptyPacketKey
Packets key to use for next empty packet.
UDPPacket GetEmptyPacket(void)
Gets a packet for use in PushDataPacket/PushFECPacket.
virtual void PushDataPacket(const UDPPacket &)=0
PacketBuffer(unsigned int bitrate)
void FreePacket(const UDPPacket &packet)
Frees an RTPDataPacket returned by PopDataPacket.
bool HasAvailablePacket(void) const
Returns true if there are ordered packets ready for processing.
virtual ~PacketBuffer()=default