/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;
|
/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/ |
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/webrtc/src/modules/audio_coding/codecs/isac/main/source/ |
lpc_analysis.c | 117 double nrg[4], chng, pg; local 123 nrg[0] = 0.0001; 125 nrg[0] += input[k]*input[k]; 127 nrg[1] = 0.0001; 129 nrg[1] += input[k]*input[k]; 131 nrg[2] = 0.0001; 133 nrg[2] += input[k]*input[k]; 135 nrg[3] = 0.0001; 137 nrg[3] += input[k]*input[k]; 141 chng = 0.25 * (fabs(10.0 * log10(nrg[3] / nrg[2])) 171 double nrg[4], chng; local [all...] |
entropy_coding.c | 408 WebRtc_Word32 nrg, res; local 533 nrg = 0; 536 nrg += (ARCoefQ12[j] * ((CorrQ7_norm[j - n] * ARCoefQ12[n] + 256) >> 9) + 540 nrg += (ARCoefQ12[j] * ((CorrQ7_norm[n - j] * ARCoefQ12[n] + 256) >> 9) + 545 nrg_u32 = (WebRtc_UWord32)nrg; 552 nrg = 0x7FFFFFFF; 554 nrg = (WebRtc_Word32)nrg_u32; 557 gain2_Q10 = WebRtcSpl_DivResultInQ31(FRAMESAMPLES_QUARTER, nrg); [all...] |
/external/webrtc/src/modules/audio_processing/agc/ |
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...] |
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...] |
/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/webrtc/src/modules/audio_coding/codecs/isac/fix/source/ |
entropy_coding.c | 507 WebRtc_Word32 nrg; local 569 nrg = 0; 572 nrg += WEBRTC_SPL_RSHIFT_W32(WEBRTC_SPL_MUL(ARCoefQ12[j], WEBRTC_SPL_RSHIFT_W32(WEBRTC_SPL_MUL(CorrQ7_norm[j-n], ARCoefQ12[n]) + 256, 9)) + 4, 3); 574 nrg += WEBRTC_SPL_RSHIFT_W32(WEBRTC_SPL_MUL(ARCoefQ12[j], WEBRTC_SPL_RSHIFT_W32(WEBRTC_SPL_MUL(CorrQ7_norm[n-j], ARCoefQ12[n]) + 256, 9)) + 4, 3); 578 nrg = WEBRTC_SPL_RSHIFT_W32(nrg, lft_shft); 580 nrg = WEBRTC_SPL_LSHIFT_W32(nrg, -lft_shft); 582 if(nrg>131072) 583 gain2_Q10 = WebRtcSpl_DivResultInQ31(FRAMESAMPLES >> 2, nrg); /* also shifts 31 bits to the left! * [all...] |