Lines Matching refs:psDec
36 …silk_decoder_state *psDec, /* I/O Decoder state pointer … in silk_decoder_set_fs() argument
44 celt_assert( psDec->nb_subfr == MAX_NB_SUBFR || psDec->nb_subfr == MAX_NB_SUBFR/2 ); in silk_decoder_set_fs()
47 psDec->subfr_length = silk_SMULBB( SUB_FRAME_LENGTH_MS, fs_kHz ); in silk_decoder_set_fs()
48 frame_length = silk_SMULBB( psDec->nb_subfr, psDec->subfr_length ); in silk_decoder_set_fs()
51 if( psDec->fs_kHz != fs_kHz || psDec->fs_API_hz != fs_API_Hz ) { in silk_decoder_set_fs()
53 … ret += silk_resampler_init( &psDec->resampler_state, silk_SMULBB( fs_kHz, 1000 ), fs_API_Hz, 0 ); in silk_decoder_set_fs()
55 psDec->fs_API_hz = fs_API_Hz; in silk_decoder_set_fs()
58 if( psDec->fs_kHz != fs_kHz || frame_length != psDec->frame_length ) { in silk_decoder_set_fs()
60 if( psDec->nb_subfr == MAX_NB_SUBFR ) { in silk_decoder_set_fs()
61 psDec->pitch_contour_iCDF = silk_pitch_contour_NB_iCDF; in silk_decoder_set_fs()
63 psDec->pitch_contour_iCDF = silk_pitch_contour_10_ms_NB_iCDF; in silk_decoder_set_fs()
66 if( psDec->nb_subfr == MAX_NB_SUBFR ) { in silk_decoder_set_fs()
67 psDec->pitch_contour_iCDF = silk_pitch_contour_iCDF; in silk_decoder_set_fs()
69 psDec->pitch_contour_iCDF = silk_pitch_contour_10_ms_iCDF; in silk_decoder_set_fs()
72 if( psDec->fs_kHz != fs_kHz ) { in silk_decoder_set_fs()
73 psDec->ltp_mem_length = silk_SMULBB( LTP_MEM_LENGTH_MS, fs_kHz ); in silk_decoder_set_fs()
75 psDec->LPC_order = MIN_LPC_ORDER; in silk_decoder_set_fs()
76 psDec->psNLSF_CB = &silk_NLSF_CB_NB_MB; in silk_decoder_set_fs()
78 psDec->LPC_order = MAX_LPC_ORDER; in silk_decoder_set_fs()
79 psDec->psNLSF_CB = &silk_NLSF_CB_WB; in silk_decoder_set_fs()
82 psDec->pitch_lag_low_bits_iCDF = silk_uniform8_iCDF; in silk_decoder_set_fs()
84 psDec->pitch_lag_low_bits_iCDF = silk_uniform6_iCDF; in silk_decoder_set_fs()
86 psDec->pitch_lag_low_bits_iCDF = silk_uniform4_iCDF; in silk_decoder_set_fs()
91 psDec->first_frame_after_reset = 1; in silk_decoder_set_fs()
92 psDec->lagPrev = 100; in silk_decoder_set_fs()
93 psDec->LastGainIndex = 10; in silk_decoder_set_fs()
94 psDec->prevSignalType = TYPE_NO_VOICE_ACTIVITY; in silk_decoder_set_fs()
95 silk_memset( psDec->outBuf, 0, sizeof(psDec->outBuf)); in silk_decoder_set_fs()
96 silk_memset( psDec->sLPC_Q14_buf, 0, sizeof(psDec->sLPC_Q14_buf) ); in silk_decoder_set_fs()
99 psDec->fs_kHz = fs_kHz; in silk_decoder_set_fs()
100 psDec->frame_length = frame_length; in silk_decoder_set_fs()
104 celt_assert( psDec->frame_length > 0 && psDec->frame_length <= MAX_FRAME_LENGTH ); in silk_decoder_set_fs()