/external/aac/libAACenc/src/ |
spreading.cpp | 104 delay = fixMax(pbSpreadEnergy[i], fMult(maskHighFactor[i], delay)); 111 delay = fixMax(pbSpreadEnergy[i], fMult(maskLowFactor[i],delay));
|
noisedet.cpp | 171 INT leadingBits = fixMax(0,(sfbMaxScaleSpec[sfb] - 3)); /* max sfbWidth = 96/4 ; 2^5=32 => 5/2 = 3 (spc*spc) */ 185 maxVal = fixMax(fhelp1, fhelp2); 186 maxVal = fixMax(maxVal, fhelp3); 187 maxVal = fixMax(maxVal, fhelp4);
|
pre_echo_control.cpp | 146 pbThreshold[i] = fixMax(tmp, tmpThreshold2); 165 pbThreshold[i] = fixMax(pbThreshold[i], tmpThreshold2);
|
band_nrg.cpp | 113 maxSpc = fixMax(maxSpc, tmp); 141 scale = fixMax(0, sfbMaxScaleSpec[i]-4); 162 scale = fixMax(0,sfbMaxScaleSpec[nr]-4); 163 scale = fixMax(2*(minSpecShift-scale),-(DFRACT_BITS-1)); 216 maxNrgLd = fixMax(maxNrgLd, bandEnergyLdData[i]); 276 scale = fixMax(fixMin(scale,(DFRACT_BITS-1)),-(DFRACT_BITS-1)); 307 minScale = fixMax(0, minScale); 340 INT scale = fixMax(0, 2*(minScale-4));
|
ms_stereo.cpp | 159 tmp = fixMax(sfbEnergyLeftLdData[sfb+sfboffs], sfbThresholdLeftLdData[sfb+sfboffs]); 162 tmp = fixMax(sfbEnergyRightLdData[sfb+sfboffs], sfbThresholdRightLdData[sfb+sfboffs]); 167 tmp = fixMax(sfbEnergyMidLdData[sfb+sfboffs], minThresholdLdData); 169 tmp = fixMax(sfbEnergySideLdData[sfb+sfboffs], minThresholdLdData);
|
intensity.cpp | 185 maxSpc = fixMax(maxSpc, tmp); 284 realScale[sfb + sfboffs] = fixMin(FL2FXCONST_DBL(60.f/(1<<(REAL_SCALE_SF+LD_DATA_SHIFT))), fixMax(FL2FXCONST_DBL(-60.f/(1<<(REAL_SCALE_SF+LD_DATA_SHIFT))), isValue)); 286 sL = fixMax(0,(CntLeadingZeros(sfbEnergyLeft[sfb + sfboffs])-1)); 287 sR = fixMax(0,(CntLeadingZeros(sfbEnergyRight[sfb + sfboffs])-1)); 317 invOverallLoudnessSF = fixMin(fixMax(invOverallLoudnessSF,-(DFRACT_BITS-1)),DFRACT_BITS-1); 371 sL = fixMax(0,(CntLeadingZeros(square_l)-1)); 372 sR = fixMax(0,(CntLeadingZeros(square_r)-1)); 389 channelCorrSF = fixMin(fixMax(( channelCorrSF + ((sL+sR)>>1)),-(DFRACT_BITS-1)),DFRACT_BITS-1); 691 s2 = fixMin(fixMax(s2,-(DFRACT_BITS-1)),(DFRACT_BITS-1)); 725 s2 = fixMin(fixMax(s2,-(DFRACT_BITS-1)),(DFRACT_BITS-1)) [all...] |
tonality.cpp | 173 INT shiftBits = fixMax(0,sfbMaxScaleSpec[i] - 4); /* max sfbWidth = 96 ; 2^7=128 => 7/2 = 4 (spc*spc) */
|
metadata_compressor.cpp | 372 int resultScale = fixMax(q1-headroom1, (*pQ2)-headroom2); [all...] |
psy_main.cpp | 694 maxNrg = fixMax(maxNrg, currNrg); 721 INT scale = fixMax(0, (pSfbMaxScaleSpec[ch]+w*maxSfb[ch])[sfb]-4); [all...] |
sf_estim.cpp | 504 scfMax = fixMax(*scfLast, *scfNext); 523 scfMin = fixMax(scfMin, minScf[sfbAct]); 656 scfMax = fixMax(scfMax, scf[sfb]); 799 scfMax = fixMax(scfMax, scf[sfb]); 827 scfPrevNextMax = fixMax(scfPrev, scfNext); 832 scfHi = fixMax(scfPrevNextMax, scfAct); 847 /* sfbDistMax[sfb] = fixMax(sfbDistMax[sfb],qcOutChannel->sfbEnergy[sfb]*FL2FXCONST_DBL(1.e-3f)); */ 850 sfbDistMax[sfb] = fixMax(sfbDistMax[sfb],qcOutChannel->sfbEnergyLdData[sfb]-FL2FXCONST_DBL(0.15571537944)); [all...] |
adj_thr.cpp | 416 minSnrRed = fixMax(minSnrRed, msaParam->maxRed); /* scaled by 1.0f/64.0f*/ 488 tmpMinSnrLdData = fixMax( SnrLdFac + (FIXP_DBL)(avgEnLdData - sfbEnLdData), (FIXP_DBL)SnrLdMin1 ) ; 490 tmpMinSnrLdData = fixMax( SnrLdFac + (FIXP_DBL)(avgEnLdData - sfbEnLdData), (FIXP_DBL)SnrLdMin3 ) ; 516 FIXP_DBL maxSfbEnLd = fixMax(qcOutChanM->sfbEnergyLdData[sfbGrp+sfb],qcOutChanS->sfbEnergyLdData[sfbGrp+sfb]); 529 qcOutChanM->sfbMinSnrLdData[sfbGrp+sfb] = fixMax(qcOutChanM->sfbMinSnrLdData[sfbGrp+sfb],sfbMinSnrTmpLd); 539 qcOutChanS->sfbMinSnrLdData[sfbGrp+sfb] = fixMax(qcOutChanS->sfbMinSnrLdData[sfbGrp+sfb],sfbMinSnrTmpLd); [all...] |
psy_configuration.cpp | 364 q_msk = fixMin(DFRACT_BITS-1,fixMax(-(DFRACT_BITS-1),q_msk)); 550 snr = fixMax(one_qsnr, snr);
|
grp_data.cpp | 144 highestSfb = fixMax(highestSfb, sfb);
|
qc_main.cpp | [all...] |
/external/aac/libFDK/src/mips/ |
scale.cpp | 115 return fixMax((INT)0,(CntLeadingZeros(maxVal) - 1));
|
/external/aac/libSBRenc/src/ |
ps_main.cpp | 321 int dynQmfScale = fixMax(0, hParametricStereo->dmxScale-1); /* scale one bit more for addition of left and right */ 339 sc = fixMax(0,CntLeadingZeros( fixMax(fixMax(fixp_abs(tmpLeftReal),fixp_abs(tmpLeftImag)),fixMax(fixp_abs(tmpRightReal),fixp_abs(tmpRightImag))) )-2); 578 tmp = fixMax(tmp, (FIXP_QMF)fixp_abs(hybridData[col][0][0][i])); 579 tmp = fixMax(tmp, (FIXP_QMF)fixp_abs(hybridData[col][0][1][i])); 580 tmp = fixMax(tmp, (FIXP_QMF)fixp_abs(hybridData[col][1][0][i])); 581 tmp = fixMax(tmp, (FIXP_QMF)fixp_abs(hybridData[col][1][1][i])); 589 tmp = fixMax(tmp, (FIXP_QMF)fixp_abs(hybridData[col][0][0][i])) [all...] |
nf_est.cpp | 198 meanOrig = fixMax(meanOrig,(accu<<1)); 205 meanSbr = fixMax(meanSbr,(accu<<1)); 235 meanOrig = fixMax(meanOrig,RELAXATION); 236 meanSbr = fixMax(meanSbr,RELAXATION); 249 diff = fixMax( RELAXATION,
|
env_est.cpp | 143 scale = fixMax(0,scale-1); 180 max_val = fixMax(max_val, energy); 236 scale = fixMax(0,scale-1); 266 max_val = fixMax(max_val, energy); 634 stop_pos -= fixMax(2, timeStep); /* consider at least 2 QMF slots less for short envelopes (envelopes just before transients) */ 711 nrgLeft = fixMax(nrgLeft, tmpNrg); 733 nrgRight = fixMax(nrgRight, tmpNrg); 817 nrgLeft = fixMin(fixMax(nrgLeft,FL2FXCONST_DBL(0.0f)),(FL2FXCONST_DBL(0.5f)>>oneBitLess)); 825 nrgLeft2 = fixMax((FIXP_DBL)0x1, nrgLeft2); 826 nrgRight = fixMax((FIXP_DBL)0x1, nrgRight) [all...] |
ps_encode.cpp | 480 if(fixMax(((errIIDFine>>1)+(minThreshold>>1))>>1, fMult(quantErrorThreshold,errIIDFine)) < (errIID>>2) ) { 483 else if(fixMax(((errIID>>1)+(minThreshold>>1))>>1, fMult(quantErrorThreshold,errIID)) < (errIIDFine>>2) ) { 655 IID = fixMax( IID, (FIXP_DBL)(MINVAL_DBL>>(LD_DATA_SHIFT+1)) ); 701 sc1 = CountLeadingBits( fixMax(fixp_abs(pwrCr[env][i]),fixp_abs(pwrCi[env][i])) ) ; 748 : (fixMax(hPsEncode->iidGroupWidthLd[group],hPsEncode->psBandNrgScale[bin]) + 1) ; 911 pwrData->pwrL[env][bin] = fixMax((FIXP_DBL)0,pwrL_env_bin); 912 pwrData->pwrR[env][bin] = fixMax((FIXP_DBL)0,pwrR_env_bin); [all...] |
code_env.cpp | 355 index = fixMax(*delta, -codeBookScfLavBalance); 368 index = fixMax(*delta, -codeBookScfLavLevel); 381 index = fixMax(*delta, -codeBookScfLavLevel);
|
tran_det.cpp | 94 /* static FIXP_DBL ABS_THRES = fixMax( FL2FXCONST_DBL(1.28e5 * NORM_QMF_ENERGY), (FIXP_DBL)1) Minimum threshold for detecting changes */ 414 shift = fixMax(0,CountLeadingBits(mean_val)-6); /* -6 to keep room for accumulating upto N = 24 values */ 443 thresholds[i] = fixMax(ABS_THRES,temp); 676 tmp = fixMax(tmp, FL2FXCONST_DBL(0.0001));
|
mh_det.cpp | 166 maxValOrig = fixMax(maxValOrig, pTonalityOrig[k]); 167 maxValSbr = fixMax(maxValSbr, pTonalityOrig[indexVector[k]]); 172 pDiffMapped2Scfb[i] = scaleValue(fMult(tmp,RELAXATION_FRACT), fixMax(-(DFRACT_BITS-1),(scale-RELAXATION_SHIFT))); 697 ? fixMax(fMult(mhThresh.decayGuideDiff,guideVectors.guideVectorDiff[i]), mhThresh.thresHoldDiffGuide) 726 thresOrig = fixMax(fMult(guideVectors.guideVectorOrig[i], mhThresh.decayGuideOrig), mhThresh.thresHoldToneGuide); [all...] |
/external/aac/libAACdec/src/ |
aacdec_tns.cpp | 238 maxVal = fixMax(maxVal,fixp_abs(spec[i])); 242 s = fixMax(CntLeadingZeros(maxVal)-6,0); 244 s = fixMax(CntLeadingZeros(maxVal)-5,0);
|
/external/aac/libSBRdec/src/ |
sbr_dec.cpp | 401 reserve = fixMax(0,CntLeadingZeros(maxVal)-1) ; [all...] |
psdec.cpp | 424 scale = fixMax((INT)scale,(INT)-(DFRACT_BITS-1)); 502 maxScal = fixMax(scaleFactorHighBands,fixMax(scaleFactorLowBandSplitLow, scaleFactorLowBandSplitHigh )); 506 maxScal = fixMax(maxScal,(INT)(h_ps_d->specificTo.mpeg.scaleFactorPsDelayBuffer-headroom)); 691 nrg = fixMax(nrg,FL2FXCONST_DBL(0.f)); 707 INT scale_left = fixMax(0, CntLeadingZeros(peakDiff) - 1); [all...] |