Home
last modified time | relevance | path

Searched refs:pOverflow (Results 1 – 25 of 193) sorted by relevance

12345678

/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dqgain795.cpp222 Flag *pOverflow /* o : overflow indicator */ in MR795_gain_code_quant3() argument
258 exp_code = sub(exp_gcode0, 10, pOverflow); in MR795_gain_code_quant3()
261 exp_max[0] = sub(exp_coeff[0], 13, pOverflow); in MR795_gain_code_quant3()
262 exp_max[1] = sub(exp_coeff[1], 14, pOverflow); in MR795_gain_code_quant3()
263 exp_max[2] = add(exp_coeff[2], add(15, shl(exp_code, 1, pOverflow), pOverflow), pOverflow); in MR795_gain_code_quant3()
264 exp_max[3] = add(exp_coeff[3], exp_code, pOverflow); in MR795_gain_code_quant3()
265 exp_max[4] = add(exp_coeff[4], add(exp_code, 1, pOverflow), pOverflow); in MR795_gain_code_quant3()
291 e_max = add(e_max, 1, pOverflow); /* To avoid overflow */ in MR795_gain_code_quant3()
295 j = sub(e_max, exp_max[i], pOverflow); in MR795_gain_code_quant3()
297 L_tmp = L_shr(L_tmp, j, pOverflow); in MR795_gain_code_quant3()
[all …]
Denc_lag3.cpp259 Flag *pOverflow in Enc_lag3() argument
273 temp1 = sub(T0, 85, pOverflow); in Enc_lag3()
277 temp2 = add(T0, T0, pOverflow); in Enc_lag3()
278 i = add(temp2, T0, pOverflow); in Enc_lag3()
279 temp2 = sub(i, 58, pOverflow); in Enc_lag3()
280 index = add(temp2, T0_frac, pOverflow); in Enc_lag3()
284 index = add(T0, 112, pOverflow); in Enc_lag3()
295 i = sub(T0, T0_min, pOverflow); in Enc_lag3()
296 temp2 = add(i, i, pOverflow); in Enc_lag3()
297 i = add(temp2, i, pOverflow); in Enc_lag3()
[all …]
Dqua_gain.cpp208 Flag *pOverflow /* o : overflow indicator */ in Qua_gain() argument
252 gcode0 = (Word16)(Pow2(14, frac_gcode0, pOverflow)); in Qua_gain()
271 exp_code = sub(exp_gcode0, 11, pOverflow); in Qua_gain()
274 exp_max[0] = sub(exp_coeff[0], 13, pOverflow); in Qua_gain()
275 exp_max[1] = sub(exp_coeff[1], 14, pOverflow); in Qua_gain()
277 temp = shl(exp_code, 1, pOverflow); in Qua_gain()
278 temp = add(15, temp, pOverflow); in Qua_gain()
279 exp_max[2] = add(exp_coeff[2], temp, pOverflow); in Qua_gain()
281 exp_max[3] = add(exp_coeff[3], exp_code, pOverflow); in Qua_gain()
283 temp = add(1, exp_code, pOverflow); in Qua_gain()
[all …]
Dcalc_en.cpp274 Flag *pOverflow in calc_unfilt_energies() argument
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()
318 s4 = L_mac(s4, tmp2, tmp2, pOverflow); in calc_unfilt_energies()
328 *pOverflow = 1; in calc_unfilt_energies()
340 frac_en[0] = (Word16)(L_shl(s1, exp, pOverflow) >> 16); in calc_unfilt_energies()
347 *pOverflow = 1; in calc_unfilt_energies()
351 frac_en[1] = (Word16)(L_shl(s2, exp, pOverflow) >> 16); in calc_unfilt_energies()
352 exp_en[1] = sub(15, exp, pOverflow); in calc_unfilt_energies()
[all …]
Dqgain475.cpp481 Flag *pOverflow /* o : overflow indicator */ in MR475_quant_store_results() argument
507 L_tmp = L_shr(L_tmp, tmp, pOverflow); in MR475_quant_store_results()
519 Log2((Word32) g_code, &exp, &frac, pOverflow); in MR475_quant_store_results()
522 tmp = shr_r(frac, 5, pOverflow); in MR475_quant_store_results()
527 L_tmp = Mpy_32_16(exp, frac, 24660, pOverflow); in MR475_quant_store_results()
699 Flag *pOverflow /* o : overflow indicator */ in MR475_update_unq_pred() argument
734 frac_gcode0 = (Word16)(Pow2(14, frac_gcode0, pOverflow)); in MR475_update_unq_pred()
754 Log2((Word32) frac, &exp, &frac, pOverflow); in MR475_update_unq_pred()
758 qua_ener_MR122 = shr_r(frac, 5, pOverflow); in MR475_update_unq_pred()
770 L_tmp = Mpy_32_16(exp, frac, 24660, pOverflow); in MR475_update_unq_pred()
[all …]
Dp_ol_wgh.cpp583 Flag *pOverflow /* o : overflow flag */ in Lag_max() argument
611 L_Extract(corr[-i], &t0_h, &t0_l, pOverflow); in Lag_max()
612 t0 = Mpy_32_16(t0_h, t0_l, *ww, pOverflow); in Lag_max()
617 L_Extract(t0, &t0_h, &t0_l, pOverflow); in Lag_max()
618 t0 = Mpy_32_16(t0_h, t0_l, *we, pOverflow); in Lag_max()
636 t0 = L_mac(t0, *p, *p1, pOverflow); in Lag_max()
637 t1 = L_mac(t1, *p1, *p1, pOverflow); in Lag_max()
644 vadSt->L_Rmax = L_add(vadSt->L_Rmax, t0, pOverflow); in Lag_max()
646 vadSt->L_R0 = L_add(vadSt->L_R0, t1, pOverflow); in Lag_max()
649 vad_tone_detection_update(vadSt, 0, pOverflow); in Lag_max()
[all …]
Dhp_max.cpp244 Flag *pOverflow /* i/o : overflow Flag */ in hp_max() argument
260 t0 = L_shl(corr[-i], 1, pOverflow); in hp_max()
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()
277 t0 = L_mac(t0, *p, *p1, pOverflow); in hp_max()
285 t1 = L_mac(t1, *p, *p1, pOverflow); in hp_max()
289 L_temp = L_shl(t0, 1, pOverflow); in hp_max()
290 t1 = L_shl(t1, 1, pOverflow); in hp_max()
291 t0 = L_sub(L_temp, t1, pOverflow); in hp_max()
301 shift1 = sub(t016, 1, pOverflow); in hp_max()
[all …]
Dcbsearch.cpp198 Flag *pOverflow) /* o : Flag set when overflow occurs */ in cbsearch() argument
222 pOverflow); in cbsearch()
237 pOverflow); in cbsearch()
252 pOverflow); in cbsearch()
267 pOverflow); in cbsearch()
283 pOverflow); in cbsearch()
291 pOverflow); in cbsearch()
297 pOverflow); in cbsearch()
310 pOverflow); in cbsearch()
323 pOverflow); in cbsearch()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
Dvad1.cpp172 Flag *pOverflow /* o : Flag set when overflow occurs */ in first_filter_stage() argument
188 temp0 = mult(COEFF5_1, data0, pOverflow); in first_filter_stage()
189 temp1 = shr(in[4*i+0], 2, pOverflow); in first_filter_stage()
190 temp0 = sub(temp1, temp0, pOverflow); in first_filter_stage()
192 temp1 = mult(COEFF5_1, temp0, pOverflow); in first_filter_stage()
193 temp1 = add(data0, temp1, pOverflow); in first_filter_stage()
195 temp3 = mult(COEFF5_2, data1, pOverflow); in first_filter_stage()
196 temp2 = shr(in[4*i+1], 2, pOverflow); in first_filter_stage()
198 temp3 = sub(temp2, temp3, pOverflow); in first_filter_stage()
200 temp2 = mult(COEFF5_2, temp3, pOverflow); in first_filter_stage()
[all …]
Dint_lpc.cpp182 Flag *pOverflow in Int_lpc_1and3() argument
203 pOverflow); /* Subframe 1 */ in Int_lpc_1and3()
210 pOverflow); /* Subframe 2 */ in Int_lpc_1and3()
226 pOverflow); /* Subframe 3 */ in Int_lpc_1and3()
233 pOverflow); /* Subframe 4 */ in Int_lpc_1and3()
319 Flag *pOverflow in Int_lpc_1and3_2() argument
336 Lsp_Az(lsp, Az, pOverflow); /* Subframe 1 */ in Int_lpc_1and3_2()
348 Lsp_Az(lsp, Az, pOverflow); /* Subframe 3 */ in Int_lpc_1and3_2()
439 Flag *pOverflow in Int_lpc_1to3() argument
450 temp = shr(lsp_old[i], 2, pOverflow); in Int_lpc_1to3()
[all …]
Dgc_pred.cpp477 Flag *pOverflow in gc_pred() argument
524 ener_code = ((Word32)(pv_round(ener_code, pOverflow) * 26214)) << 1; in gc_pred()
534 Log2(ener_code, &exp, &frac, pOverflow); in gc_pred()
555 ener = L_add(ener, L_temp1, pOverflow); in gc_pred()
572 L_temp1 = L_sub(ener, ener_code, pOverflow); in gc_pred()
590 ener_code = L_shl(ener_code, exp_code, pOverflow); 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()
648 *exp_en = sub(-11, exp_code, pOverflow); in gc_pred()
652 L_tmp = L_add(L_tmp, L_temp2, pOverflow); /* Q14 */ in gc_pred()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
Ddec_lag3.cpp195 Flag *pOverflow /* o : Flag set when overflow occurs */ in Dec_lag3() argument
213 pOverflow); in Dec_lag3()
219 pOverflow); in Dec_lag3()
225 i = add(i, i, pOverflow); in Dec_lag3()
226 i = add(i, *T0, pOverflow); in Dec_lag3()
232 pOverflow); in Dec_lag3()
238 pOverflow); in Dec_lag3()
260 pOverflow); in Dec_lag3()
266 pOverflow); in Dec_lag3()
272 pOverflow); in Dec_lag3()
[all …]
Ddec_lag6.cpp192 Flag *pOverflow /* o : Flag set when overflow occurs */ in Dec_lag6() argument
211 pOverflow); in Dec_lag6()
217 pOverflow); in Dec_lag6()
223 i = add(i, i, pOverflow); in Dec_lag6()
224 i = add(i, *T0, pOverflow); in Dec_lag6()
232 pOverflow); in Dec_lag6()
238 pOverflow); in Dec_lag6()
244 pOverflow); in Dec_lag6()
252 pOverflow); in Dec_lag6()
265 pOverflow); in Dec_lag6()
[all …]
Dagc.cpp171 Flag *pOverflow /* overflow: flag to indicate overflow */ in energy_old() argument
182 s = L_mac(s, temp, temp, pOverflow); in energy_old()
258 Word32 energy_old_Wrapper(Word16 in[], Word16 l_trm, Flag *pOverflow) in energy_old_Wrapper() argument
270 energy_old_value = energy_old(in, l_trm, pOverflow); in energy_old_Wrapper()
373 Flag *pOverflow /* i : overflow flag */ in energy_new() argument
381 ov_save = *(pOverflow); /* save overflow flag in case energy_old */ in energy_new()
387 s = L_mac(s, in[i], in[i], pOverflow); in energy_new()
398 *(pOverflow) = ov_save; /* restore overflow flag */ in energy_new()
399 s = energy_old(in, l_trm, pOverflow); /* function result */ in energy_new()
478 Word32 energy_new_Wrapper(Word16 in[], Word16 l_trm, Flag *pOverflow) in energy_new_Wrapper() argument
[all …]
Dd8_31pf.cpp170 Flag *pOverflow) /* o : Flag set when overflow occurs */ in decompress10() argument
192 pOverflow); in decompress10()
198 pOverflow); in decompress10()
206 pOverflow); in decompress10()
212 pOverflow); in decompress10()
220 pOverflow); in decompress10()
233 pOverflow); in decompress10()
239 pOverflow); in decompress10()
251 pOverflow); in decompress10()
257 pOverflow); in decompress10()
[all …]
Ddtx_dec.cpp851 Flag *pOverflow in dtx_dec() argument
942 st->log_en = add(st->log_en, temp, pOverflow); in dtx_dec()
946 L_deposit_l(st->lsf_hist[i * M + j]), pOverflow); in dtx_dec()
962 Lsf_lsp(lsf, st->lsp, M, pOverflow); in dtx_dec()
966 st->log_en = sub(st->log_en, st->log_en_adjust, pOverflow); in dtx_dec()
978 L_deposit_l(st->lsf_hist_mean[i+j*M]), pOverflow); in dtx_dec()
995 sub(st->lsf_hist_mean[i+j*M], lsf_mean, pOverflow); in dtx_dec()
999 mult(st->lsf_hist_mean[i+j*M], lsf_hist_mean_scale[i], pOverflow); in dtx_dec()
1057 *pOverflow = 1; in dtx_dec()
1072 D_plsf_3(lsfState, MRDTX, 0, &parm[1], st->lsp, pOverflow); in dtx_dec()
[all …]
Dc_g_aver.cpp475 Flag *pOverflow in Cb_gain_average() argument
516 tmp1 = abs_s(sub(*(lspAver + i), *(lsp + i), pOverflow)); in Cb_gain_average()
518 shift1 = sub(norm_s(tmp1), 1, pOverflow); /* Qn */ in Cb_gain_average()
519 tmp1 = shl(tmp1, shift1, pOverflow); /* Q15+Qn */ in Cb_gain_average()
521 tmp2 = shl(*(lspAver + i), shift2, pOverflow); /* Q15+Qm */ in Cb_gain_average()
528 *(tmp + i) = shr(*(tmp + i), shift, pOverflow); in Cb_gain_average()
533 *(tmp + i) = shl(*(tmp + i), negate(shift), pOverflow); in Cb_gain_average()
537 diff = add(diff, *(tmp + i), pOverflow); /* Q13 */ in Cb_gain_average()
574 tmp_diff = sub(diff, 4506, pOverflow); /* 0.55 in Q13 */ in Cb_gain_average()
579 tmp_diff = sub(diff, 3277, pOverflow); /* 0.4 in Q13 */ in Cb_gain_average()
[all …]
Dd_plsf_5.cpp308 Flag *pOverflow /* o : Flag set when overflow occurs */ in D_plsf_5() argument
337 pOverflow); in D_plsf_5()
343 pOverflow); in D_plsf_5()
349 pOverflow); in D_plsf_5()
367 pOverflow); in D_plsf_5()
373 pOverflow); in D_plsf_5()
379 pOverflow); in D_plsf_5()
391 pOverflow); in D_plsf_5()
404 pOverflow); in D_plsf_5()
428 pOverflow); in D_plsf_5()
[all …]
Ddec_gain.cpp189 Flag * pOverflow in Dec_gain() argument
204 index = shl(index, 2, pOverflow); in Dec_gain()
242 Log2(temp1, &exp, &frac, pOverflow); in Dec_gain()
243 exp = sub(exp, 12, pOverflow); in Dec_gain()
245 temp1 = shr_r(frac, 5, pOverflow); in Dec_gain()
246 temp2 = shl(exp, 10, pOverflow); in Dec_gain()
247 qua_ener_MR122 = add(temp1, temp2, pOverflow); in Dec_gain()
250 L_tmp = Mpy_32_16(exp, frac, 24660, pOverflow); in Dec_gain()
251 L_tmp = L_shl(L_tmp, 13, pOverflow); in Dec_gain()
252 qua_ener = pv_round(L_tmp, pOverflow); in Dec_gain()
[all …]
Ddec_amr.cpp1398 Flag *pOverflow = &(st->overflow); /* Overflow flag */ in Decoder_amr() local
1402 newDTXState = rx_dtx_handler(&(st->dtxDecoderState), frame_type, pOverflow); in Decoder_amr()
1417 parm, synth, A_t, pOverflow); in Decoder_amr()
1424 pOverflow); in Decoder_amr()
1429 pOverflow); in Decoder_amr()
1446 pOverflow); in Decoder_amr()
1509 pOverflow); in Decoder_amr()
1518 pOverflow); in Decoder_amr()
1528 pOverflow); in Decoder_amr()
1538 pOverflow); in Decoder_amr()
[all …]
Dex_ctrl.cpp157 Flag *pOverflow in Ex_ctrl() argument
167 prevEnergy = shr(add(exEnergyHist[7], exEnergyHist[8], pOverflow) , 1, pOverflow); in Ex_ctrl()
177 testEnergy = shl(prevEnergy, 2, pOverflow); /* testEnergy = 4*prevEnergy; */ in Ex_ctrl()
182 testEnergy = sub(testEnergy, prevEnergy, pOverflow); in Ex_ctrl()
192 excEnergy = shl(excEnergy, exp, pOverflow); in Ex_ctrl()
194 t0 = L_mult(avgEnergy, excEnergy, pOverflow); in Ex_ctrl()
195 t0 = L_shr(t0, sub(20, exp, pOverflow), pOverflow); in Ex_ctrl()
212 t0 = L_mult(scaleFactor, excitation[i], pOverflow); in Ex_ctrl()
213 t0 = L_shr(t0, 11, pOverflow); in Ex_ctrl()
Dd_gain_c.cpp196 Flag *pOverflow in d_gain_code() argument
218 &exp_inn_en, &frac_inn_en, pOverflow); in d_gain_code()
226 temp = sub((Word16)mode, (Word16)MR122, pOverflow); in d_gain_code()
229 gcode0 = (Word16)(Pow2(exp, frac, pOverflow)); /* predicted gain */ in d_gain_code()
230 gcode0 = shl(gcode0, 4, pOverflow); in d_gain_code()
231 *gain_code = shl(mult(gcode0, *p++, pOverflow), 1, pOverflow); in d_gain_code()
235 gcode0 = (Word16)(Pow2(14, frac, pOverflow)); in d_gain_code()
236 L_tmp = L_mult(*p++, gcode0, pOverflow); in d_gain_code()
237 L_tmp = L_shr(L_tmp, sub(9, exp, pOverflow), pOverflow); in d_gain_code()
/frameworks/av/media/libstagefright/codecs/amrnb/common/include/
Dbasic_op.h169 Flag *pOverflow) in Mac_32() argument
173 L_var3 = L_mac(L_var3, L_var1_hi, L_var2_hi, pOverflow); in Mac_32()
175 product = mult(L_var1_hi, L_var2_lo, pOverflow); in Mac_32()
176 L_var3 = L_mac(L_var3, product, 1, pOverflow); in Mac_32()
178 product = mult(L_var1_lo, L_var2_hi, pOverflow); in Mac_32()
179 L_var3 = L_mac(L_var3, product, 1, pOverflow); in Mac_32()
212 Flag *pOverflow) in Mac_32_16() argument
216 L_var3 = L_mac(L_var3, L_var1_hi, var2, pOverflow); in Mac_32_16()
218 product = mult(L_var1_lo, var2, pOverflow); in Mac_32_16()
219 L_var3 = L_mac(L_var3, product, 1, pOverflow); in Mac_32_16()
[all …]
Dbasic_op_c_equivalent.h119 static inline Word32 L_add(Word32 L_var1, Word32 L_var2, Flag *pOverflow) in L_add() argument
130 *pOverflow = 1; in L_add()
159 Flag *pOverflow) in L_sub() argument
170 *pOverflow = 1; in L_sub()
200 __inline Word32 L_mac(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow) in L_mac() argument
215 *pOverflow = 1; in L_mac()
221 *pOverflow = 1; in L_mac()
248 static inline Word32 L_mult(Word16 var1, Word16 var2, Flag *pOverflow) in L_mult() argument
260 *pOverflow = 1; in L_mult()
292 static inline Word32 L_msu(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow) in L_msu() argument
[all …]
Dmac_32.h110 Flag *pOverflow) in Mac_32() argument
114 L_var3 = L_mac(L_var3, L_var1_hi, L_var2_hi, pOverflow); in Mac_32()
116 product = mult(L_var1_hi, L_var2_lo, pOverflow); in Mac_32()
117 L_var3 = L_mac(L_var3, product, 1, pOverflow); in Mac_32()
119 product = mult(L_var1_lo, L_var2_hi, pOverflow); in Mac_32()
120 L_var3 = L_mac(L_var3, product, 1, pOverflow); in Mac_32()
129 Flag *pOverflow) in Mac_32_16() argument
133 L_var3 = L_mac(L_var3, L_var1_hi, var2, pOverflow); in Mac_32_16()
135 product = mult(L_var1_lo, var2, pOverflow); in Mac_32_16()
136 L_var3 = L_mac(L_var3, product, 1, pOverflow); in Mac_32_16()

12345678