pub enum VorbisQuality {
Q0,
Q2,
Q5,
Q7,
Q10,
}Expand description
Vorbis quality preset (maps to approximate bitrate).
Variants§
Q0
Q0 ≈ 64 kbps (low quality).
Q2
Q2 ≈ 96 kbps.
Q5
Q5 ≈ 160 kbps (default).
Q7
Q7 ≈ 224 kbps.
Q10
Q10 ≈ 320 kbps (high quality).
Implementations§
Source§impl VorbisQuality
impl VorbisQuality
Sourcepub fn bits_per_sample(&self) -> f64
pub fn bits_per_sample(&self) -> f64
Approximate target bitrate in bits-per-sample.
Sourcepub fn residue_step(&self) -> f64
pub fn residue_step(&self) -> f64
Quantisation step size for residue VQ.
Trait Implementations§
Source§impl Clone for VorbisQuality
impl Clone for VorbisQuality
Source§fn clone(&self) -> VorbisQuality
fn clone(&self) -> VorbisQuality
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VorbisQuality
impl Debug for VorbisQuality
Source§impl PartialEq for VorbisQuality
impl PartialEq for VorbisQuality
impl Copy for VorbisQuality
impl Eq for VorbisQuality
impl StructuralPartialEq for VorbisQuality
Auto Trait Implementations§
impl Freeze for VorbisQuality
impl RefUnwindSafe for VorbisQuality
impl Send for VorbisQuality
impl Sync for VorbisQuality
impl Unpin for VorbisQuality
impl UnsafeUnpin for VorbisQuality
impl UnwindSafe for VorbisQuality
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more