/external/aac/libFDK/include/ |
fixminmax.h | 100 template <class T> inline T fixmin (T a, T b) function 111 #define fixmin_D(a,b) fixmin(a,b) 113 #define fixmin_S(a,b) fixmin(a,b) 115 #define fixmin_I(a,b) fixmin(a,b) 117 #define fixmin_UI(a,b) fixmin(a,b)
|
/external/aac/libAACenc/src/ |
noisedet.cpp | 190 minVal = fixMin(fhelp1, fhelp2); 191 minVal = fixMin(minVal, fhelp3); 192 minVal = fixMin(minVal, fhelp4); 207 fuzzyTotal = fixMin(fuzzyTotal, fuzzy); 221 fuzzyTotal = fixMin(fuzzyTotal, fuzzy);
|
intensity.cpp | 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)); 288 s = (fixMin(sL,sR)>>2)<<2; 317 invOverallLoudnessSF = fixMin(fixMax(invOverallLoudnessSF,-(DFRACT_BITS-1)),DFRACT_BITS-1); 346 s = fixMin(sL,sR); 374 sL = fixMin(sL,s); 389 channelCorrSF = fixMin(fixMax(( channelCorrSF + ((sL+sR)>>1)),-(DFRACT_BITS-1)),DFRACT_BITS-1); 678 s0 = fixMin(sL,sR); 691 s2 = fixMin(fixMax(s2,-(DFRACT_BITS-1)),(DFRACT_BITS-1)); 712 s0 = fixMin(sL,sR); 725 s2 = fixMin(fixMax(s2,-(DFRACT_BITS-1)),(DFRACT_BITS-1)) [all...] |
band_nrg.cpp | 223 INT scale = fixMin((sfbMaxScaleSpec[i]-4)<<1,(DFRACT_BITS-1)); 237 INT scale = fixMin( ((sfbMaxScaleSpec[i]-4)+shiftBits)<<1, (DFRACT_BITS-1)); 276 scale = fixMax(fixMin(scale,(DFRACT_BITS-1)),-(DFRACT_BITS-1)); 306 minScale = fixMin(sfbMaxScaleSpecLeft[i], sfbMaxScaleSpecRight[i])-4; 339 INT minScale = fixMin(sfbMaxScaleSpecLeft[i], sfbMaxScaleSpecRight[i]); 355 scale = fixMin(scale, (DFRACT_BITS-1));
|
ms_stereo.cpp | 153 minThresholdLdData = fixMin(sfbThresholdLeftLdData[sfb+sfboffs], sfbThresholdRightLdData[sfb+sfboffs]); 184 minThreshold = fixMin(sfbThresholdLeft[sfb+sfboffs], sfbThresholdRight[sfb+sfboffs]); 193 fixMin( sfbSpreadEnLeft[sfb+sfboffs], 230 minThreshold = fixMin(sfbThresholdLeft[sfb+sfboffs], sfbThresholdRight[sfb+sfboffs]); 232 minThresholdLdData = fixMin(sfbThresholdLeftLdData[sfb+sfboffs], sfbThresholdRightLdData[sfb+sfboffs]); 240 fixMin( sfbSpreadEnLeft[sfb+sfboffs],
|
adj_thr.cpp | 418 qcOutChannel[ch]->sfbMinSnrLdData[sfbGrp+sfb] = fixMin(minSnrLimitLD64, qcOutChannel[ch]->sfbMinSnrLdData[sfbGrp+sfb]); 493 fixMin(qcOutChan->sfbMinSnrLdData[sfbGrp+sfb], tmpMinSnrLdData); 498 tmpMinSnrLdData = fixMin((FIXP_DBL)SnrLdFac, tmpMinSnrLdData); 499 qcOutChan->sfbMinSnrLdData[sfbGrp+sfb] = fixMin(tmpMinSnrLdData, 532 qcOutChanM->sfbMinSnrLdData[sfbGrp+sfb] = fixMin(qcOutChanM->sfbMinSnrLdData[sfbGrp+sfb], (FIXP_DBL)SnrLdFac); 542 qcOutChanS->sfbMinSnrLdData[sfbGrp+sfb] = fixMin(qcOutChanS->sfbMinSnrLdData[sfbGrp+sfb],(FIXP_DBL)SnrLdFac); [all...] |
quantize.cpp | 130 accu >>= fixMin(totalShift,DFRACT_BITS-1); 143 accu >>= fixMin(totalShift,DFRACT_BITS-1); 328 scale = fixMin(2*(scale-1), DFRACT_BITS-1); 385 scale = fixMin(2*(scale-1), DFRACT_BITS-1);
|
psy_configuration.cpp | 272 *sfbCnt = fixMin(i,*sfbCnt); 273 sfbOffset[*sfbCnt] = fixMin(specStartOffset,granuleLength); 364 q_msk = fixMin(DFRACT_BITS-1,fixMax(-(DFRACT_BITS-1),q_msk)); 454 pbBval[i] = fixMin(cur_bark, MAX_BARC); 484 barcFactor = fDivNorm(fixMin(FDKaacEnc_BarcLineValue(numLines, sfbOffset[sfbActive], samplerate), MAX_BARC), 534 qsnr = fixMin(qtmp, 30);
|
bit_cnt.cpp | 467 t00 = fixMin(t0,16); 468 t01 = fixMin(t1,16); 534 maxVal = fixMin(maxVal,(INT)CODE_BOOK_ESC_LAV); 742 t00 = fixMin(t0,16); 743 t01 = fixMin(t1,16); 1070 t00 = fixMin(t0,16); 1071 t01 = fixMin(t1,16);
|
sf_estim.cpp | 425 FIXP_DBL sfbDistAllowedLdData = fixMin(sfbDistLdData-distFactorLdData,threshLdData); 503 scfMin = fixMin(*scfLast, *scfNext); 655 scfMin = fixMin(scfMin, scf[sfb]); 798 scfMin = fixMin(scfMin, scf[sfb]); 828 scfPrevNextMin = fixMin(scfPrev, scfNext); 836 scfLo = fixMin(scfAct, scfPrevNextMin); 851 sfbDistMax[sfb] = fixMin(sfbDistMax[sfb],qcOutChannel->sfbThresholdLdData[sfb]); [all...] |
psy_main.cpp | 677 minSpecShift = fixMin(minSpecShift, (pSfbMaxScaleSpec[ch]+w*maxSfb[ch])[sfb]); 707 finalShift = fixMin(minSpecShift, nrgShift); 722 scale = fixMin((scale-finalShift)<<1, DFRACT_BITS-1); [all...] |
pre_echo_control.cpp | 145 tmp = fixMin(tmp, tmpThreshold1);
|
/external/aac/libSBRenc/src/ |
tran_det.cpp | 140 accu1 = ((FL2FXCONST_DBL((1.0e6*NORM_QMF_ENERGY*8.0/32))) << fixMin(scaleEnergies[0],25))>>NRG_SCALE; /* complex init for compare with original version */ 141 accu2 = ((FL2FXCONST_DBL((1.0e6*NORM_QMF_ENERGY*8.0/32))) << fixMin(scaleEnergies[0],25))>>NRG_SCALE; /* can be simplified in dsp implementation */ 164 (FIXP_DBL)MAXVAL_DBL >> fixMin(scaleEnergies[0],(DFRACT_BITS-1)) ); 208 nrgTotal = ( (accu1 >> fixMin(scaleEnergies[0],(DFRACT_BITS-1))) 209 + (accu2 >> fixMin(scaleEnergies[1],(DFRACT_BITS-1))) ) << (2); 265 scale = fixMin(8,scaleEnergies[0]); /* scale energies down before add up */ 390 commonScale = fixMin(scaleEnergies[0],scaleEnergies[1]); 393 scaleFactor0 = fixMin((scaleEnergies[0]-commonScale), (DFRACT_BITS-1)); 394 scaleFactor1 = fixMin((scaleEnergies[1]-commonScale), (DFRACT_BITS-1)); 477 tmpScaleEnergies0 = fixMin(tmpScaleEnergies0, MAX_SHIFT_DBL) [all...] |
env_est.cpp | 135 scale = fixMin(scale, fixMin(getScalefactor(realValues[k], numberBands), getScalefactor(imagValues[k], numberBands))); 228 scale = fixMin(scale, fixMin(getScalefactor(realValues[k], numberBands), getScalefactor(imagValues[k], numberBands))); 468 sc0 = fixMin(scaleNrg0,Y_NRG_SCALE); sc1 = fixMin(scaleNrg1,Y_NRG_SCALE); 470 dynScale1 = fixMin((scaleNrg0-sc0),dynScale); 471 dynScale2 = fixMin((scaleNrg1-sc1),dynScale); 486 nrgSum += ( accu1 >> fixMin((scaleNrg0-sc0-dynScale1),(DFRACT_BITS-1)) ) 487 + ( accu2 >> fixMin((scaleNrg1-sc1-dynScale2),(DFRACT_BITS-1)) ) [all...] |
sbr_misc.cpp | 256 if ( denom > (tmp >> fixMin(shiftNum+shiftScale-1,(DFRACT_BITS-1))) ) { 259 shiftCommon = fixMin((shiftNum-shiftDenom+shiftScale-1),(DFRACT_BITS-1));
|
ton_corr.cpp | 205 autoCorrScaling = fixMin(getScalefactor(&realBuf[k-LPC_ORDER], LPC_ORDER+blockLength), getScalefactor(&imagBuf[k-LPC_ORDER], LPC_ORDER+blockLength)); 259 commonShift = fixMin(numShift - denomShift + RELAXATION_SHIFT, DFRACT_BITS-1); 263 commonShift = fixMin(commonShift,CountLeadingBits(tmp)); 296 nrgVector[timeIndex] += ((ac->r00r) >> fixMin(DFRACT_BITS-1,(2*qmfScale+autoCorrScaling + SCALE_NRGVEC))); 298 pNrgVectorFreq[r] = pNrgVectorFreq[r] + ((ac->r00r) >> fixMin(DFRACT_BITS-1,(2*qmfScale+autoCorrScaling + SCALE_NRGVEC))); [all...] |
code_env.cpp | 357 index = fixMin(*delta, codeBookScfLavBalance); 370 index = fixMin(*delta, codeBookScfLavLevel); 383 index = fixMin(*delta, codeBookScfLavLevel);
|
/external/aac/libSBRdec/src/ |
lpp_tran.cpp | 191 bwVector[i] = fixMin(accu<<1,FL2FXCONST_DBL(0.99609375f)); 301 comLowBandScale = fixMin(sbrScaleFactor->ov_lb_scale,sbrScaleFactor->lb_scale); 362 dynamicScale = fixMin(dynamicScale, getScalefactor(lowBandReal, LPC_ORDER+pSettings->overlap) + ovLowBandShift); 363 dynamicScale = fixMin(dynamicScale, getScalefactor(&lowBandReal[LPC_ORDER+pSettings->overlap], pSettings->nCols) + lowBandShift); 365 dynamicScale = fixMin(dynamicScale, getScalefactor(lowBandImag, LPC_ORDER+pSettings->overlap) + ovLowBandShift); 366 dynamicScale = fixMin(dynamicScale, getScalefactor(&lowBandImag[LPC_ORDER+pSettings->overlap], pSettings->nCols) + lowBandShift); 652 int descale = fixMin(DFRACT_BITS-1, (LPC_SCALE_FACTOR+dynamicScale)); 659 int descale = fixMin(DFRACT_BITS-1, (LPC_SCALE_FACTOR+dynamicScale)); 668 int descale = fixMin(DFRACT_BITS-1, (LPC_SCALE_FACTOR+dynamicScale)); 690 int descale = fixMin(DFRACT_BITS-1, (LPC_SCALE_FACTOR+dynamicScale)) [all...] |
sbr_dec.cpp | 402 reserve = fixMin(reserve,DFRACT_BITS-1-hSbrDec->sbrScaleFactor.lb_scale); [all...] |
env_calc.cpp | [all...] |
transcendent.h | 348 *mantissa = (shift>=0) ? result << (INT)fixMin(DFRACT_BITS-1,shift) 349 : result >> (INT)fixMin(DFRACT_BITS-1,-shift);
|
sbr_crc.cpp | 172 NrCrcBits = fixMin ((INT)NrBits, (INT)NrBitsAvailable);
|
/external/aac/libAACdec/src/ |
aacdec_tns.cpp | 246 s = fixMin(s,2); 387 start = fixMin( fixMin(filter->StartBand, tns_max_bands), 392 stop = fixMin( fixMin(filter->StopBand, tns_max_bands),
|
aacdec_pns.cpp | 312 shift = fixMin( shift, DFRACT_BITS-1 ); 317 shift = fixMin( -shift, DFRACT_BITS-1 );
|
aacdec_drc.cpp | 900 pDrcChData->bandTop[0] = fixMin(pDrcChData->bandTop[0], (aacFrameSize >> 2) - 1); 940 top = fixMin((int)( (pDrcChData->bandTop[band]+1)<<2 ), aacFrameSize); [all...] |