/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 | 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 | 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 | 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()
|
/external/libopus/celt/ |
D | mathops.h | 181 return SHL16(i-13,DB_SHIFT)+SHR16(frac,14-DB_SHIFT); in celt_log2() 198 frac = SHL16(x, 4); in celt_exp2_frac() 211 frac = celt_exp2_frac(x-SHL16(integer,10)); in celt_exp2()
|
D | quant_bands.c | 246 error[i+c*m->nbEBands] = PSHR32(f,7) - SHL16(qi,DB_SHIFT); in quant_coarse_energy_impl() 416 offset = SHR16(SHL16(q2,DB_SHIFT)-QCONST16(.5f,DB_SHIFT),fine_quant[i]+1); in quant_energy_finalise() 532 offset = SHR16(SHL16(q2,DB_SHIFT)-QCONST16(.5f,DB_SHIFT),fine_quant[i]+1); in unquant_energy_finalise() 552 - SHL16((opus_val16)eMeans[i],6); in amp2Log2()
|
D | mathops.c | 108 y = SHL16(SUB16(ADD16(MULT16_16_Q15(r2, n), r2), 16384), 1); in celt_rsqrt_norm()
|
D | fixed_generic.h | 86 #define SHL16(a,shift) ((opus_int16)((opus_uint16)(a)<<(shift))) macro
|
D | arch.h | 192 #define SHL16(a,shift) (a) macro
|
D | celt_encoder.c | 287 tmp[i] = SHL16(tmp[i], shift); in transient_analysis() 951 +QCONST16(.5f,DB_SHIFT)+SHL16(9-lsb_depth,DB_SHIFT)-SHL16(eMeans[i],6) in dynalloc_analysis() 1616 bandLogE2[i] += HALF16(SHL16(LM, DB_SHIFT)); in celt_encode_with_ec() 1715 opus_val16 offset = shortBlocks?HALF16(SHL16(LM, DB_SHIFT)):0; in celt_encode_with_ec() 1750 bandLogE2[i] += HALF16(SHL16(LM, DB_SHIFT)); in celt_encode_with_ec()
|
D | fixed_debug.h | 159 #define SHL16(a, shift) SHL16_(a, shift, __FILE__, __LINE__) macro
|
D | bands.c | 227 lg = ADD16(bandLogE[i], SHL16((opus_val16)eMeans[i],6)); in denormalise_bands() 288 thresh32 = SHR32(celt_exp2(-SHL16(depth, 10-BITRES)),1); in anti_collapse()
|
/external/libopus/src/ |
D | opus_multistream_encoder.c | 219 frac = SHL16(diff - SHL16(low, DB_SHIFT-1), 16-DB_SHIFT); in logSum()
|
D | opus_encoder.c | 1797 g1 = g1==16384 ? Q15ONE : SHL16(g1,1); in opus_encode_native() 1798 g2 = g2==16384 ? Q15ONE : SHL16(g2,1); in opus_encode_native()
|