Go to the documentation of this file.
15 m_next_empty_packet_key(static_cast<uint64_t>(
MythRandom()) << 32)
52 static constexpr uint64_t k_mask_upper_32 = ~((UINT64_C(1) << (64 - 32)) - 1);
53 uint64_t top = packet.
GetKey() & k_mask_upper_32;
void FreePacket(const UDPPacket &packet)
Frees an RTPDataPacket returned by PopDataPacket.
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.
QMap< uint64_t, UDPPacket > m_empty_packets
Packets ready for reuse.
PacketBuffer(unsigned int bitrate)
UDPPacket PopDataPacket(void)
Fetches a data packet for processing.
uint32_t MythRandom()
generate 32 random bits
uint64_t GetKey(void) const
UDPPacket GetEmptyPacket(void)
Gets a packet for use in PushDataPacket/PushFECPacket.