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 reserved_bits: u8,
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.
reserved_bits: u8The 7 reserved_bits after packet_rate_restriction_flag
(Table 2-40), preserved so a header whose encoder wrote something
other than the conventional all-ones (0x7F) re-serializes
byte-identically (audit r14-MPS-W8).
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§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
Available on crate feature serde only.
impl Serialize for SystemHeader
Available on crate feature
serde only.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.Source§fn serialize_into(&self, buf: &mut [u8]) -> Result<usize>
fn serialize_into(&self, buf: &mut [u8]) -> Result<usize>
Write the serialised form into
buf. Returns the number of bytes
written (always equal to serialized_len()).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