Lines Matching refs:fs_kHz

44     opus_int                        fs_kHz              /* I                        */
49 opus_int fs_kHz, /* I */
73 opus_int fs_kHz, ret = 0; in silk_control_encoder() local
88 if( psEnc->sCmn.API_fs_Hz != psEnc->sCmn.prev_API_fs_Hz && psEnc->sCmn.fs_kHz > 0 ) { in silk_control_encoder()
90 ret += silk_setup_resamplers( psEnc, psEnc->sCmn.fs_kHz ); in silk_control_encoder()
100 fs_kHz = silk_control_audio_bandwidth( &psEnc->sCmn, encControl ); in silk_control_encoder()
102 fs_kHz = force_fs_kHz; in silk_control_encoder()
107 ret += silk_setup_resamplers( psEnc, fs_kHz ); in silk_control_encoder()
112 ret += silk_setup_fs( psEnc, fs_kHz, encControl->payloadSize_ms ); in silk_control_encoder()
136 opus_int fs_kHz /* I */ in silk_setup_resamplers() argument
142 if( psEnc->sCmn.fs_kHz != fs_kHz || psEnc->sCmn.prev_API_fs_Hz != psEnc->sCmn.API_fs_Hz ) in silk_setup_resamplers()
144 if( psEnc->sCmn.fs_kHz == 0 ) { in silk_setup_resamplers()
146 …ret += silk_resampler_init( &psEnc->sCmn.resampler_state, psEnc->sCmn.API_fs_Hz, fs_kHz * 1000, 1 … in silk_setup_resamplers()
161 old_buf_samples = buf_length_ms * psEnc->sCmn.fs_kHz; in silk_setup_resamplers()
164 new_buf_samples = buf_length_ms * fs_kHz; in silk_setup_resamplers()
172 …ret += silk_resampler_init( temp_resampler_state, silk_SMULBB( psEnc->sCmn.fs_kHz, 1000 ), psEnc->… in silk_setup_resamplers()
182 …ampler_init( &psEnc->sCmn.resampler_state, psEnc->sCmn.API_fs_Hz, silk_SMULBB( fs_kHz, 1000 ), 1 ); in silk_setup_resamplers()
201 opus_int fs_kHz, /* I */ in silk_setup_fs() argument
218 psEnc->sCmn.frame_length = silk_SMULBB( PacketSize_ms, fs_kHz ); in silk_setup_fs()
219 psEnc->sCmn.pitch_LPC_win_length = silk_SMULBB( FIND_PITCH_LPC_WIN_MS_2_SF, fs_kHz ); in silk_setup_fs()
220 if( psEnc->sCmn.fs_kHz == 8 ) { in silk_setup_fs()
228 psEnc->sCmn.frame_length = silk_SMULBB( 20, fs_kHz ); in silk_setup_fs()
229 psEnc->sCmn.pitch_LPC_win_length = silk_SMULBB( FIND_PITCH_LPC_WIN_MS, fs_kHz ); in silk_setup_fs()
230 if( psEnc->sCmn.fs_kHz == 8 ) { in silk_setup_fs()
241 celt_assert( fs_kHz == 8 || fs_kHz == 12 || fs_kHz == 16 ); in silk_setup_fs()
243 if( psEnc->sCmn.fs_kHz != fs_kHz ) { in silk_setup_fs()
261 psEnc->sCmn.fs_kHz = fs_kHz; in silk_setup_fs()
262 if( psEnc->sCmn.fs_kHz == 8 ) { in silk_setup_fs()
275 if( psEnc->sCmn.fs_kHz == 8 || psEnc->sCmn.fs_kHz == 12 ) { in silk_setup_fs()
282 psEnc->sCmn.subfr_length = SUB_FRAME_LENGTH_MS * fs_kHz; in silk_setup_fs()
284 psEnc->sCmn.ltp_mem_length = silk_SMULBB( LTP_MEM_LENGTH_MS, fs_kHz ); in silk_setup_fs()
285 psEnc->sCmn.la_pitch = silk_SMULBB( LA_PITCH_MS, fs_kHz ); in silk_setup_fs()
286 psEnc->sCmn.max_pitch_lag = silk_SMULBB( 18, fs_kHz ); in silk_setup_fs()
288 psEnc->sCmn.pitch_LPC_win_length = silk_SMULBB( FIND_PITCH_LPC_WIN_MS, fs_kHz ); in silk_setup_fs()
290 psEnc->sCmn.pitch_LPC_win_length = silk_SMULBB( FIND_PITCH_LPC_WIN_MS_2_SF, fs_kHz ); in silk_setup_fs()
292 if( psEnc->sCmn.fs_kHz == 16 ) { in silk_setup_fs()
294 } else if( psEnc->sCmn.fs_kHz == 12 ) { in silk_setup_fs()
321 psEncC->la_shape = 3 * psEncC->fs_kHz; in silk_setup_complexity()
331 psEncC->la_shape = 5 * psEncC->fs_kHz; in silk_setup_complexity()
341 psEncC->la_shape = 3 * psEncC->fs_kHz; in silk_setup_complexity()
351 psEncC->la_shape = 5 * psEncC->fs_kHz; in silk_setup_complexity()
361 psEncC->la_shape = 5 * psEncC->fs_kHz; in silk_setup_complexity()
365 …psEncC->warping_Q16 = psEncC->fs_kHz * SILK_FIX_CONST( WARPING_MULTIPLIER, 16 … in silk_setup_complexity()
371 psEncC->la_shape = 5 * psEncC->fs_kHz; in silk_setup_complexity()
375 …psEncC->warping_Q16 = psEncC->fs_kHz * SILK_FIX_CONST( WARPING_MULTIPLIER, 16 … in silk_setup_complexity()
381 psEncC->la_shape = 5 * psEncC->fs_kHz; in silk_setup_complexity()
385 …psEncC->warping_Q16 = psEncC->fs_kHz * SILK_FIX_CONST( WARPING_MULTIPLIER, 16 … in silk_setup_complexity()
390 psEncC->shapeWinLength = SUB_FRAME_LENGTH_MS * psEncC->fs_kHz + 2 * psEncC->la_shape; in silk_setup_complexity()