/frameworks/av/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...] |
d_gain_c.cpp | 204 Word32 L_tmp; 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 */
|
dec_gain.cpp | 199 Word32 L_tmp; 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);
|
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/av/media/libstagefright/codecs/amrwb/src/ |
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);
|
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...] |
scale_signal.cpp | 126 int32 L_tmp; 133 L_tmp = shl_int32(((int32)x[i] << 16), exp); /* saturation can occur here */ 134 x[i] = amr_wb_round(L_tmp);
|
isp_isf.cpp | 155 int32 L_tmp; 170 L_tmp = mul_16by16_to_int32(table[ind + 1] - table[ind], offset); 171 isp[i] = add_int16(table[ind], (int16)(L_tmp >> 8));
|
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);
|
voice_factor.cpp | 128 int32 L_tmp; 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);
|
isf_extrapolation.cpp | 121 int32 L_tmp; 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 = mul_16by16_to_int32(tmp2, tmp3) [all...] |
qpisf_2s.cpp | 142 int32 L_tmp; 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; 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...] |
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
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);
|
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;
|
updt_tar.c | 36 Word32 L_tmp, L_tmp2; 40 L_tmp = x[i] << 15; 42 L_tmp = L_sub(L_tmp, L_tmp2); 43 x2[i] = extract_h(L_shl2(L_tmp, 1));
|
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; // only called with mu == 22282, so this won't overflo [all...] |
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...] |
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...] |
isp_isf.c | 40 Word32 L_tmp; 52 L_tmp = vo_L_mult(vo_sub(isp[i], table[ind]), slope[ind]); 53 isf[i] = vo_round((L_tmp << 4)); /* (isp[i]-table[ind])*slope[ind])>>11 */ 68 Word32 i, ind, L_tmp; 82 L_tmp = vo_L_mult(vo_sub(table[ind + 1], table[ind]), offset); 83 isp[i] = add1(table[ind], (Word16)((L_tmp >> 8)));
|
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;
|
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;
|
voicefac.c | 38 Word32 i, L_tmp; 46 L_tmp = vo_L_mult(gain_pit, gain_pit); 47 exp = norm_l(L_tmp); 48 tmp = extract_h(L_tmp << exp);
|
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
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/av/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...] |