pub struct FlacStats {
pub frames: u64,
pub total_samples: u64,
pub min_frame: u32,
pub max_frame: u32,
pub min_block: u32,
pub max_block: u32,
pub unparsed: bool,
/* private fields */
}Expand description
What a muxer learns from the FLAC frames it writes.
Fields§
§frames: u64§total_samples: u64§min_frame: u32§max_frame: u32§min_block: u32Smallest block size of every frame but the last (which may be short).
max_block: u32§unparsed: boolA frame whose header did not parse: the totals are unknown.
Implementations§
Source§impl FlacStats
impl FlacStats
Sourcepub fn rewrite(&self, streaminfo: &[u8; 34]) -> [u8; 34]
pub fn rewrite(&self, streaminfo: &[u8; 34]) -> [u8; 34]
streaminfo (the 34-byte body) with the block and frame size bounds
and the total sample count from the frames written. The MD5 is kept
only when the original declared the same total (the same audio);
otherwise it is zeroed, which means “unknown”. Rate, channels and bit
depth are left alone. Unchanged when no frame was written or a frame
header did not parse.
Trait Implementations§
impl Eq for FlacStats
impl StructuralPartialEq for FlacStats
Auto Trait Implementations§
impl Forget for FlacStats
impl Freeze for FlacStats
impl Move for FlacStats
impl RefUnwindSafe for FlacStats
impl Send for FlacStats
impl Sync for FlacStats
impl Unpin for FlacStats
impl UnsafeUnpin for FlacStats
impl UnwindSafe for FlacStats
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