15 m_nextEmptyPacketKey(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;
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.
uint64_t m_nextEmptyPacketKey
Packets key to use for next empty packet.
UDPPacket GetEmptyPacket(void)
Gets a packet for use in PushDataPacket/PushFECPacket.
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.
uint64_t GetKey(void) const
Convenience inline random number generator functions.
uint32_t MythRandom()
generate 32 random bits