Skip to main content

Stage

Enum Stage 

Source
pub enum Stage {
Show 21 variants Resample = 0, SilkVad = 1, SilkPitch = 2, SilkNoise = 3, SilkPred = 4, SilkNsq = 5, SilkCode = 6, CeltPreemph = 7, CeltTransient = 8, CeltPrefilter = 9, CeltMdct = 10, CeltBands = 11, CeltCoarse = 12, CeltTf = 13, CeltAlloc = 14, CeltFine = 15, CeltPvq = 16, CeltSynth = 17, SilkNsqLpc = 18, SilkNsqShape = 19, Total = 20,
}
Expand description

A timed pipeline stage. Order matters: everything before Total is a sub-component summed for the mgmt/other residue.

Variants§

§

Resample = 0

hp_cutoff / f32→i16 conversion + SILK input resampling (down2 / down2_3).

§

SilkVad = 1

silk_vad_get_sa_q8 (voice activity detection).

§

SilkPitch = 2

silk_find_pitch_lags_fix (open-loop pitch analysis).

§

SilkNoise = 3

silk_noise_shape_analysis_fix (shaping filter derivation).

§

SilkPred = 4

silk_find_pred_coefs_fix (LPC/LTP analysis + NLSF quantization).

§

SilkNsq = 5

silk_nsq / silk_nsq_del_dec (noise-shaping quantizer, incl. rate-loop reruns).

§

SilkCode = 6

silk_encode_indices + silk_encode_pulses (range coding of SILK symbols).

§

CeltPreemph = 7

Pre-emphasis + input/overlap buffer plumbing.

§

CeltTransient = 8

transient_analysis (short/long block decision).

§

CeltPrefilter = 9

run_prefilter (pitch pre-filter incl. its pitch search).

§

CeltMdct = 10

mode.mdct.forward calls (the forward MDCT(s)).

§

CeltBands = 11

compute_band_energies + normalise_bands.

§

CeltCoarse = 12

quant_coarse_energy (coarse energy quantization + laplace coding).

§

CeltTf = 13

tf_analysis + tf_encode (time-frequency resolution switching).

§

CeltAlloc = 14

dynalloc_analysis + alloc_trim_analysis + clt_compute_allocation.

§

CeltFine = 15

quant_fine_energy.

§

CeltPvq = 16

quant_all_bands (PVQ search + encode — the expected workhorse).

§

CeltSynth = 17

Encoder-side synthesis after coding (denormalise/IMDCT for prefilter memory).

§

SilkNsqLpc = 18

silk_noise_shape_quantizer_short_prediction (16-tap LPC dot product).

§

SilkNsqShape = 19

Warped shaping AR filter (serial recurrence) + RD decision, per state.

§

Total = 20

Wraps the whole OpusEncoder::encode() call — the denominator.

Trait Implementations§

Source§

impl Clone for Stage

Source§

fn clone(&self) -> Stage

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Stage

Auto Trait Implementations§

§

impl Freeze for Stage

§

impl RefUnwindSafe for Stage

§

impl Send for Stage

§

impl Sync for Stage

§

impl Unpin for Stage

§

impl UnsafeUnpin for Stage

§

impl UnwindSafe for Stage

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.