pub struct MultiplexBufferUtilizationDescriptor {
pub bound_valid_flag: bool,
pub ltw_offset_lower_bound: u16,
pub ltw_offset_upper_bound: u16,
}Expand description
multiplex_buffer_utilization_descriptor body (§2.6.22 Table 2-55).
An optional PMT descriptor that bounds the LTW (legal time window) offset values a re-multiplexer can expect to see for the program element(s) the descriptor refers to. Per §2.6.23:
bound_valid_flag = 0marks the two bound fields as undefined — callers must ignore them in that case.bound_valid_flag = 1makes both bounds valid. Each bound is in units of(27 MHz / 300) = 90 kHzclock periods (the LTW_offset unit defined in §2.4.3.4) and bounds the value any futureltw_offsetfield would carry on this stream until the next occurrence of this descriptor.
On the wire the body is exactly 4 bytes:
byte 0: bound_valid_flag (1) | LTW_offset_lower_bound bits 14..8 (7)
byte 1: LTW_offset_lower_bound bits 7..0 (8)
byte 2: reserved (1) | LTW_offset_upper_bound bits 14..8 (7)
byte 3: LTW_offset_upper_bound bits 7..0 (8)Spec note. The §2.6.22 Table 2-55 syntax row labels
LTW_offset_upper_bound as a 14-bit field, but the surrounding
semantic text (§2.6.23) describes it as a 15-bit field — the same
width as the adaptation-field ltw_offset in §2.4.3.4 / Table 2-7.
Together with the fixed reserved bit before the upper bound, the
15-bit width is the only width that lets the body sum to a clean
four-byte boundary (1 + 15 + 1 + 15 = 32). This parser follows the
15-bit reading because it matches both the semantic text and the
adaptation-field source field; a future spec corrigendum is the
expected path to close the typo.
Fields§
§bound_valid_flag: boolbound_valid_flag — when false, the two bound fields are
undefined and callers should ignore them.
ltw_offset_lower_bound: u16Raw 15-bit LTW_offset_lower_bound value (units of 90 kHz clock
periods). Meaningful only when bound_valid_flag == true.
ltw_offset_upper_bound: u16Raw 15-bit LTW_offset_upper_bound value (units of 90 kHz clock
periods). Meaningful only when bound_valid_flag == true.
Trait Implementations§
Source§impl Clone for MultiplexBufferUtilizationDescriptor
impl Clone for MultiplexBufferUtilizationDescriptor
Source§fn clone(&self) -> MultiplexBufferUtilizationDescriptor
fn clone(&self) -> MultiplexBufferUtilizationDescriptor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for MultiplexBufferUtilizationDescriptor
impl Eq for MultiplexBufferUtilizationDescriptor
Source§impl PartialEq for MultiplexBufferUtilizationDescriptor
impl PartialEq for MultiplexBufferUtilizationDescriptor
Source§fn eq(&self, other: &MultiplexBufferUtilizationDescriptor) -> bool
fn eq(&self, other: &MultiplexBufferUtilizationDescriptor) -> bool
self and other values to be equal, and is used by ==.