|
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Various units used in packets. More...
Go to the source code of this file.
Namespaces | |
| namespace | roc |
| Root namespace. | |
| namespace | roc::packet |
| Packets and packet processing. | |
Typedefs | |
| typedef uint32_t | roc::packet::source_t |
| Packet source ID identifying packet stream. More... | |
| typedef uint16_t | roc::packet::seqnum_t |
| Packet sequence number in packet stream. More... | |
| typedef int16_t | roc::packet::seqnum_diff_t |
| Packet sequence numbers difference. More... | |
| typedef uint32_t | roc::packet::timestamp_t |
| Audio packet timestamp. More... | |
| typedef int32_t | roc::packet::timestamp_diff_t |
| Audio packet timestamps difference. More... | |
| typedef uint32_t | roc::packet::channel_mask_t |
| Bitmask of channels present in audio packet. More... | |
| typedef uint16_t | roc::packet::blknum_t |
| FEC block number in a packet stream. More... | |
| typedef int16_t | roc::packet::blknum_diff_t |
| FEC block numbers difference. More... | |
Functions | |
| seqnum_diff_t | roc::packet::seqnum_diff (seqnum_t a, seqnum_t b) |
| Compute difference between two seqnums. More... | |
| bool | roc::packet::seqnum_lt (seqnum_t a, seqnum_t b) |
| Check if a is before b taking possible wrap into account. More... | |
| bool | roc::packet::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 | roc::packet::timestamp_diff (timestamp_t a, timestamp_t b) |
| Compute difference between two timestamps. More... | |
| bool | roc::packet::timestamp_lt (timestamp_t a, timestamp_t b) |
| Check if a is before b taking possible wrap into account. More... | |
| bool | roc::packet::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 | roc::packet::timestamp_from_ns (core::nanoseconds_t ns, size_t sample_rate) |
| Convert nanoseconds to number of samples. More... | |
| core::nanoseconds_t | roc::packet::timestamp_to_ns (timestamp_diff_t ts, size_t sample_rate) |
| Convert number of samples to nanoseconds. More... | |
| blknum_diff_t | roc::packet::blknum_diff (blknum_t a, blknum_t b) |
| Compute difference between two FEC block numbers. More... | |
| bool | roc::packet::blknum_lt (blknum_t a, blknum_t b) |
| Check if a is before b taking possible wrap into account. More... | |
| bool | roc::packet::blknum_le (blknum_t a, blknum_t b) |
| Check if a is before or equal to b taking possible wrap into account. More... | |
Various units used in packets.
Definition in file units.h.