pub struct FrameHeader {
pub version: MpegVersion,
pub bitrate_kbps: u16,
pub sample_rate: u32,
pub channel_mode: ChannelMode,
}Expand description
Layer III frame header fields.
The padding bit is not part of this struct: real Layer III streams flip it
per frame (a bit-reservoir accounting detail owned by the encoder, not the
container), so it is a parameter of FrameHeader::frame_len and
Muxer::write_frame instead of a fixed per-session value.
Fields§
§version: MpegVersionMPEG version.
bitrate_kbps: u16Bitrate in kbps — must be one of the 14 standard values for version (Layer III).
sample_rate: u32Sample rate — must be one of the 3 standard rates for version.
channel_mode: ChannelModeChannel mode.
Implementations§
Trait Implementations§
Source§impl Clone for FrameHeader
impl Clone for FrameHeader
Source§fn clone(&self) -> FrameHeader
fn clone(&self) -> FrameHeader
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 moreimpl Copy for FrameHeader
Source§impl Debug for FrameHeader
impl Debug for FrameHeader
impl Eq for FrameHeader
Source§impl PartialEq for FrameHeader
impl PartialEq for FrameHeader
impl StructuralPartialEq for FrameHeader
Auto Trait Implementations§
impl Freeze for FrameHeader
impl RefUnwindSafe for FrameHeader
impl Send for FrameHeader
impl Sync for FrameHeader
impl Unpin for FrameHeader
impl UnsafeUnpin for FrameHeader
impl UnwindSafe for FrameHeader
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