/frameworks/base/media/libstagefright/codecs/amrwb/src/ |
deemphasis_32.cpp | 130 int32 L_tmp; 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...] |
pit_shrp.cpp | 122 int32 L_tmp; 126 L_tmp = mac_16by16_to_int32((int32)x[i] << 16, x[i - pit_lag], sharp); 127 x[i] = amr_wb_round(L_tmp);
|
preemph_amrwb_dec.cpp | 121 int32 L_tmp; 125 L_tmp = msu_16by16_from_int32((int32)x[i] << 16, x[i - 1], mu); 126 x[i] = amr_wb_round(L_tmp);
|
dec_gain2_amr_wb.cpp | 190 int32 L_tmp; 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 >> 3) [all...] |
interpolate_isp.cpp | 124 int32 L_tmp; 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);
|
/frameworks/base/media/libstagefright/codecs/amrwbenc/src/ |
deemph.c | 38 Word32 L_tmp;
40 L_tmp = L_deposit_h(x[0]);
41 L_tmp = L_mac(L_tmp, *mem, mu);
42 x[0] = vo_round(L_tmp);
46 L_tmp = L_deposit_h(x[i]);
47 L_tmp = L_mac(L_tmp, x[i - 1], mu);
48 x[i] = voround(L_tmp);
65 Word32 L_tmp;
[all...] |
cor_h_x.c | 42 Word32 L_tmp, y32[L_SUBFR], L_tot;
54 L_tmp = 1; /* 1 -> to avoid null dn[] */
58 L_tmp += vo_L_mult(*p1++, *p2++);
60 y32[i] = L_tmp;
61 L_tmp = (L_tmp > 0)? L_tmp:-L_tmp;
62 if(L_tmp > L_max)
64 L_max = L_tmp;
[all...] |
syn_filt.c | 40 Word32 L_tmp;
54 L_tmp = vo_mult32(a0, x[i]);
55 L_tmp -= vo_mult32((*p1++), (*p2--));
56 L_tmp -= vo_mult32((*p1++), (*p2--));
57 L_tmp -= vo_mult32((*p1++), (*p2--));
58 L_tmp -= vo_mult32((*p1++), (*p2--));
59 L_tmp -= vo_mult32((*p1++), (*p2--));
60 L_tmp -= vo_mult32((*p1++), (*p2--));
61 L_tmp -= vo_mult32((*p1++), (*p2--));
62 L_tmp -= vo_mult32((*p1++), (*p2--)); [all...] |
preemph.c | 36 Word32 i, L_tmp;
42 L_tmp = L_deposit_h(x[i]);
43 L_tmp -= (x[i - 1] * mu)<<1;
44 x[i] = (L_tmp + 0x8000)>>16;
47 L_tmp = L_deposit_h(x[0]);
48 L_tmp -= ((*mem) * mu)<<1;
49 x[0] = (L_tmp + 0x8000)>>16;
65 Word32 i, L_tmp;
71 L_tmp = L_deposit_h(x[i]);
72 L_tmp -= (x[i - 1] * mu)<<1; [all...] |
hp_wsp.c | 59 Word32 L_tmp;
63 L_tmp = ((mem[i] << 16) + (mem[i + 1]<<1));
64 L_tmp = L_shl(L_tmp, exp);
65 mem[i] = L_tmp >> 16;
66 mem[i + 1] = (L_tmp & 0xffff)>>1;
71 L_tmp = L_deposit_h(mem[i]); /* x[i] */
72 L_tmp = L_shl(L_tmp, exp);
73 mem[i] = vo_round(L_tmp);
[all...] |
pit_shrp.c | 35 Word32 L_tmp;
40 L_tmp = (*x_ptr << 15);
41 L_tmp += *x++ * sharp;
42 *x_ptr++ = ((L_tmp + 0x4000)>>15);
|
updt_tar.c | 36 Word32 L_tmp;
40 L_tmp = x[i] << 15;
41 L_tmp -= (y[i] * gain)<<1;
42 x2[i] = extract_h(L_shl2(L_tmp, 1));
|
hp6k.c | 60 Word32 i, L_tmp;
69 L_tmp = (x[i] + x[i+ 30]) * fir_6k_7k[0];
70 L_tmp += (x[i+1] + x[i + 29]) * fir_6k_7k[1];
71 L_tmp += (x[i+2] + x[i + 28]) * fir_6k_7k[2];
72 L_tmp += (x[i+3] + x[i + 27]) * fir_6k_7k[3];
73 L_tmp += (x[i+4] + x[i + 26]) * fir_6k_7k[4];
74 L_tmp += (x[i+5] + x[i + 25]) * fir_6k_7k[5];
75 L_tmp += (x[i+6] + x[i + 24]) * fir_6k_7k[6];
76 L_tmp += (x[i+7] + x[i + 23]) * fir_6k_7k[7];
77 L_tmp += (x[i+8] + x[i + 22]) * fir_6k_7k[8]; [all...] |
scale.c | 34 Word32 L_tmp;
39 L_tmp = L_shl2(x[i], 16 + exp);
40 x[i] = extract_h(L_add(L_tmp, 0x8000));
48 L_tmp = x[i] << 16;
49 L_tmp >>= exp;
50 x[i] = (L_tmp + 0x8000)>>16;
|
q_gain2.c | 83 Word32 i, j, L_tmp, dist_min;
173 * L_tmp = MEAN_ENER - 10log10(energy of code/ L_subfr) *
177 L_tmp = Dot_product12_asm(code, code, L_subfr, &exp_code);
179 L_tmp = Dot_product12(code, code, L_subfr, &exp_code);
181 /* exp_code: -18 (code in Q9), -6 (/L_subfr), -31 (L_tmp Q31->Q0) */
184 Log2(L_tmp, &exp, &frac);
186 L_tmp = Mpy_32_16(exp, frac, -24660); /* x -3.0103(Q13) -> Q14 */
188 L_tmp += (MEAN_ENER * 8192)<<1; /* + MEAN_ENER in Q14 */
194 L_tmp = (L_tmp << 10); /* From Q14 to Q24 */ [all...] |
hp400.c | 65 Word32 L_tmp;
81 L_tmp = 8192L; /* rounding to maximise precision */
82 L_tmp += y1_lo * a[1];
83 L_tmp += y2_lo * a[2];
84 L_tmp = L_tmp >> 14;
85 L_tmp += (y1_hi * a[1] + y2_hi * a[2] + (x0 + x2)* b[0] + x1 * b[1]) << 1;
86 L_tmp <<= 1; /* coeff Q12 --> Q13 */
89 y1_hi = (Word16)(L_tmp>>16);
90 y1_lo = (Word16)((L_tmp & 0xffff)>>1); [all...] |
hp50.c | 66 Word32 L_tmp;
83 L_tmp = 8192 ; /* rounding to maximise precision */
84 L_tmp += y1_lo * a[1];
85 L_tmp += y2_lo * a[2];
86 L_tmp = L_tmp >> 14;
87 L_tmp += (y1_hi * a[1] + y2_hi * a[2] + (x0 + x2) * b[0] + x1 * b[1]) << 1;
88 L_tmp <<= 2; /* coeff Q12 --> Q13 */
91 y1_hi = (Word16)(L_tmp>>16);
92 y1_lo = (Word16)((L_tmp & 0xffff)>>1); [all...] |
lp_dec2.c | 43 Word32 L_tmp;
58 L_tmp = ((*p_x++) * h_fir[0]);
59 L_tmp += ((*p_x++) * h_fir[1]);
60 L_tmp += ((*p_x++) * h_fir[2]);
61 L_tmp += ((*p_x++) * h_fir[3]);
62 L_tmp += ((*p_x++) * h_fir[4]);
63 x[j] = (L_tmp + 0x4000)>>15;
|
int_lpc.c | 42 Word32 L_tmp;
51 L_tmp = (isp_old[i] * fac_old)<<1;
52 L_tmp += (isp_new[i] * fac_new)<<1;
53 isp[i] = (L_tmp + 0x8000)>>16;
|
/frameworks/base/media/libstagefright/codecs/amrnb/dec/src/ |
lsp_avg.cpp | 252 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 */ 306 L_tmp = L_deposit_h(st->lsp_meanSave[i]); 307 L_tmp = L_msu(L_tmp, EXPCONST, st->lsp_meanSave[i], pOverflow) [all...] |
post_pro.cpp | 292 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, x2, b[2]) [all...] |
/frameworks/base/media/libstagefright/codecs/amrnb/common/src/ |
gc_pred.cpp | 338 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 = L_mac(L_tmp, 32268, 32); // Q1 [all...] |
lsp_lsf.cpp | 175 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; 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; [all...] |
/frameworks/base/media/libstagefright/codecs/amrnb/enc/src/ |
pre_proc.cpp | 485 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, x2, b[2]) [all...] |
qua_gain.cpp | 227 Word32 L_tmp; 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_tmp2, pOverflow) [all...] |