Skip to main content

SilkEncoderStateCommon

Struct SilkEncoderStateCommon 

Source
pub struct SilkEncoderStateCommon {
Show 62 fields pub indices: SideInfoIndices, pub in_hp_state: [i32; 2], pub snr_db_q7: i32, pub input_quality_bands_q15: [i32; 4], pub speech_activity_q8: i32, pub use_cbr: i32, pub fs_khz: i32, pub nb_subfr: i32, pub warping_q16: i32, pub la_shape: i32, pub shape_win_length: i32, pub shaping_lpc_order: i32, pub predict_lpc_order: i32, pub subfr_length: i32, pub la_pitch: i32, pub frame_length: i32, pub ltp_mem_length: i32, pub pitch_lpc_win_length: i32, pub pitch_estimation_complexity: i32, pub pitch_estimation_threshold_q16: i32, pub first_frame_after_reset: i32, pub prev_signal_type: i32, pub input_tilt_q15: i32, pub n_states_delayed_decision: i32, pub prev_lag: i32, pub x_buf: [i16; 720], pub x_buf_idx: i32, pub prev_nlsf_q15: [i16; 16], pub nlsf_mu_q20: i32, pub n_nlsf_survivors: i32, pub variable_hp_smth1_q15: i32, pub variable_hp_smth2_q15: i32, pub s_lp: SilkLPState, pub s_vad: SilkVADState, pub lbrr_enabled: i32, pub indices_lbrr: [SideInfoIndices; 3], pub pulses_lbrr: [[i8; 320]; 3], pub n_frames_encoded: i32, pub n_frames_per_packet: i32, pub target_rate_bps: i32, pub packet_size_ms: i32, pub complexity: i32, pub sum_log_gain_q7: i32, pub packet_loss_perc: i32, pub lbrr_flag: i8, pub no_speech_counter: i32, pub in_dtx: i32, pub vad_flags: [i32; 3], pub frame_counter: i32, pub ec_prev_signal_type: i32, pub ec_prev_lag_index: i16, pub frames_since_onset: i32, pub input_buf: [i16; 322], pub input_buf_ix: i32, pub controlled_since_last_payload: i32, pub use_interpolated_nlsfs: i32, pub use_dtx: i32, pub use_in_band_fec: i32, pub lbrr_gain_increases: i32, pub lbrr_flags: [i32; 3], pub prefill_flag: i32, pub n_channels: i32,
}

Fields§

§indices: SideInfoIndices§in_hp_state: [i32; 2]§snr_db_q7: i32§input_quality_bands_q15: [i32; 4]§speech_activity_q8: i32§use_cbr: i32§fs_khz: i32§nb_subfr: i32§warping_q16: i32§la_shape: i32§shape_win_length: i32§shaping_lpc_order: i32§predict_lpc_order: i32§subfr_length: i32§la_pitch: i32§frame_length: i32§ltp_mem_length: i32§pitch_lpc_win_length: i32§pitch_estimation_complexity: i32§pitch_estimation_threshold_q16: i32§first_frame_after_reset: i32§prev_signal_type: i32§input_tilt_q15: i32§n_states_delayed_decision: i32§prev_lag: i32§x_buf: [i16; 720]§x_buf_idx: i32§prev_nlsf_q15: [i16; 16]§nlsf_mu_q20: i32§n_nlsf_survivors: i32§variable_hp_smth1_q15: i32§variable_hp_smth2_q15: i32§s_lp: SilkLPState§s_vad: SilkVADState§lbrr_enabled: i32§indices_lbrr: [SideInfoIndices; 3]§pulses_lbrr: [[i8; 320]; 3]§n_frames_encoded: i32§n_frames_per_packet: i32§target_rate_bps: i32§packet_size_ms: i32§complexity: i32§sum_log_gain_q7: i32§packet_loss_perc: i32§lbrr_flag: i8§no_speech_counter: i32§in_dtx: i32§vad_flags: [i32; 3]§frame_counter: i32§ec_prev_signal_type: i32§ec_prev_lag_index: i16§frames_since_onset: i32§input_buf: [i16; 322]§input_buf_ix: i32§controlled_since_last_payload: i32§use_interpolated_nlsfs: i32§use_dtx: i32§use_in_band_fec: i32§lbrr_gain_increases: i32§lbrr_flags: [i32; 3]§prefill_flag: i32§n_channels: i32

Trait Implementations§

Source§

impl Default for SilkEncoderStateCommon

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

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> 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, 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.