/external/webrtc/webrtc/modules/audio_coding/codecs/ilbc/ |
comp_corr.c | 28 int32_t *ener, /* (o) energy */ 41 (*ener)=WebRtcSpl_DotProductWithScale(w16ptr, w16ptr, sRange, scale); 45 if (*ener == 0) { 47 *ener = 1;
|
comp_corr.h | 31 int32_t *ener, /* (o) energy */
|
do_plc.c | 41 int32_t cross, ener, cross_comp, ener_comp = 0; local 92 WebRtcIlbcfix_CompCorr( &cross, &ener, 113 shift2 = WebRtcSpl_GetSizeInBits(ener)-15; 114 measure = (int16_t)WEBRTC_SPL_SHIFT_W32(ener, -shift2) * crossSquare; 136 ener = ener_comp; 159 scale2=(int16_t)WebRtcSpl_NormW32(ener)-16; 160 tmp2=(int16_t)WEBRTC_SPL_SHIFT_W32(ener, scale2);
|
enhancer_interface.c | 60 int32_t ener; local 131 highest (corr*corr)/ener */ 145 /* Calculate normalized corr^2 and ener */ 148 ener = WebRtcSpl_DotProductWithScale(regressor - lagmax[i], 151 enerSh = 15-WebRtcSpl_GetSizeInBits(ener); 154 en16[i] = (int16_t)WEBRTC_SPL_SHIFT_W32(ener, enerSh); 158 /* Compare lagmax[0..3] for the (corr^2)/ener criteria */
|
/external/libopus/celt/tests/ |
test_unit_rotation.c | 84 double err = 0, ener = 0, snr, snr0; local 93 ener += x0[i]*(double)x0[i]; 95 snr0 = 20*log10(ener/err); 96 err = ener = 0; 101 ener += x0[i]*(double)x0[i]; 103 snr = 20*log10(ener/err);
|
/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/av/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/av/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/av/media/libstagefright/codecs/amrwbenc/src/ |
voAMRWBEnc.c | 1344 Word16 ener, exp_ener; local [all...] |