pub struct SystemHeader {
pub rate_bound: u32,
pub audio_bound: u8,
pub fixed_flag: bool,
pub csps_flag: bool,
pub system_audio_lock_flag: bool,
pub system_video_lock_flag: bool,
pub video_bound: u8,
pub packet_rate_restriction_flag: bool,
pub std_buffer_bounds: Vec<StdBufferBound>,
}Expand description
A parsed system header.
Fields§
§rate_bound: u32Upper bound on program_mux_rate across all packs (22-bit, 50 B/s units).
audio_bound: u8Upper bound on simultaneously-active audio streams (6-bit).
fixed_flag: boolFixed / variable bitrate indicator.
csps_flag: boolConstrained system parameters flag.
system_audio_lock_flag: boolSystem audio lock flag.
system_video_lock_flag: boolSystem video lock flag.
video_bound: u8Upper bound on simultaneously-active video streams (5-bit).
packet_rate_restriction_flag: boolPacket rate restriction flag.
std_buffer_bounds: Vec<StdBufferBound>Per-stream P-STD buffer bounds (the while (nextbits() == '1') loop).
Trait Implementations§
Source§impl Clone for SystemHeader
impl Clone for SystemHeader
Source§fn clone(&self) -> SystemHeader
fn clone(&self) -> SystemHeader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SystemHeader
impl Debug for SystemHeader
impl Eq for SystemHeader
Source§impl<'a> Parse<'a> for SystemHeader
impl<'a> Parse<'a> for SystemHeader
Source§impl PartialEq for SystemHeader
impl PartialEq for SystemHeader
Source§impl Serialize for SystemHeader
impl Serialize for SystemHeader
Source§impl Serialize for SystemHeader
impl Serialize for SystemHeader
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl StructuralPartialEq for SystemHeader
Auto Trait Implementations§
impl Freeze for SystemHeader
impl RefUnwindSafe for SystemHeader
impl Send for SystemHeader
impl Sync for SystemHeader
impl Unpin for SystemHeader
impl UnsafeUnpin for SystemHeader
impl UnwindSafe for SystemHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more