Searched defs:L_tmp (Results 1 - 25 of 48) sorted by path

12

/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
H A Dgc_pred.cpp338 Word32 L_tmp;
352 L_tmp = Mpy_32_16(exp, frac, -24660); // Q0.Q15 * Q13 -> Q14
354 * L_tmp = means_ener - 10log10(ener_code/L_SUBFR)
379 L_tmp = L_mac(L_tmp, 16678, 64); // Q14
395 L_tmp = L_mac(L_tmp, 17062, 64); // Q14
400 L_tmp = L_mac(L_tmp, 32588, 32); // Q14
405 L_tmp
482 register Word32 L_tmp; local
[all...]
H A Dlsp_lsf.cpp175 Word32 L_tmp;
184 L_tmp = L_mult (sub (table[ind + 1], table[ind]), offset);
185 lsp[i] = add (table[ind], extract_l (L_shr (L_tmp, 9)));
222 Word32 L_tmp; local
231 L_tmp = ((Word32)(table[ind + 1] - table[ind]) * offset) >> 8;
232 lsp[i] = add(table[ind], (Word16) L_tmp, pOverflow);
298 Word32 L_tmp;
315 L_tmp = L_mult (sub (lsp[i], table[ind]), slope[ind]);
317 lsf[i] = pv_round (L_shl (L_tmp, 3));
356 Word32 L_tmp; local
[all...]
H A Dvad1.cpp1260 Word32 L_tmp; /* Q31 */ local
1287 L_tmp = L_deposit_h(st->corr_hp_fast);
1288 L_tmp = L_msu(L_tmp, alpha, st->corr_hp_fast, pOverflow);
1289 L_tmp = L_mac(L_tmp, alpha, st->best_corr_hp, pOverflow);
1290 st->corr_hp_fast = pv_round(L_tmp, pOverflow); /* Q15 */
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
H A Dd_gain_c.cpp204 Word32 L_tmp; local
236 L_tmp = L_mult(*p++, gcode0, pOverflow);
237 L_tmp = L_shr(L_tmp, sub(9, exp, pOverflow), pOverflow);
238 *gain_code = extract_h(L_tmp); /* Q1 */
H A Ddec_gain.cpp199 Word32 L_tmp; local
250 L_tmp = Mpy_32_16(exp, frac, 24660, pOverflow);
251 L_tmp = L_shl(L_tmp, 13, pOverflow);
252 qua_ener = pv_round(L_tmp, pOverflow);
288 L_tmp = L_mult(g_code, gcode0, pOverflow);
290 L_tmp = L_shr(L_tmp, temp1, pOverflow);
291 *gain_cod = extract_h(L_tmp);
H A Dlsp_avg.cpp252 Word32 L_tmp; // Q31
257 L_tmp = L_deposit_h(st->lsp_meanSave[i]);
258 L_tmp = L_msu(L_tmp, EXPCONST, st->lsp_meanSave[i]);
261 L_tmp = L_mac(L_tmp, EXPCONST, lsp[i]);
264 st->lsp_meanSave[i] = pv_round(L_tmp); // Q15
300 Word32 L_tmp; /* Q31 */ local
306 L_tmp = L_deposit_h(st->lsp_meanSave[i]);
307 L_tmp
[all...]
H A Dpost_pro.cpp292 Word32 L_tmp;
303 L_tmp = Mpy_32_16 (st->y1_hi, st->y1_lo, a[1]);
304 L_tmp = L_add (L_tmp, Mpy_32_16 (st->y2_hi, st->y2_lo, a[2]));
305 L_tmp = L_mac (L_tmp, st->x0, b[0]);
306 L_tmp = L_mac (L_tmp, st->x1, b[1]);
307 L_tmp = L_mac (L_tmp, x
352 Word32 L_tmp; local
[all...]
H A Dpstfilt.cpp330 Word32 L_tmp;
371 L_tmp = L_mult (h[0], h[0]);
374 L_tmp = L_mac (L_tmp, h[i], h[i]);
376 temp1 = extract_h (L_tmp);
378 L_tmp = L_mult (h[0], h[1]);
381 L_tmp = L_mac (L_tmp, h[i], h[i + 1]);
383 temp2 = extract_h (L_tmp);
457 Word32 L_tmp; local
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dpre_proc.cpp485 Word32 L_tmp;
496 L_tmp = Mpy_32_16 (st->y1_hi, st->y1_lo, a[1]);
497 L_tmp = L_add (L_tmp, Mpy_32_16 (st->y2_hi, st->y2_lo, a[2]));
498 L_tmp = L_mac (L_tmp, st->x0, b[0]);
499 L_tmp = L_mac (L_tmp, st->x1, b[1]);
500 L_tmp = L_mac (L_tmp, x
548 Word32 L_tmp; local
[all...]
H A Dqgain475.cpp411 Word32 L_tmp;
427 L_tmp = L_mult(g_code, gcode0);
428 L_tmp = L_shr(L_tmp, sub(10, exp_gcode0));
429 *gain_cod = extract_h(L_tmp);
445 L_tmp = Mpy_32_16(exp, frac, 24660); // 24660 Q12 ~= 6.0206 = 20*log10(2)
446 qua_ener = pv_round (L_shl (L_tmp, 13)); // Q12 * Q0 = Q13 -> Q10
488 Word32 L_tmp; local
505 L_tmp = ((Word32) g_code * gcode0) << 1;
507 L_tmp
707 Word32 L_tmp; local
1196 Word32 L_tmp; local
[all...]
H A Dqgain795.cpp242 Word32 L_tmp; local
296 L_tmp = L_deposit_h(frac_coeff[i]);
297 L_tmp = L_shr(L_tmp, j, pOverflow);
298 L_Extract(L_tmp, &coeff[i], &coeff_lo[i], pOverflow);
337 L_tmp = L_mult(g_code, g_code, pOverflow);
338 L_Extract(L_tmp, &g2_code_h, &g2_code_l, pOverflow);
340 L_tmp = L_mult(g_code, g_pitch, pOverflow);
341 L_Extract(L_tmp, &g_pit_cod_h, &g_pit_cod_l, pOverflow);
343 L_tmp
511 Word32 L_tmp; local
[all...]
H A Dqua_gain.cpp227 Word32 L_tmp; local
315 L_tmp = L_deposit_h(frac_coeff[i]);
316 L_tmp = L_shr(L_tmp, j, pOverflow);
317 L_Extract(L_tmp, &coeff[i], &coeff_lo[i], pOverflow);
351 L_tmp = Mpy_32_16(coeff[0], coeff_lo[0], g2_pitch, pOverflow);
353 L_tmp = L_add(L_tmp, L_tmp2, pOverflow);
356 L_tmp = L_add(L_tmp, L_tmp
[all...]
/frameworks/av/media/libstagefright/codecs/amrwb/src/
H A Ddec_gain2_amr_wb.cpp190 int32 L_tmp; local
203 * L_tmp = 1.0 / sqrt(energy of code/ L_subfr)
206 L_tmp = Dot_product12(code, code, L_subfr, &exp);
209 one_ov_sqrt_norm(&L_tmp, &exp);
211 gcode_inov = extract_h(shl_int32(L_tmp, exp - 3)); /* g_code_inov in Q12 */
259 L_tmp = tmp;
260 L_tmp += tmp1;
264 L_tmp += tmp;
265 L_tmp += tmp1;
267 qua_ener = (int16)(L_tmp >>
[all...]
H A Ddeemphasis_32.cpp130 int32 L_tmp; local
133 L_tmp = ((int32)x_hi[0]) << 16;
134 L_tmp += ((int32)x_lo[0]) << 4;
135 L_tmp = shl_int32(L_tmp, 3);
137 L_tmp = fxp_mac_16by16(*mem, mu, L_tmp),
139 L_tmp = shl_int32(L_tmp, 1); /* saturation can occur here */
140 y[0] = amr_wb_round(L_tmp);
[all...]
H A Ddtx_decoder_amr_wb.cpp675 int32 L_tmp; local
695 L_tmp = 0;
699 L_tmp = add_int32(L_tmp, (int32)(isf_old[i * M + j]));
701 isf_aver[j] = L_tmp;
731 int32 L_tmp, summin, summax, summax2nd; local
787 L_tmp = 0;
791 L_tmp = mac_16by16_to_int32(L_tmp, tmp, tmp);
793 st->D[i - 1] = L_tmp;
[all...]
H A Dinterpolate_isp.cpp124 int32 L_tmp; local
133 L_tmp = mul_16by16_to_int32(isp_old[i], fac_old);
134 L_tmp = mac_16by16_to_int32(L_tmp, isp_new[i], fac_new);
135 isp[i] = amr_wb_round(L_tmp);
H A Disf_extrapolation.cpp121 int32 L_tmp; local
133 L_tmp = 0;
138 L_tmp = mac_16by16_to_int32(L_tmp, IsfDiff[i - 1], INV_LENGTH);
141 mean = amr_wb_round(L_tmp);
163 L_tmp = mul_16by16_to_int32(tmp2, tmp3);
164 int32_to_dpf(L_tmp, &hi, &lo);
165 L_tmp = mpy_dpf_32(hi, lo, hi, lo);
166 IsfCorr[0] = add_int32(IsfCorr[0], L_tmp);
173 L_tmp
[all...]
H A Disp_isf.cpp155 int32 L_tmp; local
170 L_tmp = mul_16by16_to_int32(table[ind + 1] - table[ind], offset);
171 isp[i] = add_int16(table[ind], (int16)(L_tmp >> 8));
H A Dpit_shrp.cpp122 int32 L_tmp; local
126 L_tmp = mac_16by16_to_int32((int32)x[i] << 16, x[i - pit_lag], sharp);
127 x[i] = amr_wb_round(L_tmp);
H A Dpreemph_amrwb_dec.cpp121 int32 L_tmp; local
125 L_tmp = msu_16by16_from_int32((int32)x[i] << 16, x[i - 1], mu);
126 x[i] = amr_wb_round(L_tmp);
H A Dpvamrwbdecoder.cpp323 int32 L_tmp, L_gain_code; local
449 L_tmp = mul_16by16_to_int32(isf_tmp[i], sub_int16(32767, interpol_frac[j]));
450 L_tmp = mac_16by16_to_int32(L_tmp, isf[i], interpol_frac[j]);
451 HfIsf[i] = amr_wb_round(L_tmp);
531 L_tmp = 0;
535 L_tmp = mac_16by16_to_int32(L_tmp, tmp, tmp);
537 tmp = extract_h(shl_int32(L_tmp, 8));
538 tmp = mult_int16(tmp, 26214); /* tmp = L_tmp*0.
[all...]
H A Dqpisf_2s.cpp142 int32 L_tmp; local
192 L_tmp = mul_16by16_to_int32(mean_isf[i], 8192);
195 L_tmp = mac_16by16_to_int32(L_tmp, isf_buf[j * M + i], 8192);
197 ref_isf[i] = amr_wb_round(L_tmp);
238 int32 L_tmp; local
286 L_tmp = mul_16by16_to_int32(mean_isf[i], 8192);
289 L_tmp = mac_16by16_to_int32(L_tmp, isf_buf[j * M + i], 8192);
292 ref_isf[i] = amr_wb_round(L_tmp);
[all...]
H A Dscale_signal.cpp126 int32 L_tmp; local
133 L_tmp = shl_int32(((int32)x[i] << 16), exp); /* saturation can occur here */
134 x[i] = amr_wb_round(L_tmp);
H A Dsynthesis_amr_wb.cpp153 int32 L_tmp; local
262 L_tmp = L_deposit_h(div_16by16(tmp, ener)); /* result is normalized */
264 one_ov_sqrt_norm(&L_tmp, &exp);
265 L_tmp = shl_int32(L_tmp, exp + 1); /* L_tmp x 2, L_tmp in Q31 */
267 tmp = (int16)(L_tmp >> 16); /* tmp = 2 x sqrt(ener_exc/ener_hf) */
288 L_tmp = 1L;
292 L_tmp
[all...]
H A Dvoice_factor.cpp128 int32 L_tmp; local
132 L_tmp = mul_16by16_to_int32(gain_pit, gain_pit);
133 exp = normalize_amr_wb(L_tmp);
135 tmp = (int16)((L_tmp << exp) >> 16);

Completed in 5303 milliseconds

12