Searched refs:maxGain (Results 1 – 2 of 2) sorted by relevance
/external/aac/libSBRdec/src/ |
D | env_calc.cpp | 727 FIXP_DBL sumRef, boostGain, maxGain; in calculateSbrEnvelope() local 734 &maxGain, &maxGain_e); in calculateSbrEnvelope() 737 maxGain = fMult(maxGain, FDK_sbrDecoder_sbr_limGains_m[hHeaderData->bs_data.limiterGains]); in calculateSbrEnvelope() 741 if (maxGain == FL2FXCONST_DBL(0.0f)) in calculateSbrEnvelope() 744 SCHAR charTemp = CountLeadingBits(maxGain); in calculateSbrEnvelope() 746 maxGain <<= (int)charTemp; in calculateSbrEnvelope() 750 maxGain = FL2FXCONST_DBL(0.5f); in calculateSbrEnvelope() 758 …s->nrgGain_e[k] > maxGain_e) || (pNrgs->nrgGain_e[k] == maxGain_e && pNrgs->nrgGain[k]>maxGain) ) { in calculateSbrEnvelope() 763 …FDK_divide_MantExp(maxGain, maxGain_e, pNrgs->nrgGain[k], pNrgs->nrgGain_e[k], &noiseAmp, &noiseAm… in calculateSbrEnvelope() 766 pNrgs->nrgGain[k] = maxGain; in calculateSbrEnvelope()
|
/external/webrtc/src/modules/audio_processing/agc/ |
D | digital_agc.c | 80 WebRtc_Word16 constLinApprox, zeroGainLvl, maxGain, diffGain; in WebRtcAgc_CalculateGainTable() local 93 maxGain = WEBRTC_SPL_MAX(tmp16no1, (analogTarget - targetLevelDbfs)); in WebRtcAgc_CalculateGainTable() 94 tmp32no1 = WEBRTC_SPL_MUL_16_16(maxGain, kCompRatio); in WebRtcAgc_CalculateGainTable() 189 numFIX = WEBRTC_SPL_LSHIFT_W32(WEBRTC_SPL_MUL_16_U16(maxGain, constMaxGain), 6); // Q14 in WebRtcAgc_CalculateGainTable()
|