/external/aac/libSBRenc/src/ |
D | ps_main.cpp | 321 …int dynQmfScale = fixMax(0, hParametricStereo->dmxScale-1); /* scale one bit more for addition of … in DownmixPSQmfData() 339 …sc = fixMax(0,CntLeadingZeros( fixMax(fixMax(fixp_abs(tmpLeftReal),fixp_abs(tmpLeftImag)),fixMax(f… in DownmixPSQmfData() 578 tmp = fixMax(tmp, (FIXP_QMF)fixp_abs(hybridData[col][0][0][i])); in psFindBestScaling() 579 tmp = fixMax(tmp, (FIXP_QMF)fixp_abs(hybridData[col][0][1][i])); in psFindBestScaling() 580 tmp = fixMax(tmp, (FIXP_QMF)fixp_abs(hybridData[col][1][0][i])); in psFindBestScaling() 581 tmp = fixMax(tmp, (FIXP_QMF)fixp_abs(hybridData[col][1][1][i])); in psFindBestScaling() 589 tmp = fixMax(tmp, (FIXP_QMF)fixp_abs(hybridData[col][0][0][i])); in psFindBestScaling() 590 tmp = fixMax(tmp, (FIXP_QMF)fixp_abs(hybridData[col][0][1][i])); in psFindBestScaling() 591 tmp = fixMax(tmp, (FIXP_QMF)fixp_abs(hybridData[col][1][0][i])); in psFindBestScaling() 592 tmp = fixMax(tmp, (FIXP_QMF)fixp_abs(hybridData[col][1][1][i])); in psFindBestScaling() [all …]
|
D | nf_est.cpp | 198 meanOrig = fixMax(meanOrig,(accu<<1)); in qmfBasedNoiseFloorDetection() 205 meanSbr = fixMax(meanSbr,(accu<<1)); in qmfBasedNoiseFloorDetection() 235 meanOrig = fixMax(meanOrig,RELAXATION); in qmfBasedNoiseFloorDetection() 236 meanSbr = fixMax(meanSbr,RELAXATION); in qmfBasedNoiseFloorDetection() 249 diff = fixMax( RELAXATION, in qmfBasedNoiseFloorDetection()
|
D | env_est.cpp | 251 scale = fixMax(0,scale-1); in FDKsbrEnc_getEnergyFromCplxQmfData() 288 max_val = fixMax(max_val, energy); in FDKsbrEnc_getEnergyFromCplxQmfData() 344 scale = fixMax(0,scale-1); in FDKsbrEnc_getEnergyFromCplxQmfDataFull() 374 max_val = fixMax(max_val, energy); in FDKsbrEnc_getEnergyFromCplxQmfDataFull() 742 …stop_pos -= fixMax(2, timeStep); /* consider at least 2 QMF slots less for short envelopes (envel… in calculateSbrEnvelope() 819 nrgLeft = fixMax(nrgLeft, tmpNrg); in calculateSbrEnvelope() 841 nrgRight = fixMax(nrgRight, tmpNrg); in calculateSbrEnvelope() 925 nrgLeft = fixMin(fixMax(nrgLeft,FL2FXCONST_DBL(0.0f)),(FL2FXCONST_DBL(0.5f)>>oneBitLess)); in calculateSbrEnvelope() 933 nrgLeft2 = fixMax((FIXP_DBL)0x1, nrgLeft2); in calculateSbrEnvelope() 934 nrgRight = fixMax((FIXP_DBL)0x1, nrgRight); in calculateSbrEnvelope() [all …]
|
D | ps_encode.cpp | 480 …if(fixMax(((errIIDFine>>1)+(minThreshold>>1))>>1, fMult(quantErrorThreshold,errIIDFine)) < (errIID… in processIidData() 483 …else if(fixMax(((errIID>>1)+(minThreshold>>1))>>1, fMult(quantErrorThreshold,errIID)) < (errIIDFin… in processIidData() 655 IID = fixMax( IID, (FIXP_DBL)(MINVAL_DBL>>(LD_DATA_SHIFT+1)) ); in calculateIID() 701 sc1 = CountLeadingBits( fixMax(fixp_abs(pwrCr[env][i]),fixp_abs(pwrCi[env][i])) ) ; in calculateICC() 748 … : (fixMax(hPsEncode->iidGroupWidthLd[group],hPsEncode->psBandNrgScale[bin]) + 1) ; in FDKsbrEnc_initPsBandNrgScale() 911 pwrData->pwrL[env][bin] = fixMax((FIXP_DBL)0,pwrL_env_bin); in FDKsbrEnc_PSEncode() 912 pwrData->pwrR[env][bin] = fixMax((FIXP_DBL)0,pwrR_env_bin); in FDKsbrEnc_PSEncode()
|
D | code_env.cpp | 355 index = fixMax(*delta, -codeBookScfLavBalance); in computeBits() 368 index = fixMax(*delta, -codeBookScfLavLevel); in computeBits() 381 index = fixMax(*delta, -codeBookScfLavLevel); in computeBits()
|
D | sbr_encoder.cpp | 1533 for (i=0; i<fixMax(nChannels,(supportPS)?2:0); i++) { in sbrEncoder_Open() 1695 …hSbrElement->sbrBitstreamData.NrSendHeaderData = fixMax(hSbrElement->sbrBitstreamData.NrSendHeader… in FDKsbrEnc_EnvInit() 1699 …hSbrElement->sbrBitstreamData.NrSendHeaderData = fixMin(fixMax(headerPeriod,1),(hSbrElement->sbrCo… in FDKsbrEnc_EnvInit() 2129 highestSbrStartFreq = fixMax(highestSbrStartFreq, sbrConfig[el].startFreq); in sbrEncoder_Init() 2130 highestSbrStopFreq = fixMax(highestSbrStopFreq, sbrConfig[el].stopFreq); in sbrEncoder_Init() 2284 *inputBufferOffset = fixMax(sbrOffset, downsampledOffset); in sbrEncoder_Init()
|
/external/aac/libAACenc/src/ |
D | band_nrg.cpp | 113 maxSpc = fixMax(maxSpc, tmp); in FDKaacEnc_CalcSfbMaxScaleSpec() 141 scale = fixMax(0, sfbMaxScaleSpec[i]-4); in FDKaacEnc_CheckBandEnergyOptim() 162 scale = fixMax(0,sfbMaxScaleSpec[nr]-4); in FDKaacEnc_CheckBandEnergyOptim() 163 scale = fixMax(2*(minSpecShift-scale),-(DFRACT_BITS-1)); in FDKaacEnc_CheckBandEnergyOptim() 216 maxNrgLd = fixMax(maxNrgLd, bandEnergyLdData[i]); in FDKaacEnc_CalcBandEnergyOptimLong() 276 scale = fixMax(fixMin(scale,(DFRACT_BITS-1)),-(DFRACT_BITS-1)); in FDKaacEnc_CalcBandEnergyOptimShort() 307 minScale = fixMax(0, minScale); in FDKaacEnc_CalcBandNrgMSOpt() 340 INT scale = fixMax(0, 2*(minScale-4)); in FDKaacEnc_CalcBandNrgMSOpt()
|
D | noisedet.cpp | 171 …INT leadingBits = fixMax(0,(sfbMaxScaleSpec[sfb] - 3)); /* max sfbWidth = 96/4 ; 2^5=32 =>… in FDKaacEnc_noiseDetect() 185 maxVal = fixMax(fhelp1, fhelp2); in FDKaacEnc_noiseDetect() 186 maxVal = fixMax(maxVal, fhelp3); in FDKaacEnc_noiseDetect() 187 maxVal = fixMax(maxVal, fhelp4); in FDKaacEnc_noiseDetect()
|
D | intensity.cpp | 185 maxSpc = fixMax(maxSpc, tmp); in calcSfbMaxScale() 284 …boffs] = fixMin(FL2FXCONST_DBL(60.f/(1<<(REAL_SCALE_SF+LD_DATA_SHIFT))), fixMax(FL2FXCONST_DBL(-60… in FDKaacEnc_prepareIntensityDecision() 286 sL = fixMax(0,(CntLeadingZeros(sfbEnergyLeft[sfb + sfboffs])-1)); in FDKaacEnc_prepareIntensityDecision() 287 sR = fixMax(0,(CntLeadingZeros(sfbEnergyRight[sfb + sfboffs])-1)); in FDKaacEnc_prepareIntensityDecision() 317 invOverallLoudnessSF = fixMin(fixMax(invOverallLoudnessSF,-(DFRACT_BITS-1)),DFRACT_BITS-1); in FDKaacEnc_prepareIntensityDecision() 370 sL = fixMax(0,(CntLeadingZeros(square_l)-1)); in FDKaacEnc_prepareIntensityDecision() 371 sR = fixMax(0,(CntLeadingZeros(square_r)-1)); in FDKaacEnc_prepareIntensityDecision() 388 … channelCorrSF = fixMin(fixMax(( channelCorrSF + ((sL+sR)>>1)),-(DFRACT_BITS-1)),DFRACT_BITS-1); in FDKaacEnc_prepareIntensityDecision() 690 s2 = fixMin(fixMax(s2,-(DFRACT_BITS-1)),(DFRACT_BITS-1)); in FDKaacEnc_IntensityStereoProcessing() 724 s2 = fixMin(fixMax(s2,-(DFRACT_BITS-1)),(DFRACT_BITS-1)); in FDKaacEnc_IntensityStereoProcessing()
|
D | spreading.cpp | 104 delay = fixMax(pbSpreadEnergy[i], fMult(maskHighFactor[i], delay)); in FDKaacEnc_SpreadingMax() 111 delay = fixMax(pbSpreadEnergy[i], fMult(maskLowFactor[i],delay)); in FDKaacEnc_SpreadingMax()
|
D | ms_stereo.cpp | 159 tmp = fixMax(sfbEnergyLeftLdData[sfb+sfboffs], sfbThresholdLeftLdData[sfb+sfboffs]); in FDKaacEnc_MsStereoProcessing() 162 tmp = fixMax(sfbEnergyRightLdData[sfb+sfboffs], sfbThresholdRightLdData[sfb+sfboffs]); in FDKaacEnc_MsStereoProcessing() 167 tmp = fixMax(sfbEnergyMidLdData[sfb+sfboffs], minThresholdLdData); in FDKaacEnc_MsStereoProcessing() 169 tmp = fixMax(sfbEnergySideLdData[sfb+sfboffs], minThresholdLdData); in FDKaacEnc_MsStereoProcessing()
|
D | pre_echo_control.cpp | 146 pbThreshold[i] = fixMax(tmp, tmpThreshold2); in FDKaacEnc_PreEchoControl() 165 pbThreshold[i] = fixMax(pbThreshold[i], tmpThreshold2); in FDKaacEnc_PreEchoControl()
|
D | adj_thr.cpp | 442 minSnrRed = fixMax(minSnrRed, msaParam->maxRed); /* scaled by 1.0f/64.0f*/ in FDKaacEnc_adaptMinSnr() 514 …tmpMinSnrLdData = fixMax( SnrLdFac + (FIXP_DBL)(avgEnLdData - sfbEnLdData), (FIXP_DBL)SnrLdMin1 ) ; in FDKaacEnc_initAvoidHoleFlag() 516 …tmpMinSnrLdData = fixMax( SnrLdFac + (FIXP_DBL)(avgEnLdData - sfbEnLdData), (FIXP_DBL)SnrLdMin3 ) ; in FDKaacEnc_initAvoidHoleFlag() 542 …FIXP_DBL maxSfbEnLd = fixMax(qcOutChanM->sfbEnergyLdData[sfbGrp+sfb],qcOutChanS->sfbEnergyLdData[s… in FDKaacEnc_initAvoidHoleFlag() 555 …qcOutChanM->sfbMinSnrLdData[sfbGrp+sfb] = fixMax(qcOutChanM->sfbMinSnrLdData[sfbGrp+sfb],sfbMinSnr… in FDKaacEnc_initAvoidHoleFlag() 565 …qcOutChanS->sfbMinSnrLdData[sfbGrp+sfb] = fixMax(qcOutChanS->sfbMinSnrLdData[sfbGrp+sfb],sfbMinSnr… in FDKaacEnc_initAvoidHoleFlag() 909 …sfbThrReducedLdData = fixMax((qcOutChan->sfbMinSnrLdData[sfbGrp+sfb] + sfbEnLdData), sfbThrLdData); in FDKaacEnc_reduceThresholdsCBR() 917 …sfbThrReducedLdData = fixMax(sfbThrReducedLdData, (sfbEnLdData - FL2FXCONST_DBL(9.6336206/LD_DATA_… in FDKaacEnc_reduceThresholdsCBR() 1048 …chaosMeasure = (fixMin((FIXP_DBL)(FL2FXCONST_DBL(1.0f)>>2), fixMax((FIXP_DBL)(FL2FXCONST_DBL(0.1f)… in FDKaacEnc_reduceThresholdsVBR() 1136 …sfbThrReducedLdData = fixMax((qcOutChan->sfbMinSnrLdData[sfbGrp+sfb] + sfbEnLdData), sfbThrLdData); in FDKaacEnc_reduceThresholdsVBR() [all …]
|
D | metadata_compressor.cpp | 372 int resultScale = fixMax(q1-headroom1, (*pQ2)-headroom2); in fixpAdd() 886 peak[0] = fixMax(peak[0], FX_PCM2FX_DBL(maxSample)>>DOWNMIX_SHIFT); in FDK_DRC_Generator_Calc() 902 peak[0] = fixMax(peak[0], fixp_abs(tmp)); in FDK_DRC_Generator_Calc() 915 peak[0] = fixMax(peak[0], fixp_abs(tmp)); in FDK_DRC_Generator_Calc() 929 peak[0] = fixMax(peak[0], fixp_abs(tmp)); in FDK_DRC_Generator_Calc() 940 peak[0] = fixMax(peak[0], fixp_abs(tmp)); in FDK_DRC_Generator_Calc() 943 peak[1] = fixMax(peak[0], peak[1]); in FDK_DRC_Generator_Calc() 959 peak[1] = fixMax(peak[1], fixp_abs(tmp)); in FDK_DRC_Generator_Calc() 966 peak[i] = fixMax(peak[i], tmp); in FDK_DRC_Generator_Calc()
|
D | sf_estim.cpp | 510 scfMax = fixMax(*scfLast, *scfNext); in FDKaacEnc_assimilateSingleScf() 529 scfMin = fixMax(scfMin, minScf[sfbAct]); in FDKaacEnc_assimilateSingleScf() 664 scfMax = fixMax(scfMax, scf[sfb]); in FDKaacEnc_assimilateMultipleScf() 809 scfMax = fixMax(scfMax, scf[sfb]); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2() 837 scfPrevNextMax = fixMax(scfPrev, scfNext); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2() 842 scfHi = fixMax(scfPrevNextMax, scfAct); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2() 860 …sfbDistMax[sfb] = fixMax(sfbDistMax[sfb],qcOutChannel->sfbEnergyLdData[sfb]-FL2FXCONST_DBL(0.15571… in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2() 1166 scfInt = fixMax(scfInt, minSfMaxQuant[sfbOffs+sfb]); in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel() 1265 maxSf = fixMax(maxSf,scf[sfbOffs+sfb]); in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
|
D | psy_main.cpp | 696 maxNrg = fixMax(maxNrg, currNrg); in FDKaacEnc_psyMain() 723 INT scale = fixMax(0, (pSfbMaxScaleSpec[ch]+w*maxSfb[ch])[sfb]-4); in FDKaacEnc_psyMain() 902 …tnsSpecShift = fixMax(tnsSpecShift, nrgScaling[ch]); /* nrgScaling is set only if nrg would … in FDKaacEnc_psyMain() 974 … *(pSfbThreshold[ch]+w*maxSfb[ch]+i) = fixMax(*(pSfbThreshold[ch]+w*maxSfb[ch]+i) >> THR_SHIFTBITS, in FDKaacEnc_psyMain() 980 … *(pSfbThreshold[ch]+w*maxSfb[ch]+i) = fixMax(*(pSfbThreshold[ch]+w*maxSfb[ch]+i) >> THR_SHIFTBITS, in FDKaacEnc_psyMain() 1088 … fixMax(psyOutChannel[ch]->sfbThresholdLdData[sfbGrp+sfb], FL2FXCONST_DBL(-0.515625f)); in FDKaacEnc_psyMain() 1110 maxSfbPerGroup[ch] = fixMax(fixMin(5,psyData[ch]->sfbActive),maxSfbPerGroup[ch]); in FDKaacEnc_psyMain() 1126 … fixMax(psyOutChannel[ch]->sfbThresholdLdData[i], FL2FXCONST_DBL(-0.515625f)); in FDKaacEnc_psyMain() 1176 fixMax(maxSfbPerGroup[0], maxSfbPerGroup[1]); in FDKaacEnc_psyMain()
|
D | qc_main.cpp | 1206 …if ( (bitsToSave = fixMax((qcOutElement->dynBitsUsed + 8) - (elBits->bitResLevelEl + qcOutElement-… in FDKaacEnc_reduceBitConsumption() 1266 … qcOut[0]->totFillBits += ( fixMax(0, qcKernel->minBitsPerFrame - qcOut[0]->totalBits) + 7) & ~7; in FDKaacEnc_updateFillBits() 1275 qcOut[0]->totFillBits = fixMax((deltaBitRes&7), (deltaBitRes - (fixMax(0,bitResSpace-7)&~7))); in FDKaacEnc_updateFillBits() 1277 … qcOut[0]->totFillBits += ( fixMax(0, qcKernel->minBitsPerFrame - qcOut[0]->totalBits) + 7) & ~7; in FDKaacEnc_updateFillBits() 1313 maxThisSfb = fixMax(tmp, maxThisSfb); in FDKaacEnc_calcMaxValueInSfb() 1317 maxValueAll = fixMax(maxThisSfb, maxValueAll); in FDKaacEnc_calcMaxValueInSfb()
|
D | aacenc.cpp | 604 qcInit.maxBits = fixMax(qcInit.maxBits, (averageBitsPerFrame+7)&~7); in FDKaacEnc_Initialize() 617 …qcInit.maxBits = fixMin(MIN_BUFSIZE_PER_EFF_CHAN*cm->nChannelsEff, fixMax(qcInit.maxBits, … in FDKaacEnc_Initialize() 619 …qcInit.minBits = fixMax(0, ((averageBitsPerFrame-1)&~7)-qcInit.bitRes-transportEnc_GetStat… in FDKaacEnc_Initialize() 620 …qcInit.minBits = (config->minBitsPerFrame!=-1) ? fixMax(qcInit.minBits, config->minBitsPer… in FDKaacEnc_Initialize()
|
D | tonality.cpp | 173 …INT shiftBits = fixMax(0,sfbMaxScaleSpec[i] - 4); /* max sfbWidth = 96 ; 2^7=128 => 7/2 = 4 (spc*… in FDKaacEnc_CalcSfbTonality()
|
D | psy_configuration.cpp | 364 q_msk = fixMin(DFRACT_BITS-1,fixMax(-(DFRACT_BITS-1),q_msk)); in getMaskFactor() 550 snr = fixMax(one_qsnr, snr); in FDKaacEnc_initMinSnr()
|
/external/aac/libAACdec/src/ |
D | aacdec_tns.cpp | 238 maxVal = fixMax(maxVal,fixp_abs(spec[i])); in CTns_Filter() 242 s = fixMax(CntLeadingZeros(maxVal)-6,0); in CTns_Filter() 244 s = fixMax(CntLeadingZeros(maxVal)-5,0); in CTns_Filter()
|
/external/aac/libFDK/src/mips/ |
D | scale.cpp | 115 return fixMax((INT)0,(CntLeadingZeros(maxVal) - 1)); in getScalefactor()
|
/external/aac/libSBRdec/src/ |
D | sbr_dec.cpp | 446 reserve = fixMax(0,CntLeadingZeros(maxVal)-1) ; in sbr_dec() 969 size = fixMax(0,stopBand-startBand); in resetSbrDec() 987 stopBand = fixMax(old_lsb,new_lsb); in resetSbrDec() 988 size = fixMax(0,stopBand-startBand); in resetSbrDec() 1003 stopBand = fixMax(old_lsb,new_lsb); in resetSbrDec()
|
D | psdec.cpp | 424 scale = fixMax((INT)scale,(INT)-(DFRACT_BITS-1)); in scalePsStatesBuffer() 502 …maxScal = fixMax(scaleFactorHighBands,fixMax(scaleFactorLowBandSplitLow, scaleFactorLowBandSplitHi… in scalFilterBankValues() 506 maxScal = fixMax(maxScal,(INT)(h_ps_d->specificTo.mpeg.scaleFactorPsDelayBuffer-headroom)); in scalFilterBankValues() 691 nrg = fixMax(nrg,FL2FXCONST_DBL(0.f)); in deCorrelateSlotBased() 707 INT scale_left = fixMax(0, CntLeadingZeros(peakDiff) - 1); in deCorrelateSlotBased()
|
D | lpp_tran.cpp | 325 start = fixMax(1, pSettings->lbStartPatching - 2); in lppTransposer() 379 dynamicScale = fixMax(0, dynamicScale-1); /* one additional bit headroom to prevent -1.0 */ in lppTransposer() 970 …pSettings->lbStopPatching = fixMax( pSettings->lbStopPatching, patchParam[patch].sourceStopBand ); in resetLppTransposer()
|