pub struct VorbisResidue {
pub residue_type: ResidueType,
pub begin: u32,
pub end: u32,
pub partition_size: u32,
pub classifications: u8,
pub classbook: u8,
}Expand description
Vorbis residue configuration
Fields§
§residue_type: ResidueTypeResidue type
begin: u32Begin of coded residue range
end: u32End of coded residue range
partition_size: u32Partition size
classifications: u8Number of classification stages
classbook: u8Classbook index
Implementations§
Source§impl VorbisResidue
impl VorbisResidue
Sourcepub fn new(residue_type: ResidueType) -> Self
pub fn new(residue_type: ResidueType) -> Self
Create a new residue configuration
Sourcepub fn decode_residue(
&self,
_reader: &mut BitstreamReader<'_>,
_codebooks: &[VorbisCodebook],
n: usize,
channels: usize,
) -> Vec<Vec<i32>>
pub fn decode_residue( &self, _reader: &mut BitstreamReader<'_>, _codebooks: &[VorbisCodebook], n: usize, channels: usize, ) -> Vec<Vec<i32>>
Decode residue vectors from the bitstream for each channel.
Trait Implementations§
Source§impl Clone for VorbisResidue
impl Clone for VorbisResidue
Source§fn clone(&self) -> VorbisResidue
fn clone(&self) -> VorbisResidue
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VorbisResidue
impl RefUnwindSafe for VorbisResidue
impl Send for VorbisResidue
impl Sync for VorbisResidue
impl Unpin for VorbisResidue
impl UnwindSafe for VorbisResidue
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)