/external/aac/libFDK/src/ |
autocorr2nd.cpp | 132 accu5 = ( (fMultDiv2(pReBuf[0], pReBuf[2]) + 133 fMultDiv2(pReBuf[1], pReBuf[3])) SHIFT); 138 accu3 = fMultDiv2(pReBuf[0], pReBuf[1]) SHIFT; 146 accu3 += ( (fMultDiv2(pReBuf[0], pReBuf[1]) + 147 fMultDiv2(pReBuf[1], pReBuf[2])) SHIFT); 149 accu5 += ( (fMultDiv2(pReBuf[0], pReBuf[2]) + 150 fMultDiv2(pReBuf[1], pReBuf[3])) SHIFT); 159 accu4 = (fMultDiv2(realBuf[-1],realBuf[-2]) SHIFT); 162 accu3 += (fMultDiv2(realBuf[len - 1],realBuf[len - 2]) SHIFT); 165 autoCorrScaling = mScale - 1 - SHIFT_FACTOR; /* -1 because of fMultDiv2*/ [all...] |
FDK_hybrid.cpp | 466 r1 = fMultDiv2(p[1], pQmfReal[pReadIdx[1]]) + fMultDiv2(p[1], pQmfReal[pReadIdx[11]]) ; 467 i1 = fMultDiv2(p[1], pQmfImag[pReadIdx[1]]) + fMultDiv2(p[1], pQmfImag[pReadIdx[11]]) ; 468 r1 += fMultDiv2(p[3], pQmfReal[pReadIdx[3]]) + fMultDiv2(p[3], pQmfReal[pReadIdx[ 9]]) ; 469 i1 += fMultDiv2(p[3], pQmfImag[pReadIdx[3]]) + fMultDiv2(p[3], pQmfImag[pReadIdx[ 9]]) ; 470 r1 += fMultDiv2(p[5], pQmfReal[pReadIdx[5]]) + fMultDiv2(p[5], pQmfReal[pReadIdx[ 7]]) [all...] |
qmf.cpp | 203 FIXP_DBL Are = FX_QSS2FX_DBL(sta[0]) + fMultDiv2( p_fltm[0] , real); 220 sta[0] = sta[1] + FX_DBL2FX_QSS(fMultDiv2( p_flt [4] , imag )); 221 sta[1] = sta[2] + FX_DBL2FX_QSS(fMultDiv2( p_fltm[1] , real )); 222 sta[2] = sta[3] + FX_DBL2FX_QSS(fMultDiv2( p_flt [3] , imag )); 223 sta[3] = sta[4] + FX_DBL2FX_QSS(fMultDiv2( p_fltm[2] , real )); 224 sta[4] = sta[5] + FX_DBL2FX_QSS(fMultDiv2( p_flt [2] , imag )); 225 sta[5] = sta[6] + FX_DBL2FX_QSS(fMultDiv2( p_fltm[3] , real )); 226 sta[6] = sta[7] + FX_DBL2FX_QSS(fMultDiv2( p_flt [1] , imag )); 227 sta[7] = sta[8] + FX_DBL2FX_QSS(fMultDiv2( p_fltm[4] , real )); 228 sta[8] = FX_DBL2FX_QSS(fMultDiv2( p_flt [0] , imag )) [all...] |
scale.cpp | 289 /* Compensate fMultDiv2 */ 296 *vector = fMultDiv2(*vector, factor) << scalefactor; 301 *vector = fMultDiv2(*vector, factor) << scalefactor; vector++; 302 *vector = fMultDiv2(*vector, factor) << scalefactor; vector++; 303 *vector = fMultDiv2(*vector, factor) << scalefactor; vector++; 304 *vector = fMultDiv2(*vector, factor) << scalefactor; vector++; 310 *vector = fMultDiv2(*vector, factor) >> negScalefactor; 315 *vector = fMultDiv2(*vector, factor) >> negScalefactor; vector++; 316 *vector = fMultDiv2(*vector, factor) >> negScalefactor; vector++; 317 *vector = fMultDiv2(*vector, factor) >> negScalefactor; vector++ [all...] |
/external/aac/libFDK/include/ |
cplx_mul.h | 118 *c_Re = fMultDiv2(a_Re,b_Re) - fMultDiv2(a_Im,b_Im); 119 *c_Im = fMultDiv2(a_Re,b_Im) + fMultDiv2(a_Im,b_Re); 146 *c_Re += fMultDiv2(a_Re,b_Re) - fMultDiv2(a_Im,b_Im); 147 *c_Im += fMultDiv2(a_Re,b_Im) + fMultDiv2(a_Im,b_Re); 161 *c_Re -= fMultDiv2(a_Re,b_Re) - fMultDiv2(a_Im,b_Im) [all...] |
FDK_trigFcts.h | 217 error0 = fMultDiv2(sine, residual); 218 error1 = fMultDiv2(cosine, residual); 223 error0 = fMultDiv2(sine, residual); 224 error1 = fMultDiv2(cosine, residual);
|
fft.h | 221 vr = fMultDiv2(ui+ur,W_PiFOURTH); 222 vi = fMultDiv2(ui-ur,W_PiFOURTH); 232 vr = fMultDiv2(ui-ur,W_PiFOURTH); 233 vi = fMultDiv2(ui+ur,W_PiFOURTH);
|
fixmadd.h | 116 { return (x + fMultDiv2 (a, b)); } 141 { return x + fMultDiv2(a,b); } 146 { return (x - fMultDiv2 (a, b)); } 171 { return x - fMultDiv2(a,b); } 255 { return (x + fMultDiv2(a,b))<<1; } 282 { return (x - fMultDiv2(a,b))<<1; }
|
/external/aac/libFDK/src/arm/ |
scale_arm.cpp | 106 /* It performs a fMultDiv2 and increments shift by 1 */ 120 tmp0 = fMultDiv2(tmp0, factor); 121 tmp1 = fMultDiv2(tmp1, factor); 122 tmp2 = fMultDiv2(tmp2, factor); 123 tmp3 = fMultDiv2(tmp3, factor); 136 tmp0 = fMultDiv2(tmp0, factor); 150 tmp0 = fMultDiv2(tmp0, factor); 151 tmp1 = fMultDiv2(tmp1, factor); 152 tmp2 = fMultDiv2(tmp2, factor); 153 tmp3 = fMultDiv2(tmp3, factor) [all...] |
/external/aac/libAACdec/src/ |
ldfiltbank.cpp | 114 z0 = z2 + ( fMultDiv2(z[N/2+i], fb[2*N + i]) >> (-WTS2-1) ); 116 z[N/2+i] = x[N/2-1-i] + ( fMultDiv2(z[N + i], fb[2*N + N/2 + i]) >> (-WTS2-1) ); 118 tmp = ( fMultDiv2(z[N/2+i], fb[N+N/2-1-i]) + fMultDiv2(z[i], fb[N+N/2+i]) ) ; 137 z0 = z2 + ( fMultDiv2(z[N/2+i], fb[2*N + i]) >> (-WTS2-1) ); 139 z[N/2+i] = x[N/2-1-i] + ( fMultDiv2(z[N + i], fb[2*N + N/2 + i]) >> (-WTS2-1) ); 141 tmp0 = ( fMultDiv2(z[N/2+i], fb[N/2-1-i]) + fMultDiv2(z[i], fb[N/2+i]) ) ; 142 tmp1 = ( fMultDiv2(z[N/2+i], fb[N+N/2-1-i]) + fMultDiv2(z[i], fb[N+N/2+i]) ) [all...] |
aacdec_tns.cpp | 261 x = (pSpec [0]>>1) + fMultDiv2 (*pCoeff++, pState [0]) ; \ 263 x = (pSpec [0]<<s) + fMultDiv2 (*pCoeff++, pState [0]) ; 267 pState [0] = pState [1] - (fMultDiv2 (*pCoeff++, x) <<2) ; \
|
/external/aac/libSBRdec/src/arm/ |
lpp_tran_arm.cpp | 123 accu1 = fMultDiv2( a0r,real1); 124 accu2 = fMultDiv2( a0i,imag1); 127 real2 = fMultDiv2( a1i,real2);
|
/external/aac/libSBRdec/src/ |
psdec_hybrid.cpp | 181 t1 = fMultDiv2(p2_13_20[1] , ( (pQmfReal[1] >> 1) + (pQmfReal[11] >> 1))); 182 t3 = fMultDiv2(p2_13_20[3] , ( (pQmfReal[3] >> 1) + (pQmfReal[ 9] >> 1))); 183 t5 = fMultDiv2(p2_13_20[5] , ( (pQmfReal[5] >> 1) + (pQmfReal[ 7] >> 1))); 184 t6 = fMultDiv2(p2_13_20[6] , (pQmfReal[6] >> 1) ); 189 t1 = fMultDiv2(p2_13_20[1] , ( (pQmfImag[1] >> 1) + (pQmfImag[11] >> 1))); 190 t3 = fMultDiv2(p2_13_20[3] , ( (pQmfImag[3] >> 1) + (pQmfImag[ 9] >> 1))); 191 t5 = fMultDiv2(p2_13_20[5] , ( (pQmfImag[5] >> 1) + (pQmfImag[ 7] >> 1))); 192 t6 = fMultDiv2(p2_13_20[6] , pQmfImag[6] >> 1 ); 393 /* x*(a*b + c*d) = fMultDiv2(x, fMultAddDiv2(fMultDiv2(a, b), c, d)) * [all...] |
lpp_tran.cpp | 180 accu = fMultDiv2(FL2FXCONST_DBL(0.75f),bwTmp) + 181 fMultDiv2(FL2FXCONST_DBL(0.25f),hLppTrans->bwVectorOld[i]); 184 accu = fMultDiv2(FL2FXCONST_DBL(0.90625f),bwTmp) + 185 fMultDiv2(FL2FXCONST_DBL(0.09375f),hLppTrans->bwVectorOld[i]); 411 tmp = ( fMultDiv2(ac.r01r,ac.r12r) >> (LPC_SCALE_FACTOR-1) ) - 412 ( (fMultDiv2(ac.r01i,ac.r12i) + fMultDiv2(ac.r02r,ac.r11r)) >> (LPC_SCALE_FACTOR-1) ); 415 tmp = ( fMultDiv2(ac.r01r,ac.r12r) >> (LPC_SCALE_FACTOR-1) ) - 416 ( fMultDiv2(ac.r02r,ac.r11r) >> (LPC_SCALE_FACTOR-1) ); 441 tmp = ( fMultDiv2(ac.r01i,ac.r12r) >> (LPC_SCALE_FACTOR-1) ) [all...] |
psdec.cpp | 644 aaPowerSlot[0] = ( fMultAddDiv2( fMultDiv2(aaLeftReal[0], aaLeftReal[0]), aaLeftImag[0], aaLeftImag[0] ) >> FLTR_SCALE ) + 645 ( fMultAddDiv2( fMultDiv2(aaLeftReal[7], aaLeftReal[7]), aaLeftImag[7], aaLeftImag[7] ) >> FLTR_SCALE ); 647 aaPowerSlot[1] = ( fMultAddDiv2( fMultDiv2(aaLeftReal[1], aaLeftReal[1]), aaLeftImag[1], aaLeftImag[1] ) >> FLTR_SCALE ) + 648 ( fMultAddDiv2( fMultDiv2(aaLeftReal[6], aaLeftReal[6]), aaLeftImag[6], aaLeftImag[6] ) >> FLTR_SCALE ); 650 aaPowerSlot[2] = fMultAddDiv2( fMultDiv2(aaLeftReal[2], aaLeftReal[2]), aaLeftImag[2], aaLeftImag[2] ) >> FLTR_SCALE; 651 aaPowerSlot[3] = fMultAddDiv2( fMultDiv2(aaLeftReal[3], aaLeftReal[3]), aaLeftImag[3], aaLeftImag[3] ) >> FLTR_SCALE; 653 aaPowerSlot[4] = fMultAddDiv2( fMultDiv2(aaLeftReal[9], aaLeftReal[9]), aaLeftImag[9], aaLeftImag[9] ) >> FLTR_SCALE; 654 aaPowerSlot[5] = fMultAddDiv2( fMultDiv2(aaLeftReal[8], aaLeftReal[8]), aaLeftImag[8], aaLeftImag[8] ) >> FLTR_SCALE; 656 aaPowerSlot[6] = fMultAddDiv2( fMultDiv2(aaLeftReal[10], aaLeftReal[10]), aaLeftImag[10], aaLeftImag[10] ) >> FLTR_SCALE; 657 aaPowerSlot[7] = fMultAddDiv2( fMultDiv2(aaLeftReal[11], aaLeftReal[11]), aaLeftImag[11], aaLeftImag[11] ) >> FLTR_SCALE [all...] |
env_calc.cpp | [all...] |
transcendent.h | 255 ratio_m = (index<0)? FX_SGL2FX_DBL(a_m >> 1) : fMultDiv2(bInv_m,a_m); 311 ratio_m = (index<0)? (a_m >> 1) : fMultDiv2(bInv_m,a_m);
|
/external/aac/libAACenc/src/ |
transform.cpp | 129 * + 1: fMultDiv2() in windowing. 187 tmp0 = fMultDiv2((FIXP_PCM)timeData[i+nl], pLeftWindowPart[i].v.im); 204 tmp1 = fMultDiv2((FIXP_PCM)timeData[tl+nr+i], pRightWindowPart[i].v.re); 226 outval = (fMultDiv2((FIXP_PCM)timeData[L+N*3/4-1-i], pWindowELD[N+N/2-1-i]) >> (-WTS1)); 227 outval += (fMultDiv2((FIXP_PCM)timeData[L+N*3/4+i], pWindowELD[N+N/2+i]) >> (-WTS1) ); 228 outval += (fMultDiv2(overlapAddBuffer[N/2+i], pWindowELD[2*N+i])>> (-WTS2-1)); 233 mdctData[i] = overlapAddBuffer[N/2+i] + (fMultDiv2(overlapAddBuffer[N+N/2-1-i], pWindowELD[2*N+N/2+i]) >> (-WTS2-1)); 245 outval = (fMultDiv2((FIXP_PCM)timeData[L+N*3/4-1-i], pWindowELD[N+N/2-1-i]) >> (-WTS1)) ; 246 outval += (fMultDiv2(overlapAddBuffer[N/2+i], pWindowELD[2*N+i]) >> (-WTS2-1)); 251 mdctData[i] = overlapAddBuffer[N/2+i] + (fMultDiv2(overlapAddBuffer[N+N/2-1-i], pWindowELD[2*N+N/2+i]) >> (-WTS2-1)) [all...] |
intensity.cpp | 315 invOverallLoudnessSF = invOverallLoudnessSF - OVERALL_LOUDNESS_SF + 1; /* +1: compensate fMultDiv2() in subsequent loop */ 322 tmp = fMultDiv2((normSfbLoudness[sfb + sfboffs]>>OVERALL_LOUDNESS_SF)<<OVERALL_LOUDNESS_SF,invOverallLoudness); 330 /* inv_n is scaled with factor 2 to compensate fMultDiv2() in subsequent loops */ 349 ml += fMultDiv2((mdctSpectrumLeft[j] << s),inv_n); // scaled with mdctScale - s + inv_n 350 mr += fMultDiv2((mdctSpectrumRight[j] << s),inv_n); // scaled with mdctScale - s + inv_n 352 ml = fMultDiv2(ml,inv_n); // scaled with mdctScale - s + inv_n 353 mr = fMultDiv2(mr,inv_n); // scaled with mdctScale - s + inv_n 356 tmp_l = fMultDiv2((mdctSpectrumLeft[j] << s),inv_n) - ml; // scaled with mdctScale - s + inv_n 357 tmp_r = fMultDiv2((mdctSpectrumRight[j] << s),inv_n) - mr; // scaled with mdctScale - s + inv_n 359 prod_lr += fMultDiv2(tmp_l,tmp_r); // scaled with 2*(mdctScale - s + inv_n) + [all...] |
tonality.cpp | 134 FIXP_DBL tmp = fMultDiv2(alpha_1, chaosMeasurePerLine[j]); 180 FIXP_DBL lineNrg = fMultDiv2(tmp, tmp); 187 /* add ld(convtone)/64 and 2/64 bec.fMultDiv2 */ 194 sfbTonality[i] = FX_DBL2FX_SGL(fMultDiv2( chaosMeasureSfbLD64 , normlog ) << 7);
|
line_pe.cpp | 169 peChanData->sfbPe[sfbGrp+sfb] = fMultDiv2(logDataRatio, (FIXP_DBL)(nLines<<(LD_DATA_SHIFT+PE_CONSTPART_SHIFT+1))); 171 fMultDiv2(sfbEnergyLdData[sfbGrp+sfb], (FIXP_DBL)(nLines<<(LD_DATA_SHIFT+PE_CONSTPART_SHIFT+1))); ; 177 fMultDiv2(((FIXP_DBL)C2LdData + fMult(C3LdData,logDataRatio)), (FIXP_DBL)(nLines<<(LD_DATA_SHIFT+PE_CONSTPART_SHIFT+1))); 180 fMultDiv2(((FIXP_DBL)C2LdData + fMult(C3LdData,sfbEnergyLdData[sfbGrp+sfb])),
|
metadata_compressor.cpp | [all...] |
/external/aac/libSBRenc/src/ |
ton_corr.cpp | 221 fac = fMultDiv2(ac->r00r, ac->r11r)>>1; 224 alphar[1] = (fMultDiv2(ac->r01r, ac->r12r)>>1) - (fMultDiv2(ac->r01i, ac->r12i)>>1) - (fMultDiv2(ac->r02r, ac->r11r)>>1); 225 alphai[1] = (fMultDiv2(ac->r01i, ac->r12r)>>1) + (fMultDiv2(ac->r01r, ac->r12i)>>1) - (fMultDiv2(ac->r02i, ac->r11r)>>1); 227 alphar[0] = (fMultDiv2(ac->r01r, ac->det)>>(ac->det_scale+1)) + fMult(alphar[1], ac->r12r) + fMult(alphai[1], ac->r12i); 228 alphai[0] = (fMultDiv2(ac->r01i, ac->det)>>(ac->det_scale+1)) + fMult(alphai[1], ac->r12r) - fMult(alphar[1], ac->r12i); 230 fac = fMultDiv2(ac->r00r, fMult(ac->det, ac->r11r))>>(ac->det_scale+1) [all...] |
invf_est.cpp | 240 origQuota += fMultDiv2(quotaVecOrig[i], invChannel); 241 sbrQuota += fMultDiv2(quotaVecSbr[i], invChannel); 257 origQuotaMeanStrongest += fMultDiv2(quotaVecOrig[i + stopChannel - temp], invTemp); 258 sbrQuotaMeanStrongest += fMultDiv2(quotaVecSbr[i + stopChannel - temp], invTemp); 371 origQuotaMeanFilt = (fMultDiv2(FL2FXCONST_DBL(2.f*0.375f), (FIXP_DBL)(CalcLdData(max(detectorValues->origQuotaMeanFilt,(FIXP_DBL)1)) + FL2FXCONST_DBL(0.31143075889f)))) << 0; /* scaled by 1/2^9 */ 372 sbrQuotaMeanFilt = (fMultDiv2(FL2FXCONST_DBL(2.f*0.375f), (FIXP_DBL)(CalcLdData(max(detectorValues->sbrQuotaMeanFilt,(FIXP_DBL)1)) + FL2FXCONST_DBL(0.31143075889f)))) << 0; /* scaled by 1/2^9 */ 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 */
|
/external/aac/libPCMutils/src/ |
pcmutils_lib.cpp | 929 FIXP_DBL tCF = fMultDiv2((FIXP_PCM)*pInCF, clev); [all...] |