Home
last modified time | relevance | path

Searched refs:L_tmp (Results 1 – 25 of 58) sorted by relevance

123

/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dcor_h_x.c42 Word32 L_tmp, y32[L_SUBFR], L_tot; in cor_h_x() local
54 L_tmp = 1; /* 1 -> to avoid null dn[] */ in cor_h_x()
58 L_tmp = L_add(L_tmp, vo_L_mult(*p1++, *p2++)); in cor_h_x()
60 y32[i] = L_tmp; in cor_h_x()
61 L_tmp = (L_tmp > 0)? L_tmp: (L_tmp == INT_MIN ? INT_MAX : -L_tmp); in cor_h_x()
62 if(L_tmp > L_max) in cor_h_x()
64 L_max = L_tmp; in cor_h_x()
67 L_tmp = 1L; in cor_h_x()
71 L_tmp = L_add(L_tmp, vo_L_mult(*p1++, *p2++)); in cor_h_x()
73 y32[i+1] = L_tmp; in cor_h_x()
[all …]
Ddeemph.c38 Word32 L_tmp; in Deemph() local
40 L_tmp = L_deposit_h(x[0]); in Deemph()
41 L_tmp = L_mac(L_tmp, *mem, mu); in Deemph()
42 x[0] = vo_round(L_tmp); in Deemph()
46 L_tmp = L_deposit_h(x[i]); in Deemph()
47 L_tmp = L_mac(L_tmp, x[i - 1], mu); in Deemph()
48 x[i] = voround(L_tmp); in Deemph()
65 Word32 L_tmp; in Deemph2() local
66 L_tmp = x[0] << 15; in Deemph2()
68 L_tmp = L_add(L_tmp, i); in Deemph2()
[all …]
Dsyn_filt.c42 Word32 L_tmp; in Syn_filt() local
56 L_tmp = vo_mult32(a0, x[i]); in Syn_filt()
57 L_tmp -= vo_mult32((*p1++), (*p2--)); in Syn_filt()
58 L_tmp -= vo_mult32((*p1++), (*p2--)); in Syn_filt()
59 L_tmp -= vo_mult32((*p1++), (*p2--)); in Syn_filt()
60 L_tmp -= vo_mult32((*p1++), (*p2--)); in Syn_filt()
61 L_tmp -= vo_mult32((*p1++), (*p2--)); in Syn_filt()
62 L_tmp -= vo_mult32((*p1++), (*p2--)); in Syn_filt()
63 L_tmp -= vo_mult32((*p1++), (*p2--)); in Syn_filt()
64 L_tmp -= vo_mult32((*p1++), (*p2--)); in Syn_filt()
[all …]
Dpreemph.c36 Word32 i, L_tmp; in Preemph() local
42 L_tmp = L_deposit_h(x[i]); in Preemph()
43 L_tmp -= (x[i - 1] * mu)<<1; in Preemph()
44 x[i] = (L_tmp + 0x8000)>>16; in Preemph()
47 L_tmp = L_deposit_h(x[0]); in Preemph()
48 L_tmp -= ((*mem) * mu)<<1; in Preemph()
49 x[0] = (L_tmp + 0x8000)>>16; in Preemph()
65 Word32 i, L_tmp; in Preemph2() local
71 L_tmp = L_deposit_h(x[i]); in Preemph2()
72 L_tmp -= (x[i - 1] * mu)<<1; // only called with mu == 22282, so this won't overflow in Preemph2()
[all …]
Dq_gain2.c83 Word32 i, j, L_tmp, dist_min; in Q_gain2() local
177 L_tmp = Dot_product12_asm(code, code, L_subfr, &exp_code); in Q_gain2()
179 L_tmp = Dot_product12(code, code, L_subfr, &exp_code); in Q_gain2()
184 Log2(L_tmp, &exp, &frac); in Q_gain2()
186 L_tmp = Mpy_32_16(exp, frac, -24660); /* x -3.0103(Q13) -> Q14 */ in Q_gain2()
188 L_tmp += (MEAN_ENER * 8192)<<1; /* + MEAN_ENER in Q14 */ in Q_gain2()
194 L_tmp = (L_tmp << 10); /* From Q14 to Q24 */ in Q_gain2()
195 L_tmp += (pred[0] * past_qua_en[0])<<1; /* Q13*Q10 -> Q24 */ in Q_gain2()
196 L_tmp += (pred[1] * past_qua_en[1])<<1; /* Q13*Q10 -> Q24 */ in Q_gain2()
197 L_tmp += (pred[2] * past_qua_en[2])<<1; /* Q13*Q10 -> Q24 */ in Q_gain2()
[all …]
Dhp_wsp.c59 Word32 L_tmp; in scale_mem_Hp_wsp() local
63 L_tmp = ((mem[i] << 16) + (mem[i + 1]<<1)); in scale_mem_Hp_wsp()
64 L_tmp = L_shl(L_tmp, exp); in scale_mem_Hp_wsp()
65 mem[i] = L_tmp >> 16; in scale_mem_Hp_wsp()
66 mem[i + 1] = (L_tmp & 0xffff)>>1; in scale_mem_Hp_wsp()
71 L_tmp = L_deposit_h(mem[i]); /* x[i] */ in scale_mem_Hp_wsp()
72 L_tmp = L_shl(L_tmp, exp); in scale_mem_Hp_wsp()
73 mem[i] = vo_round(L_tmp); in scale_mem_Hp_wsp()
89 Word32 i, L_tmp; in Hp_wsp() local
110 L_tmp = 16384L; /* rounding to maximise precision */ in Hp_wsp()
[all …]
Dpitch_f4.c175 Word32 L_tmp, L_tmp1, L_tmp2; in Norm_Corr() local
188 L_tmp = 0; in Norm_Corr()
191 L_tmp = L_add(L_tmp, (xn[i] * xn[i])); in Norm_Corr()
192 L_tmp = L_add(L_tmp, (xn[i+1] * xn[i+1])); in Norm_Corr()
193 L_tmp = L_add(L_tmp, (xn[i+2] * xn[i+2])); in Norm_Corr()
194 L_tmp = L_add(L_tmp, (xn[i+3] * xn[i+3])); in Norm_Corr()
197 L_tmp = L_add(L_shl(L_tmp, 1), 1); in Norm_Corr()
198 exp = norm_l(L_tmp); in Norm_Corr()
208 L_tmp = 0; in Norm_Corr()
212 L_tmp = L_add(L_tmp, (xn[i] * excf[i])); in Norm_Corr()
[all …]
Dhp6k.c60 Word32 i, L_tmp; in Filt_6k_7k() local
69 L_tmp = (x[i] + x[i+ 30]) * fir_6k_7k[0]; in Filt_6k_7k()
70 L_tmp += (x[i+1] + x[i + 29]) * fir_6k_7k[1]; in Filt_6k_7k()
71 L_tmp += (x[i+2] + x[i + 28]) * fir_6k_7k[2]; in Filt_6k_7k()
72 L_tmp += (x[i+3] + x[i + 27]) * fir_6k_7k[3]; in Filt_6k_7k()
73 L_tmp += (x[i+4] + x[i + 26]) * fir_6k_7k[4]; in Filt_6k_7k()
74 L_tmp += (x[i+5] + x[i + 25]) * fir_6k_7k[5]; in Filt_6k_7k()
75 L_tmp += (x[i+6] + x[i + 24]) * fir_6k_7k[6]; in Filt_6k_7k()
76 L_tmp += (x[i+7] + x[i + 23]) * fir_6k_7k[7]; in Filt_6k_7k()
77 L_tmp += (x[i+8] + x[i + 22]) * fir_6k_7k[8]; in Filt_6k_7k()
[all …]
Dhp400.c65 Word32 L_tmp; in HP400_12k8() local
81 L_tmp = 8192L; /* rounding to maximise precision */ in HP400_12k8()
82 L_tmp += y1_lo * a[1]; in HP400_12k8()
83 L_tmp += y2_lo * a[2]; in HP400_12k8()
84 L_tmp = L_tmp >> 14; in HP400_12k8()
85 L_tmp += (y1_hi * a[1] + y2_hi * a[2] + (x0 + x2)* b[0] + x1 * b[1]) << 1; in HP400_12k8()
86 L_tmp <<= 1; /* coeff Q12 --> Q13 */ in HP400_12k8()
89 y1_hi = (Word16)(L_tmp>>16); in HP400_12k8()
90 y1_lo = (Word16)((L_tmp & 0xffff)>>1); in HP400_12k8()
93 *signal++ = (L_tmp + 0x8000) >> 16; in HP400_12k8()
Dhp50.c66 Word32 L_tmp; in HP50_12k8() local
83 L_tmp = 8192 ; /* rounding to maximise precision */ in HP50_12k8()
84 L_tmp += y1_lo * a[1]; in HP50_12k8()
85 L_tmp += y2_lo * a[2]; in HP50_12k8()
86 L_tmp = L_tmp >> 14; in HP50_12k8()
87 L_tmp += (y1_hi * a[1] + y2_hi * a[2] + (x0 + x2) * b[0] + x1 * b[1]) << 1; in HP50_12k8()
88 L_tmp <<= 2; /* coeff Q12 --> Q13 */ in HP50_12k8()
91 y1_hi = (Word16)(L_tmp>>16); in HP50_12k8()
92 y1_lo = (Word16)((L_tmp & 0xffff)>>1); in HP50_12k8()
93 *signal++ = extract_h((L_add((L_tmp<<1), 0x8000))); in HP50_12k8()
DvoAMRWBEnc.c208 Word32 L_tmp, L_gain_code, L_max, L_tmp1; in coder() local
281 L_tmp = new_speech[0] << 15; in coder()
282 L_tmp -= (st->mem_preemph * mu)<<1; in coder()
283 L_max = L_abs(L_tmp); in coder()
287 L_tmp = new_speech[i] << 15; in coder()
288 L_tmp -= (new_speech[i - 1] * mu)<<1; in coder()
289 L_tmp = L_abs(L_tmp); in coder()
290 if(L_tmp > L_max) in coder()
292 L_max = L_tmp; in coder()
334 L_tmp = new_speech[i] << 15; in coder()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Ddeemphasis_32.cpp130 int32 L_tmp; in deemphasis_32() local
133 L_tmp = ((int32)x_hi[0]) << 16; in deemphasis_32()
134 L_tmp += ((int32)x_lo[0]) << 4; in deemphasis_32()
135 L_tmp = shl_int32(L_tmp, 3); in deemphasis_32()
137 L_tmp = fxp_mac_16by16(*mem, mu, L_tmp), in deemphasis_32()
139 L_tmp = shl_int32(L_tmp, 1); /* saturation can occur here */ in deemphasis_32()
140 y[0] = amr_wb_round(L_tmp); in deemphasis_32()
146 L_tmp = ((int32)hi) << 16; in deemphasis_32()
147 L_tmp += ((int32)lo) << 4; in deemphasis_32()
148 L_tmp = shl_int32(L_tmp, 3); in deemphasis_32()
[all …]
Ddec_gain2_amr_wb.cpp190 int32 L_tmp; in dec_gain2_amr_wb() local
206 L_tmp = Dot_product12(code, code, L_subfr, &exp); in dec_gain2_amr_wb()
209 one_ov_sqrt_norm(&L_tmp, &exp); in dec_gain2_amr_wb()
211 gcode_inov = extract_h(shl_int32(L_tmp, exp - 3)); /* g_code_inov in Q12 */ in dec_gain2_amr_wb()
259 L_tmp = tmp; in dec_gain2_amr_wb()
260 L_tmp += tmp1; in dec_gain2_amr_wb()
264 L_tmp += tmp; in dec_gain2_amr_wb()
265 L_tmp += tmp1; in dec_gain2_amr_wb()
267 qua_ener = (int16)(L_tmp >> 3); in dec_gain2_amr_wb()
301 L_tmp = L_deposit_h(MEAN_ENER); /* MEAN_ENER in Q16 */ in dec_gain2_amr_wb()
[all …]
Dpvamrwbdecoder.cpp323 int32 L_tmp, L_gain_code; in pvDecoder_AmrWb() local
449 L_tmp = mul_16by16_to_int32(isf_tmp[i], sub_int16(32767, interpol_frac[j])); in pvDecoder_AmrWb()
450 L_tmp = mac_16by16_to_int32(L_tmp, isf[i], interpol_frac[j]); in pvDecoder_AmrWb()
451 HfIsf[i] = amr_wb_round(L_tmp); in pvDecoder_AmrWb()
531 L_tmp = 0; in pvDecoder_AmrWb()
535 L_tmp = mac_16by16_to_int32(L_tmp, tmp, tmp); in pvDecoder_AmrWb()
537 tmp = extract_h(shl_int32(L_tmp, 8)); in pvDecoder_AmrWb()
702 L_tmp = ((int32) exc[i-1+i_subfr] + exc[i+1+i_subfr]); in pvDecoder_AmrWb()
703 L_tmp *= 5898; in pvDecoder_AmrWb()
704 L_tmp += ((int32) exc[i+i_subfr] * 20972); in pvDecoder_AmrWb()
[all …]
Disf_extrapolation.cpp121 int32 L_tmp; in isf_extrapolation() local
133 L_tmp = 0; in isf_extrapolation()
138 L_tmp = mac_16by16_to_int32(L_tmp, IsfDiff[i - 1], INV_LENGTH); in isf_extrapolation()
141 mean = amr_wb_round(L_tmp); in isf_extrapolation()
163 L_tmp = mul_16by16_to_int32(tmp2, tmp3); in isf_extrapolation()
164 int32_to_dpf(L_tmp, &hi, &lo); in isf_extrapolation()
165 L_tmp = mpy_dpf_32(hi, lo, hi, lo); in isf_extrapolation()
166 IsfCorr[0] = add_int32(IsfCorr[0], L_tmp); in isf_extrapolation()
173 L_tmp = mul_16by16_to_int32(tmp2, tmp3); in isf_extrapolation()
174 int32_to_dpf(L_tmp, &hi, &lo); in isf_extrapolation()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
Dgc_pred.cpp482 Word32 L_tmp; in gc_pred() local
599 L_tmp = (((Word32) frac) * -24660) >> 15; in gc_pred()
602 if (L_tmp & (Word32) 0x00010000L) in gc_pred()
604 L_tmp = L_tmp | (Word32) 0xffff0000L; in gc_pred()
607 L_tmp = L_tmp << 1; in gc_pred()
608 L_tmp = L_add(L_tmp, L_temp2, pOverflow); in gc_pred()
637 L_tmp = L_add(L_tmp, L_temp2, pOverflow); /* Q14 */ in gc_pred()
652 L_tmp = L_add(L_tmp, L_temp2, pOverflow); /* Q14 */ in gc_pred()
658 L_tmp = L_add(L_tmp, L_temp2, pOverflow); /* Q14 */ in gc_pred()
664 L_tmp = L_add(L_tmp, L_temp2, pOverflow); /* Q14 */ in gc_pred()
[all …]
Dlsp_lsf.cpp222 Word32 L_tmp; in Lsf_lsp() local
231 L_tmp = ((Word32)(table[ind + 1] - table[ind]) * offset) >> 8; in Lsf_lsp()
232 lsp[i] = add(table[ind], (Word16) L_tmp, pOverflow); in Lsf_lsp()
356 Word32 L_tmp; in Lsp_lsf() local
375 L_tmp = (Word32)(temp - table[ind]) * slope[ind]; in Lsp_lsf()
378 L_tmp = (L_tmp + 0x00000800) >> 12; in Lsp_lsf()
380 *(p_lsf--) = (Word16)(L_tmp) + (ind << 8); in Lsp_lsf()
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dqgain795.cpp242 Word32 L_tmp; in MR795_gain_code_quant3() local
296 L_tmp = L_deposit_h(frac_coeff[i]); in MR795_gain_code_quant3()
297 L_tmp = L_shr(L_tmp, j, pOverflow); in MR795_gain_code_quant3()
298 L_Extract(L_tmp, &coeff[i], &coeff_lo[i], pOverflow); in MR795_gain_code_quant3()
337 L_tmp = L_mult(g_code, g_code, pOverflow); in MR795_gain_code_quant3()
338 L_Extract(L_tmp, &g2_code_h, &g2_code_l, pOverflow); in MR795_gain_code_quant3()
340 L_tmp = L_mult(g_code, g_pitch, pOverflow); in MR795_gain_code_quant3()
341 L_Extract(L_tmp, &g_pit_cod_h, &g_pit_cod_l, pOverflow); in MR795_gain_code_quant3()
343 L_tmp = Mac_32(L_tmp0, coeff[2], coeff_lo[2], in MR795_gain_code_quant3()
345 L_tmp = Mac_32_16(L_tmp, coeff[3], coeff_lo[3], in MR795_gain_code_quant3()
[all …]
Dqgain475.cpp488 Word32 L_tmp; in MR475_quant_store_results() local
505 L_tmp = ((Word32) g_code * gcode0) << 1; in MR475_quant_store_results()
507 L_tmp = L_shr(L_tmp, tmp, pOverflow); in MR475_quant_store_results()
508 *gain_cod = (Word16)(L_tmp >> 16); in MR475_quant_store_results()
527 L_tmp = Mpy_32_16(exp, frac, 24660, pOverflow); in MR475_quant_store_results()
528 L_tmp = L_tmp << 13; in MR475_quant_store_results()
531 qua_ener = (Word16)((L_tmp + (Word32) 0x00008000L) >> 16); in MR475_quant_store_results()
707 Word32 L_tmp; in MR475_update_unq_pred() local
770 L_tmp = Mpy_32_16(exp, frac, 24660, pOverflow); in MR475_update_unq_pred()
772 L_tmp = L_shl(L_tmp, 13, pOverflow); in MR475_update_unq_pred()
[all …]
Dqua_gain.cpp227 Word32 L_tmp; in Qua_gain() local
315 L_tmp = L_deposit_h(frac_coeff[i]); in Qua_gain()
316 L_tmp = L_shr(L_tmp, j, pOverflow); in Qua_gain()
317 L_Extract(L_tmp, &coeff[i], &coeff_lo[i], pOverflow); in Qua_gain()
351 L_tmp = Mpy_32_16(coeff[0], coeff_lo[0], g2_pitch, pOverflow); in Qua_gain()
353 L_tmp = L_add(L_tmp, L_tmp2, pOverflow); in Qua_gain()
356 L_tmp = L_add(L_tmp, L_tmp2, pOverflow); in Qua_gain()
359 L_tmp = L_add(L_tmp, L_tmp2, pOverflow); in Qua_gain()
362 L_tmp = L_add(L_tmp, L_tmp2, pOverflow); in Qua_gain()
366 if (L_tmp < dist_min) in Qua_gain()
[all …]
Dpre_proc.cpp548 Word32 L_tmp; in Pre_Process() local
561 L_tmp = ((Word32) st->y1_hi) * 7807; in Pre_Process()
562 L_tmp += (Word32)(((Word32) st->y1_lo * 7807) >> 15); in Pre_Process()
564 L_tmp += ((Word32) st->y2_hi) * (-3733); in Pre_Process()
566 L_tmp += (Word32)(((Word32) st->y2_lo * (-3733)) >> 15); in Pre_Process()
569 L_tmp += ((Word32) x_n_2) * 1899; in Pre_Process()
571 L_tmp += ((Word32) x_n_1) * (-3798); in Pre_Process()
573 L_tmp += ((Word32) x_n_1) * 1899; in Pre_Process()
576 *(p_signal++) = (Word16)((L_tmp + 0x0000800L) >> 12); in Pre_Process()
578 st->y1_hi = (Word16)(L_tmp >> 12); in Pre_Process()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
Dpost_pro.cpp352 Word32 L_tmp; in Post_Process() local
372 L_tmp = ((Word32) st->y1_hi) * c_a1; in Post_Process()
373 L_tmp += (((Word32) st->y1_lo) * c_a1) >> 15; in Post_Process()
374 L_tmp += ((Word32) st->y2_hi) * c_a2; in Post_Process()
375 L_tmp += (((Word32) st->y2_lo) * c_a2) >> 15; in Post_Process()
376 L_tmp += ((Word32) st->x0) * c_b0; in Post_Process()
377 L_tmp += ((Word32) st->x1) * c_b1; in Post_Process()
378 L_tmp += ((Word32) x2) * c_b2; in Post_Process()
379 L_tmp = L_shl(L_tmp, 3, pOverflow); in Post_Process()
384 *(p_signal++) = pv_round(L_shl(L_tmp, 1, pOverflow), pOverflow); in Post_Process()
[all …]
Dpstfilt.cpp457 Word32 L_tmp; in Post_Filter() local
499 L_tmp = 0; in Post_Filter()
516 L_tmp = L_add(L_tmp, L_tmp2, pOverflow); in Post_Filter()
518 temp1 = (Word16)(L_tmp >> 16); in Post_Filter()
520 L_tmp = 0; in Post_Filter()
537 L_tmp = L_add(L_tmp, L_tmp2, pOverflow); in Post_Filter()
539 temp2 = (Word16)(L_tmp >> 16); in Post_Filter()
547 L_tmp = (((Word32) temp2) * MU) >> 15; in Post_Filter()
550 if (L_tmp & (Word32) 0x00010000L) in Post_Filter()
552 L_tmp = L_tmp | (Word32) 0xffff0000L; in Post_Filter()
[all …]
Dlsp_avg.cpp300 Word32 L_tmp; /* Q31 */ in lsp_avg() local
306 L_tmp = L_deposit_h(st->lsp_meanSave[i]); in lsp_avg()
307 L_tmp = L_msu(L_tmp, EXPCONST, st->lsp_meanSave[i], pOverflow); in lsp_avg()
310 L_tmp = L_mac(L_tmp, EXPCONST, lsp[i], pOverflow); in lsp_avg()
313 st->lsp_meanSave[i] = pv_round(L_tmp, pOverflow); /* Q15 */ in lsp_avg()
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV5E/
DNorm_Corr_opt.s73 MOV r6, #0 @L_tmp = 0
81 SMLABB r6, r9, r9, r6 @L_tmp += (xn[i] * xn[i])
82 SMLATT r6, r9, r9, r6 @L_tmp += (xn[i+1] * xn[i+1])
92 ADD r9, r7, r6, LSL #1 @L_tmp = (L_tmp << 1) + 1
94 SUB r6, r7, #1 @exp = norm_l(L_tmp)
104 MOV r5, #0 @L_tmp = 0
116 SMLABB r5, r10, r11, r5 @L_tmp += xn[i] * excf[i]
117 SMLATT r5, r10, r11, r5 @L_tmp += xn[i+1] * excf[i+1]
127 @r5 --- L_tmp, r6 --- L_tmp1
129 ADD r5, r10, r5, LSL #1 @L_tmp = (L_tmp << 1) + 1
[all …]

123