/external/speex/libspeex/ |
vbr.c | 127 float ener=0, ener1=0, ener2=0; local 140 ener=ener1+ener2; 142 log_energy = log(ener+MIN_ENERGY); 150 vbr->average_energy = (1-vbr->energy_alpha)*vbr->average_energy + vbr->energy_alpha*ener; 152 pow_ener = pow(ener,NOISE_POW); 153 if (vbr->noise_accum_count<.06 && ener>MIN_ENERGY) 178 if (pow_ener < vbr->noise_level && ener>MIN_ENERGY) 185 if (ener < 30000) 188 if (ener < 10000) 190 if (ener < 3000 [all...] |
nb_celp.c | 277 spx_word32_t ener=0; local 804 ener = SHL32(EXTEND32(compute_rms16(real_exc, st->subframeSize)),SIG_SHIFT); 809 spx_word32_t f = PDIV32(ener,PSHR32(ol_gain,SIG_SHIFT)); 816 fine_gain = PDIV32_16(ener,PSHR32(ol_gain,SIG_SHIFT)); 826 ener=MULT16_32_Q14(exc_gain_quant_scal3[qe],ol_gain); 830 ener=MULT16_32_Q14(exc_gain_quant_scal1[qe],ol_gain); 833 ener=ol_gain; 836 /*printf ("%f %f\n", ener, ol_gain);*/ 839 signal_div(target, target, ener, st->subframeSize); 850 signal_mul(innov, innov, ener, st->subframeSize) 1380 spx_word32_t ener; local [all...] |
/frameworks/base/media/libstagefright/codecs/amrwb/src/ |
synthesis_amr_wb.cpp | 152 int16 ener, exp_ener; local 250 ener = extract_h(Dot_product12(exc, exc, L_SUBFR, &exp_ener)); 257 if (tmp > ener) 259 tmp >>= 1; /* Be sure tmp < ener */ 262 L_tmp = L_deposit_h(div_16by16(tmp, ener)); /* result is normalized */ 303 ener = (int16)((L_tmp << exp) >> 16); /* ener = r[0] */ 308 fac = div_16by16(tmp, ener);
|
/frameworks/base/media/libstagefright/codecs/amrnb/common/src/ |
gc_pred.cpp | 290 Word32 ener; 310 * ener(Q24) = (Emean + sum{pred[i]*past_en[i]})/constant * 315 ener = MEAN_ENER_MR122; // Q24 (Q17) 318 ener = L_mac (ener, st->past_qua_en_MR122[i], pred_MR122[i]); 326 * gc0 = Pow10( (ener*constant - ener_code*constant) / 20 ) * 327 * = Pow2(ener-ener_code) * 333 ener = L_shr (L_sub (ener, ener_code), 1); // Q16 334 L_Extract(ener, exp_gcode0, frac_gcode0) 484 Word32 ener; local [all...] |
/frameworks/base/media/libstagefright/codecs/amrwbenc/src/ |
voAMRWBEnc.c | 1338 Word16 ener, exp_ener; local [all...] |