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.