#[non_exhaustive]pub enum Bandwidth {
Full,
Auto,
Hz(u32),
}Expand description
Coding bandwidth policy: the highest frequency the encoder codes.
Bands that start at or above the cutoff are not coded (ZERO_HCB), in long
and short blocks alike, for every channel except the LFE (which has its own
band limit).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Full
Code the whole spectrum at every bitrate: the encoder as it shipped in 2.1.2 (byte-identical).
Auto
A cutoff from the bitrate and channel count (see auto_bandwidth_hz):
17 kHz under 192 kbps, 20 kHz from there to under 160 kbps a channel,
the whole spectrum above. The default.
Hz(u32)
A fixed cutoff in Hz.
Trait Implementations§
impl Copy for Bandwidth
impl Eq for Bandwidth
impl StructuralPartialEq for Bandwidth
Auto Trait Implementations§
impl Forget for Bandwidth
impl Freeze for Bandwidth
impl Move for Bandwidth
impl RefUnwindSafe for Bandwidth
impl Send for Bandwidth
impl Sync for Bandwidth
impl Unpin for Bandwidth
impl UnsafeUnpin for Bandwidth
impl UnwindSafe for Bandwidth
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