• Home
  • Raw
  • Download

Lines Matching refs:psIndices

47     const SideInfoIndices *psIndices;  in silk_encode_indices()  local
50 psIndices = &psEncC->indices_LBRR[ FrameIndex ]; in silk_encode_indices()
52 psIndices = &psEncC->indices; in silk_encode_indices()
58 typeOffset = 2 * psIndices->signalType + psIndices->quantOffsetType; in silk_encode_indices()
73 …silk_assert( psIndices->GainsIndices[ 0 ] >= 0 && psIndices->GainsIndices[ 0 ] < MAX_DELTA_GAIN_QU… in silk_encode_indices()
74 ec_enc_icdf( psRangeEnc, psIndices->GainsIndices[ 0 ], silk_delta_gain_iCDF, 8 ); in silk_encode_indices()
77 … silk_assert( psIndices->GainsIndices[ 0 ] >= 0 && psIndices->GainsIndices[ 0 ] < N_LEVELS_QGAIN ); in silk_encode_indices()
78 …ec_enc_icdf( psRangeEnc, silk_RSHIFT( psIndices->GainsIndices[ 0 ], 3 ), silk_gain_iCDF[ psIndices in silk_encode_indices()
79 ec_enc_icdf( psRangeEnc, psIndices->GainsIndices[ 0 ] & 7, silk_uniform8_iCDF, 8 ); in silk_encode_indices()
84 …silk_assert( psIndices->GainsIndices[ i ] >= 0 && psIndices->GainsIndices[ i ] < MAX_DELTA_GAIN_QU… in silk_encode_indices()
85 ec_enc_icdf( psRangeEnc, psIndices->GainsIndices[ i ], silk_delta_gain_iCDF, 8 ); in silk_encode_indices()
91 …ec_enc_icdf( psRangeEnc, psIndices->NLSFIndices[ 0 ], &psEncC->psNLSF_CB->CB1_iCDF[ ( psIndices->s… in silk_encode_indices()
92 silk_NLSF_unpack( ec_ix, pred_Q8, psEncC->psNLSF_CB, psIndices->NLSFIndices[ 0 ] ); in silk_encode_indices()
95 if( psIndices->NLSFIndices[ i+1 ] >= NLSF_QUANT_MAX_AMPLITUDE ) { in silk_encode_indices()
97 …ec_enc_icdf( psRangeEnc, psIndices->NLSFIndices[ i+1 ] - NLSF_QUANT_MAX_AMPLITUDE, silk_NLSF_EXT_i… in silk_encode_indices()
98 } else if( psIndices->NLSFIndices[ i+1 ] <= -NLSF_QUANT_MAX_AMPLITUDE ) { in silk_encode_indices()
100 …ec_enc_icdf( psRangeEnc, -psIndices->NLSFIndices[ i+1 ] - NLSF_QUANT_MAX_AMPLITUDE, silk_NLSF_EXT_… in silk_encode_indices()
102 …ec_enc_icdf( psRangeEnc, psIndices->NLSFIndices[ i+1 ] + NLSF_QUANT_MAX_AMPLITUDE, &psEncC->psNLSF… in silk_encode_indices()
108 silk_assert( psIndices->NLSFInterpCoef_Q2 >= 0 && psIndices->NLSFInterpCoef_Q2 < 5 ); in silk_encode_indices()
109 … ec_enc_icdf( psRangeEnc, psIndices->NLSFInterpCoef_Q2, silk_NLSF_interpolation_factor_iCDF, 8 ); in silk_encode_indices()
112 if( psIndices->signalType == TYPE_VOICED ) in silk_encode_indices()
121 delta_lagIndex = psIndices->lagIndex - psEncC->ec_prevLagIndex; in silk_encode_indices()
134 … pitch_high_bits = silk_DIV32_16( psIndices->lagIndex, silk_RSHIFT( psEncC->fs_kHz, 1 ) ); in silk_encode_indices()
135 …pitch_low_bits = psIndices->lagIndex - silk_SMULBB( pitch_high_bits, silk_RSHIFT( psEncC->fs_kHz, … in silk_encode_indices()
141 psEncC->ec_prevLagIndex = psIndices->lagIndex; in silk_encode_indices()
144 silk_assert( psIndices->contourIndex >= 0 ); in silk_encode_indices()
145 … silk_assert( ( psIndices->contourIndex < 34 && psEncC->fs_kHz > 8 && psEncC->nb_subfr == 4 ) || in silk_encode_indices()
146 … ( psIndices->contourIndex < 11 && psEncC->fs_kHz == 8 && psEncC->nb_subfr == 4 ) || in silk_encode_indices()
147 … ( psIndices->contourIndex < 12 && psEncC->fs_kHz > 8 && psEncC->nb_subfr == 2 ) || in silk_encode_indices()
148 … ( psIndices->contourIndex < 3 && psEncC->fs_kHz == 8 && psEncC->nb_subfr == 2 ) ); in silk_encode_indices()
149 ec_enc_icdf( psRangeEnc, psIndices->contourIndex, psEncC->pitch_contour_iCDF, 8 ); in silk_encode_indices()
155 silk_assert( psIndices->PERIndex >= 0 && psIndices->PERIndex < 3 ); in silk_encode_indices()
156 ec_enc_icdf( psRangeEnc, psIndices->PERIndex, silk_LTP_per_index_iCDF, 8 ); in silk_encode_indices()
160 …silk_assert( psIndices->LTPIndex[ k ] >= 0 && psIndices->LTPIndex[ k ] < ( 8 << psIndices->PERInde… in silk_encode_indices()
161 …ec_enc_icdf( psRangeEnc, psIndices->LTPIndex[ k ], silk_LTP_gain_iCDF_ptrs[ psIndices->PERIndex ],… in silk_encode_indices()
168 silk_assert( psIndices->LTP_scaleIndex >= 0 && psIndices->LTP_scaleIndex < 3 ); in silk_encode_indices()
169 ec_enc_icdf( psRangeEnc, psIndices->LTP_scaleIndex, silk_LTPscale_iCDF, 8 ); in silk_encode_indices()
171 silk_assert( !condCoding || psIndices->LTP_scaleIndex == 0 ); in silk_encode_indices()
174 psEncC->ec_prevSignalType = psIndices->signalType; in silk_encode_indices()
179 silk_assert( psIndices->Seed >= 0 && psIndices->Seed < 4 ); in silk_encode_indices()
180 ec_enc_icdf( psRangeEnc, psIndices->Seed, silk_uniform4_iCDF, 8 ); in silk_encode_indices()