![]() |
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 |
| Network packets and packet processing. | |
Typedefs | |
| typedef uint32_t | roc::packet::stream_source_t |
| Packet stream identifier. | |
| typedef uint32_t | roc::packet::stream_timestamp_t |
| Packet stream timestamp. | |
| typedef int32_t | roc::packet::stream_timestamp_diff_t |
| Packet stream timestamp delta. | |
| typedef uint16_t | roc::packet::seqnum_t |
| Packet sequence number. | |
| typedef int16_t | roc::packet::seqnum_diff_t |
| Packet sequence number delta. | |
| typedef uint32_t | roc::packet::ext_seqnum_t |
| Extended sequence number. | |
| typedef int32_t | roc::packet::ext_seqnum_diff_t |
| Extended sequence number delta. | |
| typedef uint16_t | roc::packet::blknum_t |
| FEC packet block number. | |
| typedef int16_t | roc::packet::blknum_diff_t |
| FEC packet block number delta. | |
Functions | |
| stream_timestamp_diff_t | roc::packet::stream_timestamp_diff (const stream_timestamp_t a, const stream_timestamp_t b) |
| Compute difference between two timestamps. | |
| bool | roc::packet::stream_timestamp_lt (const stream_timestamp_t a, const stream_timestamp_t b) |
Check if a is before b, taking possible wrap into account. | |
| bool | roc::packet::stream_timestamp_le (const stream_timestamp_t a, const stream_timestamp_t b) |
Check if a is before or equal to b, taking possible wrap into account. | |
| stream_timestamp_t | roc::packet::ns_2_stream_timestamp (core::nanoseconds_t ns, size_t sample_rate) |
| Convert nanoseconds to stream timestamp. | |
| core::nanoseconds_t | roc::packet::stream_timestamp_2_ns (stream_timestamp_t ts, size_t sample_rate) |
| Convert stream timestamp.to nanoseconds. | |
| stream_timestamp_diff_t | roc::packet::ns_2_stream_timestamp_delta (core::nanoseconds_t ns, size_t sample_rate) |
| Convert nanoseconds to stream timestamp delta. | |
| core::nanoseconds_t | roc::packet::stream_timestamp_delta_2_ns (stream_timestamp_diff_t ts, size_t sample_rate) |
| Convert stream timestamp.delta to nanoseconds. | |
| seqnum_diff_t | roc::packet::seqnum_diff (const seqnum_t a, const seqnum_t b) |
| Compute difference between two seqnums. | |
| bool | roc::packet::seqnum_lt (const seqnum_t a, const seqnum_t b) |
Check if a is before b, taking possible wrap into account. | |
| bool | roc::packet::seqnum_le (const seqnum_t a, const seqnum_t b) |
Check if a is before or equal to b, taking possible wrap into account. | |
| ext_seqnum_diff_t | roc::packet::ext_seqnum_diff (const ext_seqnum_t a, const ext_seqnum_t b) |
| Compute difference between two extended seqnums. | |
| bool | roc::packet::ext_seqnum_lt (const ext_seqnum_t a, const ext_seqnum_t b) |
Check if a is before b, taking possible wrap into account. | |
| bool | roc::packet::ext_seqnum_le (const ext_seqnum_t a, const ext_seqnum_t b) |
Check if a is before or equal to b, taking possible wrap into account. | |
| blknum_diff_t | roc::packet::blknum_diff (const blknum_t a, const blknum_t b) |
| Compute difference between two FEC packet block numbers. | |
| bool | roc::packet::blknum_lt (const blknum_t a, const blknum_t b) |
Check if a is before b, taking possible wrap into account. | |
| bool | roc::packet::blknum_le (const blknum_t a, const blknum_t b) |
Check if a is before or equal to b, taking possible wrap into account. | |
Various units used in packets.
Definition in file units.h.