/external/aac/libAACdec/src/ |
H A D | aacdec_hcr.cpp | 623 FIXP_DBL tmp; local 673 tmp = (*pTeVa < FL2FXCONST_DBL(0.0f))? -*pTeVa++ : *pTeVa++; 674 locMax = fixMax(tmp,locMax);
|
H A D | block.cpp | 561 FIXP_DBL tmp; local 563 tmp = (FIXP_DBL)((idx & mask)-offset); 567 if (tmp != FIXP_DBL(0)) 568 tmp = (FDKreadBits(bs,1))? -tmp : tmp; 570 mdctSpectrum[index+i] = tmp; 718 FIXP_DBL *tmp = pAacDecoderChannelInfo->pComData->workBufferCore1->mdctOutTemp; local 722 tmp, 735 outSamples[i*stride] = IMDCT_SCALE(tmp[ [all...] |
H A D | ldfiltbank.cpp | 111 FIXP_DBL z0, z2, tmp; local 118 tmp = ( fMultDiv2(z[N/2+i], fb[N+N/2-1-i]) + fMultDiv2(z[i], fb[N+N/2+i]) ) ; 122 output[(N*3/4-1-i)*stride] = (INT_PCM)SATURATE_RIGHT_SHIFT(tmp, -WTS1-1 + scale, SAMPLE_BITS); 125 output[(N*3/4-1-i)*stride] = (INT_PCM)SATURATE_LEFT_SHIFT(tmp, WTS1+1 - scale, SAMPLE_BITS);
|
/external/aac/libAACenc/src/ |
H A D | aacenc.cpp | 492 FIXP_DBL tmp = fDivNorm(config->framelength, config->sampleRate, &q_res); local 495 config->maxAncBytesPerAU = FDKmin( (256), FDKmax(0,(INT)(fMultDiv2(tmp, (FIXP_DBL)(encBitrate<<sc))>>(-q_res+sc-1+3))) );
|
H A D | aacenc_pns.cpp | 400 INT tmp = (-LOG_NORM_PCM)<<2; local 405 noiseNrg[sfb] = tmp - nrg;
|
H A D | aacenc_tns.cpp | 601 FIXP_DBL tmp = invSqrtNorm2(value,&shift); local 603 retValue = fMult(tmp,tmp); 1126 FIXP_DBL tmp, parcorWorkBuffer[TNS_MAX_ORDER]; 1140 tmp = (FIXP_DBL)((LONG)workBuffer[0]^sign); 1142 if(input[0]<tmp) 1145 tmp = (FIXP_DBL)((LONG)schur_div(tmp, input[0], FRACT_BITS)^(~sign)); 1146 reflCoeff[i] = tmp; 1149 FIXP_DBL accu1 = fMult(tmp, inpu [all...] |
H A D | adj_thr.cpp | 867 float tmp = thrExp[ch][sfb]+redVal; 868 tmp *= tmp; 869 sfbThrReduced = tmp*tmp; 1259 FIXP_DBL tmp = CalcInvLdData(sfbPeFactorsLdData[elementId][ch][sfbGrp+sfb] + normFactorLdData - sfbNActiveLinesLdData[elementId][ch][sfbGrp+sfb] - FL2FXCONST_DBL((float)LD_DATA_SHIFT/LD_DATA_SCALING)); local 1262 tmp = (deltaPe<0) ? tmp : (-tmp); 1263 thrFactorLdData = FDKmin(tmp, FL2FXCONST_DB 1808 FIXP_DBL tmp = fDivNorm((FIXP_DBL)redPeGlobal, (FIXP_DBL)desiredPe, &redVal_scale); local [all...] |
H A D | band_nrg.cpp | 107 FIXP_DBL maxSpc, tmp; local 112 tmp = fixp_abs(mdctSpectrum[j]); 113 maxSpc = fixMax(maxSpc, tmp); 142 FIXP_DBL tmp = 0; local 145 tmp = fPow2AddDiv2(tmp, spec); 147 bandEnergy[i] = tmp<<1; 191 FIXP_DBL tmp = FL2FXCONST_DBL(0.0); local 196 tmp = fPow2AddDiv2(tmp, spe 264 FIXP_DBL tmp = FL2FXCONST_DBL(0.0); local [all...] |
H A D | bitenc.cpp | 129 INT tmp = sectionData->huffsection[i].sfbStart+sectionData->huffsection[i].sfbCnt; local 130 for(sfb=sectionData->huffsection[i].sfbStart; sfb<tmp; sfb++) 320 INT tmp = sfbStart + sectionData->huffsection[i].sfbCnt; local 321 for(j=sfbStart; j<tmp; j++) { 331 INT tmp = sfbStart + sectionData->huffsection[i].sfbCnt; local 332 for(j=sfbStart; j<tmp; j++) { 348 INT tmp = sectionData->huffsection[i].sfbStart+sectionData->huffsection[i].sfbCnt; local 349 for(j=sectionData->huffsection[i].sfbStart; j<tmp; j++){ 795 INT tmp = (INT)FDKgetValidBits(hBitStream); local 798 dseBitsUsed += (INT)FDKgetValidBits(hBitStream) - tmp [all...] |
H A D | block_switch.cpp | 269 FIXP_DBL tmp = fMultDiv2(oneMinusAccWindowNrgFac, blockSwitchingControl->accWindowNrg); local 270 blockSwitchingControl->accWindowNrg = fMultAdd(tmp, accWindowNrgFac, enM1) ;
|
H A D | chaosmeasure.cpp | 117 FIXP_DBL tmp = (left>>1)+(right>>1); local 119 if (tmp < center ) { 121 tmp = schur_div(tmp<<leadingBits, center<<leadingBits, 8); 122 chaosMeasure[j] = fMult(tmp,tmp);
|
H A D | dyn_bits.cpp | 577 INT tmp = sectionData->huffsection[i].sfbStart + sectionData->huffsection[i].sfbCnt; local 578 for (j = sectionData->huffsection[i].sfbStart; j<tmp; j++) 588 if (j == (tmp - 1) ) 593 for (k = (j+1); k < tmp; k++)
|
H A D | intensity.cpp | 184 FIXP_DBL tmp = fixp_abs((FIXP_DBL)mdctSpectrum[i]); local 185 maxSpc = fixMax(maxSpc, tmp); 320 FIXP_DBL tmp; local 322 tmp = fMultDiv2((normSfbLoudness[sfb + sfboffs]>>OVERALL_LOUDNESS_SF)<<OVERALL_LOUDNESS_SF,invOverallLoudness); 324 normSfbLoudness[sfb + sfboffs] = scaleValue(tmp, invOverallLoudnessSF); 376 tmp = fMult(square_l<<sL,square_r<<sR); 377 tmp = sqrtFixp(tmp); 379 FDK_ASSERT(tmp > FL2FXCONST_DBL(0.0f)); 383 channelCorr[sfb + sfboffs] = -(fDivNorm(-prod_lr,tmp, 676 FIXP_DBL tmp, d, ed = FL2FXCONST_DBL(0.0f); local 710 FIXP_DBL tmp, s, es = FL2FXCONST_DBL(0.0f); local [all...] |
H A D | metadata_compressor.cpp | 878 FIXP_DBL tmp; local 891 tmp = FL2FXCONST_DBL(0.f); 893 if (drcComp->channelIdx[LS] >= 0) tmp -= fMultDiv2(FL2FXCONST_DBL(0.707f), (FIXP_PCM)pSamples[drcComp->channelIdx[LS]])>>(DOWNMIX_SHIFT-1); /* Ls */ 894 if (drcComp->channelIdx[LS2] >= 0) tmp -= fMultDiv2(FL2FXCONST_DBL(0.707f), (FIXP_PCM)pSamples[drcComp->channelIdx[LS2]])>>(DOWNMIX_SHIFT-1); /* Ls2 */ 895 if (drcComp->channelIdx[RS] >= 0) tmp -= fMultDiv2(FL2FXCONST_DBL(0.707f), (FIXP_PCM)pSamples[drcComp->channelIdx[RS]])>>(DOWNMIX_SHIFT-1); /* Rs */ 896 if (drcComp->channelIdx[RS2] >= 0) tmp -= fMultDiv2(FL2FXCONST_DBL(0.707f), (FIXP_PCM)pSamples[drcComp->channelIdx[RS2]])>>(DOWNMIX_SHIFT-1); /* Rs2 */ 897 if ((drcComp->channelIdx[LS] >= 0) && (drcComp->channelIdx[LS2] >= 0)) tmp = fMult(FL2FXCONST_DBL(0.707f), tmp); /* 7.1ch */ 898 if (drcComp->channelIdx[S] >= 0) tmp -= fMultDiv2(FL2FXCONST_DBL(0.707f), (FIXP_PCM)pSamples[drcComp->channelIdx[S]])>>(DOWNMIX_SHIFT-1); /* S */ 899 if (drcComp->channelIdx[C] >= 0) tmp 964 FIXP_DBL tmp = drcComp->prevPeak[i]; local 1009 FIXP_DBL tmp; local [all...] |
H A D | metadata_main.cpp | 300 INT tmp = ((INT)dyn_rng_ctl << (16-2)); local 301 if (dyn_rng_sgn) tmp = -tmp; 303 return tmp; 310 INT tmp; local 312 /* tmp = (int)((48.164f - gain) / 6.0206f * 15 + 0.5f); */ 313 tmp = ((3156476 - gain) * 15 + 197283) / 394566; 315 if (tmp >= 240) { 318 else if (tmp < 0) { 322 x = tmp / 1 636 INT_PCM tmp = pAudioSamples[i]; local [all...] |
H A D | ms_stereo.cpp | 139 FIXP_DBL tmp; local 159 tmp = fixMax(sfbEnergyLeftLdData[sfb+sfboffs], sfbThresholdLeftLdData[sfb+sfboffs]); 160 pnlrLdData = (sfbThresholdLeftLdData[sfb+sfboffs]>>1) - (tmp>>1); 162 tmp = fixMax(sfbEnergyRightLdData[sfb+sfboffs], sfbThresholdRightLdData[sfb+sfboffs]); 163 pnlrLdData = pnlrLdData - (tmp>>1); 167 tmp = fixMax(sfbEnergyMidLdData[sfb+sfboffs], minThresholdLdData); 168 pnmsLdData = minThresholdLdData - (tmp>>1); 169 tmp = fixMax(sfbEnergySideLdData[sfb+sfboffs], minThresholdLdData); 170 pnmsLdData = pnmsLdData - (tmp>>1);
|
H A D | pnsparam.cpp | 298 FIXP_DBL tmp; local 302 tmp = fPow(np->refPower, 0, sfbWidth, DFRACT_BITS-1-5, &qtmp); 303 np->powDistPSDcurve[i] = (FIXP_SGL)((LONG)(scaleValue(tmp, qtmp) >> 16));
|
H A D | pre_echo_control.cpp | 140 FIXP_DBL tmp = pbThreshold[i]; local 143 pbThresholdNm1[i] = tmp; 145 tmp = fixMin(tmp, tmpThreshold1); 146 pbThreshold[i] = fixMax(tmp, tmpThreshold2);
|
H A D | psy_configuration.cpp | 481 FIXP_DBL pePart_const, tmp, snr, one_qsnr, one_point5; local 530 tmp = f2Pow(pePart, DFRACT_BITS-1-qpeprt, &qtmp); 535 tmp = tmp >> (qtmp - qsnr); 542 snr = (tmp>>1) - (one_point5); qsnr -= 1;
|
H A D | qc_main.cpp | 1309 INT tmp = fixp_abs(quantSpectrum[line]); local 1310 maxThisSfb = fixMax(tmp, maxThisSfb);
|
H A D | sf_estim.cpp | 1109 FIXP_DBL tmp; local 1145 tmp = CalcLdData(maxSpec); 1146 if (c1Const>FL2FXCONST_DBL(-1.f)-tmp) { 1147 minSfMaxQuant[sfbOffs+sfb] = ((INT) ((c1Const + tmp) >> ((DFRACT_BITS-1)-8))) + 1;
|
H A D | tonality.cpp | 134 FIXP_DBL tmp = fMultDiv2(alpha_1, chaosMeasurePerLine[j]); local 135 chaosMeasurePerLine[j] = fMultAdd(tmp, alpha_0, chaosMeasurePerLine[j-1]); 179 FIXP_DBL tmp = (*spectrum++)<<shiftBits; local 180 FIXP_DBL lineNrg = fMultDiv2(tmp, tmp);
|
/external/aac/libFDK/include/ |
H A D | FDK_trigFcts.h | 180 FIXP_STP tmp; local 183 tmp = SINETAB[s]; 184 sl = (LONG)tmp.v.re; 185 cl = (LONG)tmp.v.im; 187 FIXP_STP tmp; local 188 tmp = SINETAB[s]; 189 sl = (LONG)tmp.v.im; 190 cl = (LONG)tmp.v.re;
|
H A D | dct.h | 109 void dct_II(FIXP_DBL *pDat, FIXP_DBL *tmp, int size, int *pDat_e); 121 void dct_III(FIXP_DBL *pDat, FIXP_DBL *tmp, int size, int *pDat_e);
|
H A D | fixpoint_math.h | 189 INT result, tmp ; local 192 : "%d" (tmp), "d" (denum) , "d" (num) 203 INT result, tmp; local 205 __asm__ ("srl %[tmp], %[denum], 15\n" 206 "div %[result], %[num], %[tmp]\n" 207 : [tmp] "+r" (tmp), [result]"=r"(result) 224 INT tmp = denum >> (count-1); local 227 while (num > tmp) 229 num -= tmp; [all...] |