/frameworks/av/media/libstagefright/codecs/aacdec/ |
ps_pwr_transient_detection.cpp | 195 Int32 nrg; local 317 nrg = *ptr_aPrevNrg + ((*aPower - *ptr_aPrevNrg) >> 2); 319 *(ptr_aPrevNrg++) = nrg; 323 if (peakDiff <= nrg) 329 pv_div(nrg, peakDiff, &result);
|
calc_sbr_envelope.cpp | 260 UInt32 nrg = 0; local 449 nrg = 0; 452 nrg += nrg_est_man[k] >> (tmp_q1 - nrg_est_exp[k]); /* for the whole scalefactor band. */ 454 nrg /= (ui - li); 473 nrg_est_man[c] = nrg; [all...] |
/external/webrtc/src/modules/audio_processing/agc/ |
digital_agc.c | 313 WebRtc_Word32 nrg, max_nrg; local 417 nrg = WEBRTC_SPL_MUL_16_16(out[k * L + n], out[k * L + n]); 418 if (nrg > max_nrg) 420 max_nrg = nrg; 668 WebRtc_Word32 out, nrg, tmp32, tmp32b; local 677 nrg = 0; 706 nrg += WEBRTC_SPL_RSHIFT_W32(tmp32, 6); 712 if (!(0xFFFF0000 & nrg)) 719 if (!(0xFF000000 & (nrg << zeros))) 723 if (!(0xF0000000 & (nrg << zeros)) [all...] |
analog_agc.c | 116 WebRtc_Word32 nrg, max_nrg, sample, tmp32; local 281 nrg = WEBRTC_SPL_MUL_16_16(in_mic[i * L + n], in_mic[i * L + n]); 282 if (nrg > max_nrg) 284 max_nrg = nrg; 405 WebRtc_UWord32 nrg; local 433 nrg = WEBRTC_SPL_MUL_16_16(in_near[sampleCntr], in_near[sampleCntr]); 434 frameNrg += nrg; [all...] |
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
line_pe.c | 96 Word32 nrg = sfbEnergy[sfbGrp+sfb]; local 100 if (nrg > thres) {
|
/external/aac/libSBRenc/src/ |
env_est.cpp | 504 mhLoweringEnergy(FIXP_DBL nrg, INT M) 517 tmpScale = CountLeadingBits(nrg); 518 nrg <<= tmpScale; 519 nrg = fMult(nrg, FL2FXCONST_DBL(0.398107267f)); /* The maximum boost is 1.584893, so the maximum attenuation should be square(1/1.584893) = 0.398107267 */ 520 nrg >>= tmpScale; 524 nrg >>= 1; 528 return nrg; 540 nmhLoweringEnergy(FIXP_DBL nrg, FIXP_DBL nrgSum, INT M) 542 if (nrg>FL2FXCONST_DBL(0)) [all...] |
invf_est.cpp | 111 4, /* Number of borders Nrg. */ 140 4, /* Number of borders Nrg. */ 368 FIXP_DBL nrg; local 374 nrg = (fMultDiv2(FL2FXCONST_DBL(2.f*0.375f), (FIXP_DBL)(CalcLdData(detectorValues->avgNrg+(FIXP_DBL)1) + FL2FXCONST_DBL(0.0625f) + FL2FXCONST_DBL(0.6875f)))) << 0; /* scaled by 1/2^8; 2^44 -> qmf energy scale */ 391 regionNrg = findRegion(nrg,nrgBorders,numRegionsNrg);
|
/external/aac/libSBRdec/src/ |
psdec.cpp | 595 FIXP_DBL peakDiff, nrg, transRatio; local 687 nrg = h_ps_d->specificTo.mpeg.aPrevNrgBin[bin] + fMult( INT_FILTER_COEFF, aaPowerSlot[bin] - h_ps_d->specificTo.mpeg.aPrevNrgBin[bin] ); 691 nrg = fixMax(nrg,FL2FXCONST_DBL(0.f)); 693 /* save nrg for the next frame */ 694 h_ps_d->specificTo.mpeg.aPrevNrgBin[bin] = nrg; 696 nrg = fMult( nrg, TRANSIENT_IMPACT_FACTOR ); 699 if ( peakDiff <= nrg || peakDiff == FL2FXCONST_DBL(0.0) ) { 702 else if ( nrg <= FL2FXCONST_DBL(0.0f) ) [all...] |
/external/aac/libAACenc/src/ |
aacenc_pns.cpp | 209 noiseNrg[sfb] = NO_NOISE_PNS; /* clear nrg's of previous frame */ 404 INT nrg = (-sfbEnergyLdData[sfb]+FL2FXCONST_DBL(0.5f/64.0f))>>(DFRACT_BITS-1-7); local 405 noiseNrg[sfb] = tmp - nrg;
|