pub enum SubframeWidth {
Common(Subframe<i32>),
Wide(Subframe<i64>),
}Expand description
A 32 or 64-bit FLAC file subframe
The FLAC format itself is limited to 32-bit samples for input and output, as shown in the STREAMINFO metadata block. However, channel correlation means that the side (difference) channel needs 1 additional bit. Therefore, the side channel of a 32-bit stereo stream needs 33 bits to store its samples.
Such subframes are considered “wide” and need to handle 64-bit samples internally.
This is an extremely rare case in practice.
Variants§
Trait Implementations§
Source§impl Debug for SubframeWidth
impl Debug for SubframeWidth
Source§impl PartialEq for SubframeWidth
impl PartialEq for SubframeWidth
impl Eq for SubframeWidth
impl StructuralPartialEq for SubframeWidth
Auto Trait Implementations§
impl Freeze for SubframeWidth
impl RefUnwindSafe for SubframeWidth
impl Send for SubframeWidth
impl Sync for SubframeWidth
impl Unpin for SubframeWidth
impl UnwindSafe for SubframeWidth
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