/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
D | g_pitch.cpp | 317 Word32 L_temp; /* Use this as an intermediate value */ in G_pitch() local 344 L_temp = s << exp_yy; in G_pitch() 345 yy = pv_round(L_temp, pOverflow); in G_pitch() 363 L_temp = s << exp_yy; in G_pitch() 364 yy = pv_round(L_temp, pOverflow); in G_pitch() 377 L_temp = ((Word32) * (p_xn++) * *(p_y1++)); in G_pitch() 379 s = s1 + L_temp; in G_pitch() 381 if ((s1 ^ L_temp) > 0) in G_pitch() 398 L_temp = s << exp_xy; in G_pitch() 399 xy = pv_round(L_temp, pOverflow); in G_pitch() [all …]
|
D | hp_max.cpp | 252 Word32 L_temp; in hp_max() local 261 L_temp = L_sub(t0, corr[-i-1], pOverflow); in hp_max() 262 t0 = L_sub(L_temp, corr[-i+1], pOverflow); in hp_max() 289 L_temp = L_shl(t0, 1, pOverflow); in hp_max() 291 t0 = L_sub(L_temp, t1, pOverflow); in hp_max() 303 L_temp = L_shl(max, shift1, pOverflow); in hp_max() 304 max16 = (Word16)(L_temp >> 16); in hp_max() 307 L_temp = L_shl(t0, shift2, pOverflow); in hp_max() 308 t016 = (Word16)(L_temp >> 16); in hp_max()
|
D | spstproc.cpp | 195 Word32 L_temp; in subframePostProc() local 263 L_temp = ((Word32) * (p_exc++) * pitch_fac) << 1; in subframePostProc() 265 L_temp += ((Word32) * (p_code++) * gain_code) << 1; in subframePostProc() 267 L_temp <<= tempShift; in subframePostProc() 269 *(p_exc++) = (Word16)((L_temp + 0x08000L) >> 16); in subframePostProc() 304 L_temp = ((Word32)y1[i] * gain_pit); in subframePostProc() 305 temp = (Word16)(L_temp >> 14); in subframePostProc() 307 L_temp = ((Word32)y2[i] * gain_code); in subframePostProc() 308 temp += (Word16)(L_temp >> kShift); in subframePostProc()
|
D | calc_en.cpp | 281 Word32 L_temp; /* temporal 32 bits storage */ in calc_unfilt_energies() local 314 L_temp = L_mult(tmp2, gain_pit, pOverflow); in calc_unfilt_energies() 315 L_temp = L_shl(L_temp, 1, pOverflow); in calc_unfilt_energies() 316 tmp2 = sub(tmp1, pv_round(L_temp, pOverflow), pOverflow); in calc_unfilt_energies() 375 L_temp = (Word32) pred_gain << 16; in calc_unfilt_energies() 377 L_temp = L_shr(L_temp, (Word16)(exp + 3), pOverflow); in calc_unfilt_energies() 380 Log2(L_temp, <pg_exp, <pg_frac, pOverflow); in calc_unfilt_energies() 383 L_temp = L_Comp(sub(ltpg_exp, 27, pOverflow), ltpg_frac, pOverflow); in calc_unfilt_energies() 384 *ltpg = pv_round(L_shl(L_temp, 13, pOverflow), pOverflow); /* Q13 */ in calc_unfilt_energies()
|
D | pitch_ol.cpp | 332 Word32 L_temp; in Lag_max() local 414 L_temp = L_temp_2 - L_temp_3; in Lag_max() 416 max_l = (Word16)L_temp; in Lag_max() 431 L_temp = L_temp_2 - L_temp_3; in Lag_max() 433 ener_l = (Word16)L_temp; in Lag_max() 982 Word32 L_temp; in Pitch_ol() local 1098 L_temp = ((Word32)pit_min) << 2; in Pitch_ol() 1099 if (L_temp != (Word32)((Word16) L_temp)) in Pitch_ol() 1106 j = (Word16)L_temp; in Pitch_ol() 1125 L_temp = ((Word32)pit_min) << 2; in Pitch_ol() [all …]
|
D | c2_9pf.cpp | 326 Word32 L_temp; in code_2i40_9bits() local 328 L_temp = ((Word32) pitch_sharp) << 1; in code_2i40_9bits() 331 if (L_temp != (Word32)((Word16) L_temp)) in code_2i40_9bits() 338 sharp = (Word16) L_temp; in code_2i40_9bits() 612 Word32 L_temp; in search_2i40() local 693 L_temp = ((Word32) alp * sq1) << 1; in search_2i40() 696 s = L_temp - (((Word32) sq * alp_16) << 1); in search_2i40() 709 L_temp = ((Word32) alpk * sq) << 1; in search_2i40() 712 s = L_temp - (((Word32) psk * alp) << 1); in search_2i40()
|
D | cl_ltp.cpp | 643 Word32 L_temp; /* temporarily variable */ in cl_ltp() local 756 L_temp = ((Word32) * (p_yl++) * temp) >> 14; in cl_ltp() 757 *(p_xn2++) = *(p_xn++) - (Word16)L_temp; in cl_ltp() 759 L_temp = ((Word32) * (p_exc++) * temp) >> 14; in cl_ltp() 760 res2[i] -= (Word16)L_temp; in cl_ltp()
|
D | set_sign.cpp | 508 Word32 L_temp; in set_sign12k2() local 542 L_temp = ((Word32)k_cn * *(p_cn--)) << 1; in set_sign12k2() 544 s = L_mac(L_temp, k_dn, val, pOverflow); in set_sign12k2() 545 L_temp = L_shl(s, 10, pOverflow); in set_sign12k2() 546 cor = pv_round(L_temp, pOverflow); in set_sign12k2()
|
D | dtx_enc.cpp | 948 Word32 L_temp; in dtx_buffer() local 983 L_temp = ((Word32) log_en_e) << 10; in dtx_buffer() 984 if (L_temp != (Word32)((Word16) L_temp)) in dtx_buffer() 991 log_en = (Word16) L_temp; in dtx_buffer()
|
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/ |
D | agc.cpp | 755 Word32 L_temp; in agc() local 770 L_temp = L_shl(s, exp, pOverflow); in agc() 771 gain_out = pv_round(L_temp, pOverflow); in agc() 785 L_temp = s << i; in agc() 787 gain_in = pv_round(L_temp, pOverflow); in agc() 804 L_temp = s << 9; in agc() 806 i = (Word16)((L_temp + (Word32) 0x00008000L) >> 16); in agc() 831 L_temp = ((Word32)(*(p_sig_out)) * gain) << 1; in agc() 833 *(p_sig_out++) = (Word16)(L_temp >> 13); in agc() 977 Word32 L_temp; in agc2() local [all …]
|
D | ph_disp.cpp | 672 Word32 L_temp; in ph_disp() local 722 L_temp = ((Word32) state->prevCbGain * ONFACTPLUS1) << 1; in ph_disp() 725 if (L_temp > (Word32) 0X1fffffffL) in ph_disp() 728 L_temp = MAX_32; in ph_disp() 730 else if (L_temp < (Word32) 0xe0000000L) in ph_disp() 733 L_temp = MIN_32; in ph_disp() 737 L_temp <<= 2; in ph_disp() 740 tmp1 = pv_round(L_temp, pOverflow); in ph_disp() 859 L_temp = ((Word32) c_inno_sav * *(p_ph_imp++)) >> 15; in ph_disp() 860 tmp1 = (Word16) L_temp; in ph_disp() [all …]
|
D | dec_amr.cpp | 1387 Word32 L_temp; in Decoder_amr() local 1679 L_temp = (Word32)st->sharp << 1; in Decoder_amr() 1680 if (L_temp != (Word32)((Word16) L_temp)) in Decoder_amr() 1686 pit_sharp = (Word16) L_temp; in Decoder_amr() 1696 L_temp = (Word32)st->sharp << 1; in Decoder_amr() 1697 if (L_temp != (Word32)((Word16) L_temp)) in Decoder_amr() 1703 pit_sharp = (Word16) L_temp; in Decoder_amr() 1713 L_temp = (Word32)st->sharp << 1; in Decoder_amr() 1714 if (L_temp != (Word32)((Word16) L_temp)) in Decoder_amr() 1720 pit_sharp = (Word16) L_temp; in Decoder_amr() [all …]
|
D | bgnscd.cpp | 412 Word32 s, L_temp; in Bgn_scd() local 423 L_temp = ((Word32) speech[i]) * speech[i]; in Bgn_scd() 424 if (L_temp != (Word32) 0x40000000L) in Bgn_scd() 426 L_temp = L_temp << 1; in Bgn_scd() 430 L_temp = MAX_32; in Bgn_scd() 432 s = L_add(s, L_temp, pOverflow); in Bgn_scd() 455 L_temp = (Word32)frameEnergyMin << 4; in Bgn_scd() 456 if (L_temp != (Word32)((Word16) L_temp)) in Bgn_scd() 458 if (L_temp > 0) in Bgn_scd() 469 noiseFloor = (Word16)(L_temp); in Bgn_scd()
|
D | a_refl.cpp | 247 Word32 L_temp; in A_Refl() local 271 L_temp = L_mult(refl[i], refl[i], pOverflow); in A_Refl() 272 L_acc = L_sub(MAX_32, L_temp, pOverflow); in A_Refl() 288 L_temp = L_mult(mult, temp, pOverflow); in A_Refl() 289 L_temp = L_shr_r(L_temp, scale, pOverflow); in A_Refl() 291 if (L_abs(L_temp) > 32767) in A_Refl() 301 bState[j] = extract_l(L_temp); in A_Refl()
|
D | dtx_dec.cpp | 886 Word32 L_temp; in dtx_dec() local 1054 L_temp = ((Word32) tmp_int_length) << 10; in dtx_dec() 1055 if (L_temp != (Word32)((Word16) L_temp)) in dtx_dec() 1058 L_temp = (Word32)((tmp_int_length > 0) ? MAX_16 : MIN_16); in dtx_dec() 1060 temp = (Word16) L_temp; in dtx_dec() 1200 L_temp = ((Word32) lsp_int[i]) << 1; /* Q14 -> Q15 */ in dtx_dec() 1201 if (L_temp != (Word32)((Word16) L_temp)) in dtx_dec() 1204 L_temp = (Word32)((lsp_int[i] > 0) ? MAX_16 : MIN_16); in dtx_dec() 1206 lsp_int[i] = (Word16) L_temp; in dtx_dec() 1277 L_temp = (((Word32) refl[i]) * refl[i]) >> 15; in dtx_dec() [all …]
|
D | b_cn_cod.cpp | 500 Word32 L_temp; in build_CN_param() local 503 L_temp = L_mult(*pSeed, 31821, pOverflow); in build_CN_param() 504 L_temp >>= 1; in build_CN_param() 506 *pSeed = (Word16)(L_add(L_temp, 13849L, pOverflow)); in build_CN_param()
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
D | wb_vad.c | 467 Word32 L_temp; in vad_decision() local 489 L_temp = 0; in vad_decision() 492 L_temp = vo_L_add(L_temp, st->bckr_est[i]); in vad_decision() 495 noise_level = extract_h((L_temp << 12)); in vad_decision() 767 Word32 L_temp, pow_sum; in wb_vad() local 770 L_temp = 0L; in wb_vad() 773 L_temp = L_mac(L_temp, in_buf[i], in_buf[i]); in wb_vad() 777 pow_sum = L_add(L_temp, st->prev_pow_sum); in wb_vad() 780 st->prev_pow_sum = L_temp; in wb_vad() 794 L_temp = 0; in wb_vad() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
D | az_lsp.cpp | 253 Word32 L_temp; in Chebps() local 260 L_temp = 0x01000000L; in Chebps() 278 t0 -= L_temp; in Chebps() 283 L_temp = ((Word32) b1_h << 16) + ((Word32) b1_l << 1); in Chebps() 298 t0 -= L_temp; in Chebps()
|
D | vad1.cpp | 1487 Word32 L_temp; in vad_decision() local 1498 L_temp = 0; in vad_decision() 1508 L_temp = L_mac(L_temp, temp, temp, pOverflow); in vad_decision() 1511 snr_sum = extract_h(L_shl(L_temp, 6, pOverflow)); in vad_decision() 1515 L_temp = 0; in vad_decision() 1518 L_temp = L_add(L_temp, st->bckr_est[i], pOverflow); in vad_decision() 1521 noise_level = extract_h(L_shl(L_temp, 13, pOverflow)); in vad_decision()
|
D | q_plsf_3.cpp | 1025 Word32 L_temp; in Q_plsf_3() local 1074 L_temp = ((Word32) * (temp_r1 + i)) * *(temp_r1 + i); in Q_plsf_3() 1076 L_pred_init_err = L_pred_init_err + (L_temp << 1); in Q_plsf_3()
|