![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Packets and packet processing. More...
Classes | |
class | ConcurrentQueue |
Concurrent blocking packet queue. More... | |
class | DelayedReader |
Delayed reader. More... | |
struct | FEC |
FECFRAME packet. More... | |
class | IComposer |
Packet composer interface. More... | |
class | Interleaver |
Interleaves packets to transmit them in pseudo random order. More... | |
class | IParser |
Packet parser interface. More... | |
class | IReader |
Packet reader interface. More... | |
class | IWriter |
Packet writer interface. More... | |
class | Packet |
Packet. More... | |
class | PacketPool |
Packet pool. More... | |
class | Queue |
Packet queue. More... | |
class | Router |
Route packets to writers. More... | |
struct | RTP |
RTP packet. More... | |
class | SortedQueue |
Sorted packet queue. More... | |
struct | UDP |
UDP packet. More... | |
class | Address |
Network address. More... | |
class | address_to_str |
Convert network address to string. More... | |
Typedefs | |
typedef core::SharedPtr< Packet > | PacketPtr |
Packet smart pointer. More... | |
typedef uint32_t | source_t |
Packet source ID identifying packet stream. More... | |
typedef uint16_t | seqnum_t |
Packet sequence number in packet stream. More... | |
typedef int16_t | seqnum_diff_t |
Packet sequence numbers difference. More... | |
typedef uint32_t | timestamp_t |
Audio packet timestamp. More... | |
typedef int32_t | timestamp_diff_t |
Audio packet timestamps difference. More... | |
typedef uint32_t | channel_mask_t |
Bitmask of channels present in audio packet. More... | |
typedef uint16_t | blknum_t |
FEC block number in a packet stream. More... | |
typedef int16_t | blknum_diff_t |
FEC block numbers difference. More... | |
Enumerations | |
enum | FECScheme { FEC_None , FEC_ReedSolomon_M8 , FEC_LDPC_Staircase } |
FECFRAME scheme. More... | |
enum | { PrintPayload = (1 << 0) } |
Print flags. More... | |
Functions | |
const char * | fec_scheme_to_str (FECScheme) |
FEC scheme to string. More... | |
void | print (const Packet &packet, int flags) |
Print packet to stderr. More... | |
seqnum_diff_t | seqnum_diff (seqnum_t a, seqnum_t b) |
Compute difference between two seqnums. More... | |
bool | seqnum_lt (seqnum_t a, seqnum_t b) |
Check if a is before b taking possible wrap into account. More... | |
bool | seqnum_le (seqnum_t a, seqnum_t b) |
Check if a is before or equal to b taking possible wrap into account. More... | |
timestamp_diff_t | timestamp_diff (timestamp_t a, timestamp_t b) |
Compute difference between two timestamps. More... | |
bool | timestamp_lt (timestamp_t a, timestamp_t b) |
Check if a is before b taking possible wrap into account. More... | |
bool | timestamp_le (timestamp_t a, timestamp_t b) |
Check if a is before or equal to b taking possible wrap into account. More... | |
timestamp_diff_t | timestamp_from_ns (core::nanoseconds_t ns, size_t sample_rate) |
Convert nanoseconds to number of samples. More... | |
core::nanoseconds_t | timestamp_to_ns (timestamp_diff_t ts, size_t sample_rate) |
Convert number of samples to nanoseconds. More... | |
blknum_diff_t | blknum_diff (blknum_t a, blknum_t b) |
Compute difference between two FEC block numbers. More... | |
bool | blknum_lt (blknum_t a, blknum_t b) |
Check if a is before b taking possible wrap into account. More... | |
bool | blknum_le (blknum_t a, blknum_t b) |
Check if a is before or equal to b taking possible wrap into account. More... | |
Packets and packet processing.
typedef int16_t roc::packet::blknum_diff_t |
typedef uint16_t roc::packet::blknum_t |
typedef uint32_t roc::packet::channel_mask_t |
typedef core::SharedPtr<Packet> roc::packet::PacketPtr |
typedef int16_t roc::packet::seqnum_diff_t |
typedef uint16_t roc::packet::seqnum_t |
typedef uint32_t roc::packet::source_t |
typedef int32_t roc::packet::timestamp_diff_t |
typedef uint32_t roc::packet::timestamp_t |
anonymous enum |
|
inline |
void roc::packet::print | ( | const Packet & | packet, |
int | flags | ||
) |
Print packet to stderr.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |