/external/speex/libspeex/ |
D | quant_lsp.c | 52 #define LSP_LINEAR(i) (SHL16(i+1,11)) 54 #define LSP_DIV_256(x) (SHL16((spx_word16_t)x, 5)) 55 #define LSP_DIV_512(x) (SHL16((spx_word16_t)x, 4)) 56 #define LSP_DIV_1024(x) (SHL16((spx_word16_t)x, 3)) 111 tmp=SUB16(x[j],SHL16((spx_word16_t)*ptr++,5)); in lsp_quant() 122 x[j] = SUB16(x[j],SHL16((spx_word16_t)cdbk[best_id*nbDim+j],5)); in lsp_quant() 143 tmp=SUB16(x[j],SHL16((spx_word16_t)*ptr++,5)); in lsp_weight_quant() 154 x[j] = SUB16(x[j],SHL16((spx_word16_t)cdbk[best_id*nbDim+j],5)); in lsp_weight_quant()
|
D | filters.c | 140 y[i] = PSHR32(MULT16_16(scale_1, SHL16(x[i],2)),8); in signal_div() 150 y[i] = PSHR32(MULT16_16(scale_1, SHL16(x[i],2)),6); in signal_div() 245 return SHL16(spx_sqrt(DIV32(sum,len)),4); in compute_rms16() 258 sum2 = MAC16_16(sum2,SHL16(x[i],sig_shift),SHL16(x[i],sig_shift)); in compute_rms16() 259 sum2 = MAC16_16(sum2,SHL16(x[i+1],sig_shift),SHL16(x[i+1],sig_shift)); in compute_rms16() 260 sum2 = MAC16_16(sum2,SHL16(x[i+2],sig_shift),SHL16(x[i+2],sig_shift)); in compute_rms16() 261 sum2 = MAC16_16(sum2,SHL16(x[i+3],sig_shift),SHL16(x[i+3],sig_shift)); in compute_rms16() 264 return SHL16(spx_sqrt(DIV32(sum,len)),3-sig_shift); in compute_rms16() 815 exc[i] = SHL16(exc[i],1); in multicomb() 817 new_exc[i] = SHL16(SATURATE16(new_exc[i],16383),1); in multicomb()
|
D | quant_lsp_bfin.h | 91 x[j] = SUB16(x[j],SHL16((spx_word16_t)cdbk[best_id*nbDim+j],5)); in lsp_quant() 161 x[j] = SUB16(x[j],SHL16((spx_word16_t)cdbk[best_id*nbDim+j],5)); in lsp_weight_quant()
|
D | ltp.c | 255 sw[i]=SHL16(sw[i],1); in open_loop_nbest_pitch() 509 exc[j]=MAC16_16(exc[j],SHL16(gain[2-i],7),exc2[j-pp]); in pitch_gain_search_3tap() 514 exc[j]=MAC16_16(exc[j],SHL16(gain[2-i],7),exc2[j-pp-pitch]); in pitch_gain_search_3tap() 636 …*cumul_gain = MULT16_32_Q13(SHL16(params->gain_cdbk[4*best_gain_index+3],8), MAX32(1024,*cumul_gai… in pitch_search_3tap() 649 target[i]=SHL16(target[i],1); in pitch_search_3tap() 729 gain[0] = SHL16(gain[0],7); in pitch_unquant_3tap() 730 gain[1] = SHL16(gain[1],7); in pitch_unquant_3tap() 731 gain[2] = SHL16(gain[2],7); in pitch_unquant_3tap() 790 exc[i]=MULT16_16(SHL16(pitch_coef, 7),exc2[i-start]); in forced_pitch_quant() 794 exc[i]=MULT16_32_Q15(SHL16(pitch_coef, 9),exc[i-start]); in forced_pitch_quant() [all …]
|
D | math_approx.h | 259 frac = SHL16(x-SHL16(integer,11),3); in spx_exp2()
|
D | fixed_generic.h | 46 #define SHL16(a,shift) ((a) << (shift)) macro
|
D | arch.h | 166 #define SHL16(a,shift) (a) macro
|
D | stereo.c | 290 stereo->balance = spx_exp(MULT16_16(sign, SHL16(dexp, 9))); in speex_std_stereo_request_handler()
|
D | mdf.c | 474 st->window[i] = (16383-SHL16(spx_cos(DIV32_16(MULT16_16(25736,i<<1),N)),1)); in speex_echo_state_init_mc() 854 st->wtmp[i]=SHL16(st->wtmp[i],NORMALIZE_SCALEUP); in speex_echo_cancellation() 1101 st->leak_estimate = SHL16(st->leak_estimate,1); in speex_echo_cancellation() 1216 leak2 = SHL16(st->leak_estimate, 1); in speex_echo_get_residual()
|
D | fftwrap.c | 64 out[i] = SHL16(in[i], shift); in maximize_range()
|
D | preprocess.c | 491 st->post[i]=SHL16(1, SNR_SHIFT); in speex_preprocess_state_init() 492 st->prior[i]=SHL16(1, SNR_SHIFT); in speex_preprocess_state_init() 647 st->frame[i] = SHL16(st->frame[i], st->frame_shift); in preprocess_analysis()
|
D | lsp.c | 104 #define ANGLE2X(a) (SHL16(spx_cos(a),2))
|
D | fixed_debug.h | 117 #define SHL16(a, shift) _SHL16(a, shift, __FILE__, __LINE__) macro
|
D | nb_celp.c | 604 ol_pitch_coef=MULT16_16_P15(QCONST16(0.066667,15),SHL16(quant,GAIN_SHIFT)); in nb_encode() 1043 pitch_gain = SHL16(pitch_gain, 9); in nb_decode_lost() 1266 ol_pitch_coef=MULT16_16_P15(QCONST16(0.066667,15),SHL16(quant,GAIN_SHIFT)); in nb_decode()
|