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