Skip to main content

MultiplexBufferUtilizationDescriptor

Struct MultiplexBufferUtilizationDescriptor 

Source
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 = 0 marks the two bound fields as undefined — callers must ignore them in that case.
  • bound_valid_flag = 1 makes both bounds valid. Each bound is in units of (27 MHz / 300) = 90 kHz clock periods (the LTW_offset unit defined in §2.4.3.4) and bounds the value any future ltw_offset field 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: bool

bound_valid_flag — when false, the two bound fields are undefined and callers should ignore them.

§ltw_offset_lower_bound: u16

Raw 15-bit LTW_offset_lower_bound value (units of 90 kHz clock periods). Meaningful only when bound_valid_flag == true.

§ltw_offset_upper_bound: u16

Raw 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

Source§

fn clone(&self) -> MultiplexBufferUtilizationDescriptor

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for MultiplexBufferUtilizationDescriptor

Source§

impl Debug for MultiplexBufferUtilizationDescriptor

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for MultiplexBufferUtilizationDescriptor

Source§

impl PartialEq for MultiplexBufferUtilizationDescriptor

Source§

fn eq(&self, other: &MultiplexBufferUtilizationDescriptor) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for MultiplexBufferUtilizationDescriptor

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.