Home
last modified time | relevance | path

Searched refs:fPow2Div2 (Results 1 – 25 of 27) sorted by relevance

12

/external/aac/libSACdec/src/
Dsac_reshapeBBEnv.cpp165 slotNrg[0] = ((fPow2Div2((*pReal++) << maxValSF) >> (SF_FACTOR_SLOT - 1)) + in getSlotNrgHQ()
166 (fPow2Div2((*pImag++) << maxValSF) >> (SF_FACTOR_SLOT - 1))); in getSlotNrgHQ()
167 slotNrg[1] = ((fPow2Div2((*pReal++) << maxValSF) >> (SF_FACTOR_SLOT - 1)) + in getSlotNrgHQ()
168 (fPow2Div2((*pImag++) << maxValSF) >> (SF_FACTOR_SLOT - 1))); in getSlotNrgHQ()
169 slotNrg[2] = ((fPow2Div2((*pReal++) << maxValSF) >> (SF_FACTOR_SLOT - 1)) + in getSlotNrgHQ()
170 (fPow2Div2((*pImag++) << maxValSF) >> (SF_FACTOR_SLOT - 1))); in getSlotNrgHQ()
172 slotNrg[3] = ((fPow2Div2((*pReal++) << maxValSF) >> (SF_FACTOR_SLOT - 1)) + in getSlotNrgHQ()
173 (fPow2Div2((*pImag++) << maxValSF) >> (SF_FACTOR_SLOT - 1))); in getSlotNrgHQ()
175 nrg = ((fPow2Div2((*pReal++) << maxValSF) >> (SF_FACTOR_SLOT - 1)) + in getSlotNrgHQ()
176 (fPow2Div2((*pImag++) << maxValSF) >> (SF_FACTOR_SLOT - 1))); in getSlotNrgHQ()
[all …]
Dsac_stp.cpp416 DryEner0 += (fMultDiv2(fPow2Div2(dmxReal0), pBP[n]) + in subbandTPApply()
417 fMultDiv2(fPow2Div2(dmxImag0), pBP[n])) >> in subbandTPApply()
467 (fMultDiv2(fPow2Div2(scaleValue(qmfOutputRealWet[ch][n], sMin)), in subbandTPApply()
469 fMultDiv2(fPow2Div2(scaleValue(qmfOutputImagWet[ch][n], sMin)), in subbandTPApply()
/external/aac/libFDK/src/
Dautocorr2nd.cpp137 accu1 = fPow2Div2(pReBuf[0]) >> len_scale; in autoCorr2nd_real()
142 accu1 += ((fPow2Div2(pReBuf[0]) + fPow2Div2(pReBuf[1])) >> len_scale); in autoCorr2nd_real()
153 accu2 = (fPow2Div2(realBuf[-2]) >> len_scale); in autoCorr2nd_real()
156 accu1 += (fPow2Div2(realBuf[len - 2]) >> len_scale); in autoCorr2nd_real()
221 accu1 += ((fPow2Div2(pReBuf[0]) + fPow2Div2(pImBuf[0])) >> len_scale); in autoCorr2nd_cplx()
236 accu2 = ((fPow2Div2(realBuf[-2]) + fPow2Div2(imagBuf[-2])) >> len_scale); in autoCorr2nd_cplx()
239 accu1 += ((fPow2Div2(realBuf[len - 2]) + fPow2Div2(imagBuf[len - 2])) >> in autoCorr2nd_cplx()
241 accu0 = ((fPow2Div2(realBuf[len - 1]) + fPow2Div2(imagBuf[len - 1])) >> in autoCorr2nd_cplx()
243 ((fPow2Div2(realBuf[-1]) + fPow2Div2(imagBuf[-1])) >> len_scale); in autoCorr2nd_cplx()
DFDK_trigFcts.cpp278 result = PI_BY_4 + (delta_fix >> 1) - (fPow2Div2(delta_fix)); in fixp_atan()
283 temp = fPow2Div2(x); /* q25 * q25 - (DFRACT_BITS-1) - 1 = q18 */ in fixp_atan()
DFDK_decorrelate.cpp1076 (energy[pb] >> 1) + (fPow2Div2(inputReal[qs] << clz) >> 1) + in DuckerCalcEnergy()
1077 (fPow2Div2(inputImag[qs] << clz) >> 1), in DuckerCalcEnergy()
1091 nrg = fAddSaturate(nrg, fPow2Div2(inputReal[qs] << clz)); in DuckerCalcEnergy()
1116 (energy[pb] >> 1) + (fPow2Div2(inputReal[qs] << clz) >> 1) + in DuckerCalcEnergy()
1117 (fPow2Div2(inputImag[qs] << clz) >> 1), in DuckerCalcEnergy()
1123 energy[pb] = fAddSaturate(energy[pb], fPow2Div2(inputReal[qs] << clz)); in DuckerCalcEnergy()
1394 duckGain = fPow2Div2(duckGain << scale); in DuckerApplyPS()
/external/aac/libSACenc/src/
Dsacenc_vectorfunctions.cpp153 re += fPow2Div2(x[i].v.re << cs); in sumUpCplxPow2()
154 im += fPow2Div2(x[i].v.im << cs); in sumUpCplxPow2()
159 re += fPow2Div2(x[i].v.re) >> cs; in sumUpCplxPow2()
160 im += fPow2Div2(x[i].v.im) >> cs; in sumUpCplxPow2()
204 re += fPow2Div2(x[i][j].v.re << cs); in sumUpCplxPow2Dim2()
205 im += fPow2Div2(x[i][j].v.im << cs); in sumUpCplxPow2Dim2()
212 re += fPow2Div2(x[i][j].v.re) >> cs; in sumUpCplxPow2Dim2()
213 im += fPow2Div2(x[i][j].v.im) >> cs; in sumUpCplxPow2Dim2()
338 p12ri = sqrtFixp(fPow2Div2(p12r[i] << s2) + fPow2Div2(p12i[i] << s2)); in calcCoherenceVec()
Dsacenc_dmx_tdom_enh.cpp392 partialL += fPow2Div2(inputL) >> (granuleShift - 3); in fdk_sacenc_apply_enhancedTimeDomainDmx()
393 partialR += fPow2Div2(inputR) >> (granuleShift - 3); in fdk_sacenc_apply_enhancedTimeDomainDmx()
/external/aac/libSBRenc/src/
Dps_encode.cpp310 iidMeanError += fPow2Div2(dIid) >> (5 - 1); /* + (bands=20) scale = 5 */ in envelopeReducible()
311 iccMeanError += fPow2Div2(dIcc) >> (5 - 1); in envelopeReducible()
707 num_m = fPow2Div2((pwrCr[env][i] << num_e)) + in calculateICC()
708 fPow2Div2((pwrCi[env][i] << num_e)); in calculateICC()
883 pwrL_env_bin += (fPow2Div2(l_real) + fPow2Div2(l_imag)) >> bScale; in FDKsbrEnc_PSEncode()
884 pwrR_env_bin += (fPow2Div2(r_real) + fPow2Div2(r_imag)) >> bScale; in FDKsbrEnc_PSEncode()
Dps_main.cpp343 stereoScaleFactor = fPow2Div2(tmpLeftReal) + fPow2Div2(tmpLeftImag) + in DownmixPSQmfData()
344 fPow2Div2(tmpRightReal) + fPow2Div2(tmpRightImag); in DownmixPSQmfData()
Dtran_det.cpp521 temp = fPow2Div2(temp); in calculateThresholds()
527 temp = fPow2Div2(temp); in calculateThresholds()
Denv_est.cpp301 energy = fPow2AddDiv2(fPow2Div2(tr0), ti0) >> 1; in FDKsbrEnc_getEnergyFromCplxQmfData()
305 energy += fPow2AddDiv2(fPow2Div2(tr1), ti1) >> 1; in FDKsbrEnc_getEnergyFromCplxQmfData()
398 energy = fPow2AddDiv2(fPow2Div2(tr0), ti0); in FDKsbrEnc_getEnergyFromCplxQmfDataFull()
/external/aac/libSBRdec/src/
Dhbe.cpp1236 FIXP_DBL energy = fPow2Div2(gammaVecReal) + fPow2Div2(gammaVecImag); in calculateCenterFIXP()
1269 *centerReal = fPow2Div2(gc_r_m) - fPow2Div2(gc_i_m); in calculateCenterFIXP()
1276 gc_r_m = fPow2Div2(gc_r_m) - fPow2Div2(gc_i_m); in calculateCenterFIXP()
1318 FIXP_DBL energy = fPow2AddDiv2(fPow2Div2(g_r_m), g_i_m); in addHighBandPart()
1715 sqmag0_F = fPow2Div2(sqmag0R_F); in QmfTransposerApply()
1716 sqmag0_F += fPow2Div2(sqmag0I_F); in QmfTransposerApply()
1741 sqmag1_F = fPow2Div2(sqmag1R_F); in QmfTransposerApply()
1742 sqmag1_F += fPow2Div2(sqmag1I_F); in QmfTransposerApply()
1750 sqmag2_F = fPow2Div2(sqmag2R_F); in QmfTransposerApply()
1751 sqmag2_F += fPow2Div2(sqmag2I_F); in QmfTransposerApply()
DHFgen_preFlat.cpp914 (fPow2Div2(scaleValue(sourceBufferReal[i][loBand], reserve)) + in sbrDecoder_calculateGainVec()
915 fPow2Div2(scaleValue(sourceBufferImag[i][loBand], reserve))) >> in sbrDecoder_calculateGainVec()
923 nrg += (fPow2Div2(scaleValue(sourceBufferReal[i][loBand], reserve)) + in sbrDecoder_calculateGainVec()
924 fPow2Div2(scaleValue(sourceBufferImag[i][loBand], reserve))) >> in sbrDecoder_calculateGainVec()
Dpvc_dec.cpp538 ((fPow2Div2(qmfR[band]) >> 1) + (fPow2Div2(qmfI[band]) >> 1)) >> 3; in pvcDecodeTimeSlot()
Denv_calc.cpp579 addme = fPow2Div2(bufferReal[j]); in apply_inter_tes()
581 addme = fPow2Div2(bufferImag[j]); in apply_inter_tes()
617 subsample_power_high[i] += fPow2Div2(bufferReal[j]) >> postShift; in apply_inter_tes()
618 subsample_power_high[i] += fPow2Div2(bufferImag[j]) >> postShift; in apply_inter_tes()
2166 sumLine += fPow2Div2(temp); in calcNrgPerSfb()
2168 sumLine += fPow2Div2(temp); in calcNrgPerSfb()
2173 sumLine += fPow2Div2(temp); in calcNrgPerSfb()
2175 sumLine += fPow2Div2(temp); in calcNrgPerSfb()
2182 sumLine += fPow2Div2(temp); in calcNrgPerSfb()
2187 sumLine += fPow2Div2(temp); in calcNrgPerSfb()
/external/aac/libFDK/include/
Dfixmadd.h312 return (x + fPow2Div2(a)); in fixpadddiv2_D()
325 return (x + fPow2Div2(a)); in fixpadddiv2_S()
Dcommon_fix.h249 FDK_INLINE LONG fPow2Div2(LONG a) { return fixpow2div2_D(a); } in fPow2Div2() function
250 FDK_INLINE LONG fPow2Div2(SHORT a) { return fixpow2div2_S(a); } in fPow2Div2() function
Dfixpoint_math.h401 tmp_inv = fPow2Div2(tmp_inv); in invFixp()
425 return fPow2Div2(tmp_inv); in invFixp()
/external/aac/libAACdec/src/
Dusacdec_lpd.cpp201 ener += fPow2Div2((x[i] << headroom_x)) >> width_shift; in bass_pf_1sf_delay()
204 tmp += fPow2Div2((y[i] << headroom_y)) >> width_shift; in bass_pf_1sf_delay()
277 tmp += fPow2Div2(syn[i + i_subfr] << s1) >> (SF_PITCH_TRACK); in bass_pf_1sf_delay()
278 ener += fPow2Div2(syn[i + i_subfr + T] << s2) >> (SF_PITCH_TRACK); in bass_pf_1sf_delay()
449 x0 = fPow2Div2(x0); in CLpd_AdaptLowFreqDeemph()
450 x1 = fPow2Div2(x1); in CLpd_AdaptLowFreqDeemph()
771 rms_m += fPow2Div2(r[i] << headroom) >> shift; in calcEnergy()
905 FIXP_DBL tmp = fPow2Div2(xri[i]) + fPow2Div2(xri[i + 1]); in find_mpitch()
Dusacdec_lpc.cpp251 e += (INT64)fPow2Div2( in RE8_PPV()
254 e -= (INT64)fPow2Div2(tmp << r); in RE8_PPV()
982 tmp += fPow2Div2((FIXP_SGL)(lsf_curr[j] - lsf_prev[j])) >> 3; in CLpc_Read()
Dconceal.cpp1152 enAccu += fPow2Div2(*(spectrum + line)) >> sfbScale; in CConcealment_CalcBandEnergy()
1170 (enAccu + (fPow2Div2(*(spectrum + line)) >> sfbScale)) >> 3; in CConcealment_CalcBandEnergy()
1192 enAccu += fPow2Div2(*(spectrum + line)) >> sfbScale; in CConcealment_CalcBandEnergy()
1209 enAccu += fPow2Div2(*(spectrum + (line >> 3))) >> sfbScale; in CConcealment_CalcBandEnergy()
Dusacdec_acelp.cpp213 ener_code += fPow2Div2(code[i]); in D_gain2_plus()
311 ener_exc += fPow2Div2(exc[i]) >> s; in calc_period_factor()
/external/aac/libAACenc/src/
Dblock_switch.cpp397 temp_windowNrg += (LONG)fPow2Div2(temp_iirState0) >> in FDKaacEnc_CalcWindowEnergy()
399 temp_windowNrgF += (LONG)fPow2Div2(temp_iirState1) >> in FDKaacEnc_CalcWindowEnergy()
Dintensity.cpp399 fPow2Div2(tmp_l); // scaled with 2*(mdctScale - s + inv_n) + 1 in FDKaacEnc_prepareIntensityDecision()
401 fPow2Div2(tmp_r); // scaled with 2*(mdctScale - s + inv_n) + 1 in FDKaacEnc_prepareIntensityDecision()
Dmetadata_compressor.cpp1311 accu += fPow2Div2(y) >> (granuleShift - 1); /* partial energy */ in FDK_DRC_Generator_Calc()
1345 accu += fPow2Div2((FIXP_PCM)pSamples[i]) >> (granuleShift - 1); in FDK_DRC_Generator_Calc()

12