Lines Matching refs:prev_ind
42 …opus_int8 *prev_ind, /* I/O last index in previous frame … in silk_gains_quant() argument
54 if( ind[ k ] < *prev_ind ) { in silk_gains_quant()
62 … ind[ k ] = silk_LIMIT_int( ind[ k ], *prev_ind + MIN_DELTA_GAIN_QUANT, N_LEVELS_QGAIN - 1 ); in silk_gains_quant()
63 *prev_ind = ind[ k ]; in silk_gains_quant()
66 ind[ k ] = ind[ k ] - *prev_ind; in silk_gains_quant()
69 double_step_size_threshold = 2 * MAX_DELTA_GAIN_QUANT - N_LEVELS_QGAIN + *prev_ind; in silk_gains_quant()
78 *prev_ind += silk_LSHIFT( ind[ k ], 1 ) - double_step_size_threshold; in silk_gains_quant()
79 *prev_ind = silk_min_int( *prev_ind, N_LEVELS_QGAIN - 1 ); in silk_gains_quant()
81 *prev_ind += ind[ k ]; in silk_gains_quant()
89 …gain_Q16[ k ] = silk_log2lin( silk_min_32( silk_SMULWB( INV_SCALE_Q16, *prev_ind ) + OFFSET, 3967 … in silk_gains_quant()
97 …opus_int8 *prev_ind, /* I/O last index in previous frame … in silk_gains_dequant() argument
107 *prev_ind = silk_max_int( ind[ k ], *prev_ind - 16 ); in silk_gains_dequant()
113 double_step_size_threshold = 2 * MAX_DELTA_GAIN_QUANT - N_LEVELS_QGAIN + *prev_ind; in silk_gains_dequant()
115 *prev_ind += silk_LSHIFT( ind_tmp, 1 ) - double_step_size_threshold; in silk_gains_dequant()
117 *prev_ind += ind_tmp; in silk_gains_dequant()
120 *prev_ind = silk_LIMIT_int( *prev_ind, 0, N_LEVELS_QGAIN - 1 ); in silk_gains_dequant()
123 …gain_Q16[ k ] = silk_log2lin( silk_min_32( silk_SMULWB( INV_SCALE_Q16, *prev_ind ) + OFFSET, 3967 … in silk_gains_dequant()