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) + in getSlotNrgHQ()
166 fPow2Div2((*pImag++) << maxValSF)) >> in getSlotNrgHQ()
168 slotNrg[1] = ((fPow2Div2((*pReal++) << maxValSF) + in getSlotNrgHQ()
169 fPow2Div2((*pImag++) << maxValSF)) >> in getSlotNrgHQ()
171 slotNrg[2] = ((fPow2Div2((*pReal++) << maxValSF) + in getSlotNrgHQ()
172 fPow2Div2((*pImag++) << maxValSF)) >> in getSlotNrgHQ()
175 slotNrg[3] = ((fPow2Div2((*pReal++) << maxValSF) + in getSlotNrgHQ()
176 fPow2Div2((*pImag++) << maxValSF)) >> in getSlotNrgHQ()
179 nrg = ((fPow2Div2((*pReal++) << maxValSF) + in getSlotNrgHQ()
180 fPow2Div2((*pImag++) << maxValSF)) >> in getSlotNrgHQ()
[all …]
Dsac_stp.cpp181 fMultDiv2(fPow2Div2(dmxReal << SF_DRY), pBP[n]) >> ((2 * SF_DRY) - 2)
185 fPow2Div2(dmxReal << SF_DRY) + fPow2Div2(dmxImag << SF_DRY), pBP[n])
454 tmp = fPow2Div2(qmfOutputRealWet[ch][n] << SF_WET); in subbandTPApply()
455 tmp += fPow2Div2(qmfOutputImagWet[ch][n] << SF_WET); in subbandTPApply()
/external/aac/libFDK/src/
Dautocorr2nd.cpp140 accu1 = fPow2Div2(pReBuf[0]) SHIFT; in autoCorr2nd_real()
145 accu1 += ((fPow2Div2(pReBuf[0]) + fPow2Div2(pReBuf[1])) SHIFT); in autoCorr2nd_real()
154 accu2 = (fPow2Div2(realBuf[-2]) SHIFT); in autoCorr2nd_real()
157 accu1 += (fPow2Div2(realBuf[len - 2]) SHIFT); in autoCorr2nd_real()
222 accu1 += ((fPow2Div2(pReBuf[0]) + fPow2Div2(pImBuf[0])) >> len_scale); in autoCorr2nd_cplx()
237 accu2 = ((fPow2Div2(realBuf[-2]) + fPow2Div2(imagBuf[-2])) >> len_scale); in autoCorr2nd_cplx()
240 accu1 += ((fPow2Div2(realBuf[len - 2]) + fPow2Div2(imagBuf[len - 2])) >> in autoCorr2nd_cplx()
242 accu0 = ((fPow2Div2(realBuf[len - 1]) + fPow2Div2(imagBuf[len - 1])) >> in autoCorr2nd_cplx()
244 ((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.cpp1090 fAddSaturate(energy[pb], fPow2Div2(inputReal[qs] << clz) + in DuckerCalcEnergy()
1091 fPow2Div2(inputImag[qs] << clz)); in DuckerCalcEnergy()
1104 nrg = fAddSaturate(nrg, fPow2Div2(inputReal[qs] << clz)); in DuckerCalcEnergy()
1143 fAddSaturate(energy[pb], fPow2Div2(inputReal[qs] << clz) + in DuckerCalcEnergy()
1144 fPow2Div2(inputImag[qs] << clz)); in DuckerCalcEnergy()
1149 energy[pb] = fAddSaturate(energy[pb], fPow2Div2(inputReal[qs] << clz)); in DuckerCalcEnergy()
1426 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()
1730 sqmag0_F = fPow2Div2(sqmag0R_F); in QmfTransposerApply()
1731 sqmag0_F += fPow2Div2(sqmag0I_F); in QmfTransposerApply()
1756 sqmag1_F = fPow2Div2(sqmag1R_F); in QmfTransposerApply()
1757 sqmag1_F += fPow2Div2(sqmag1I_F); in QmfTransposerApply()
1765 sqmag2_F = fPow2Div2(sqmag2R_F); in QmfTransposerApply()
1766 sqmag2_F += fPow2Div2(sqmag2I_F); in QmfTransposerApply()
DHFgen_preFlat.cpp913 nrg_ov += (fPow2Div2(sourceBufferReal[i][loBand] << reserve) + in sbrDecoder_calculateGainVec()
914 fPow2Div2(sourceBufferImag[i][loBand] << reserve)) >> in sbrDecoder_calculateGainVec()
922 nrg += (fPow2Div2(sourceBufferReal[i][loBand] << reserve) + in sbrDecoder_calculateGainVec()
923 fPow2Div2(sourceBufferImag[i][loBand] << reserve)) >> in sbrDecoder_calculateGainVec()
Dpvc_dec.cpp537 E[ksg] += (fPow2Div2(qmfR[band]) + fPow2Div2(qmfI[band])) >> 2; in pvcDecodeTimeSlot()
Denv_calc.cpp576 addme = fPow2Div2(bufferReal[j]); in apply_inter_tes()
578 addme = fPow2Div2(bufferImag[j]); in apply_inter_tes()
614 subsample_power_high[i] += fPow2Div2(bufferReal[j]) >> postShift; in apply_inter_tes()
615 subsample_power_high[i] += fPow2Div2(bufferImag[j]) >> postShift; in apply_inter_tes()
2170 sumLine += fPow2Div2(temp); in calcNrgPerSfb()
2172 sumLine += fPow2Div2(temp); in calcNrgPerSfb()
2177 sumLine += fPow2Div2(temp); in calcNrgPerSfb()
2179 sumLine += fPow2Div2(temp); in calcNrgPerSfb()
2186 sumLine += fPow2Div2(temp); in calcNrgPerSfb()
2191 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.h375 tmp_inv = fPow2Div2(tmp_inv); in invFixp()
399 return fPow2Div2(tmp_inv); in invFixp()
/external/aac/libAACdec/src/
Dusacdec_lpd.cpp195 ener += fPow2Div2((x[i] << headroom_x)) >> width_shift; in bass_pf_1sf_delay()
198 tmp += fPow2Div2((y[i] << headroom_y)) >> width_shift; in bass_pf_1sf_delay()
271 tmp += fPow2Div2(syn[i + i_subfr] << s1) >> (SF_PITCH_TRACK); in bass_pf_1sf_delay()
272 ener += fPow2Div2(syn[i + i_subfr + T] << s2) >> (SF_PITCH_TRACK); in bass_pf_1sf_delay()
438 x0 = fPow2Div2(x0); in CLpd_AdaptLowFreqDeemph()
439 x1 = fPow2Div2(x1); in CLpd_AdaptLowFreqDeemph()
760 rms_m += fPow2Div2(r[i] << headroom) >> shift; in calcEnergy()
894 FIXP_DBL tmp = fPow2Div2(xri[i]) + fPow2Div2(xri[i + 1]); in find_mpitch()
Dusacdec_lpc.cpp251 e += fPow2Div2( in RE8_PPV()
254 e -= fPow2Div2(tmp << r); in RE8_PPV()
981 tmp += fPow2Div2((FIXP_SGL)(lsf_curr[j] - lsf_prev[j])) >> 3; in CLpc_Read()
Dconceal.cpp1150 enAccu += fPow2Div2(*(spectrum + line)) >> sfbScale; in CConcealment_CalcBandEnergy()
1168 (enAccu + (fPow2Div2(*(spectrum + line)) >> sfbScale)) >> 3; in CConcealment_CalcBandEnergy()
1190 enAccu += fPow2Div2(*(spectrum + line)) >> sfbScale; in CConcealment_CalcBandEnergy()
1207 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