pub struct AnalysisStats {
pub output: AnalysisOutputKind,
pub params: MbeParams,
pub tone_detect: Option<ToneDetection>,
}Expand description
Encode-side per-frame stats.
Fields§
§output: AnalysisOutputKindWhat the analysis encoder emitted (Voice / Silence / Tone).
params: MbeParamsThe MBE parameters that were quantized into the wire bits.
Populated for both Voice and Silence (silence dispatches
the rate-appropriate placeholder).
tone_detect: Option<ToneDetection>Tone-detection signal for the input frame, populated whenever
Vocoder::set_tone_detection is enabled and the detector
matched an Annex T entry. Decoupled from output because Phase
1 IMBE has no tone-frame opcode (per BABA-A): on full-rate the
detector still surfaces (I_D, A_D) here for application-layer
signaling (LCW, paging, dispatch) while the wire frame remains
a regular voice / silence frame. On half-rate AMBE+2 a positive
detection is also dispatched as an Annex T tone frame (so
output == Tone and this field both populate).
Trait Implementations§
Source§impl Clone for AnalysisStats
impl Clone for AnalysisStats
Source§fn clone(&self) -> AnalysisStats
fn clone(&self) -> AnalysisStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more