/external/aac/libSACdec/src/ |
D | sac_reshapeBBEnv.cpp | 369 INT hybBands = fixMin(42, self->hybridBands); in extractBBEnv() 372 cplxBands = fixMin(42, self->hybridBands); in extractBBEnv() 409 fixMin(42, self->hybridBands)); /* scale slotNrg: in extractBBEnv() 419 scalePrev = fixMax(fixMin(partNrgSF - pPartNrgPrevSF[0], DFRACT_BITS - 1), in extractBBEnv() 422 fixMax(fixMin(partNrgSF - slotNrgSF + SF_ALPHA1, DFRACT_BITS - 1), in extractBBEnv() 475 scalePrev = fixMin(commonScale - pFrameNrgPrevSF[0], DFRACT_BITS - 1); in extractBBEnv() 476 scaleCur = fixMin(commonScale - frameNrgSF + SF_ALPHA1, DFRACT_BITS - 1); in extractBBEnv() 503 scale_min = fixMin(scale_min, sc); in extractBBEnv() 516 INT sc = fixMax(fixMin(resPbSF[pb] + scale_min, DFRACT_BITS - 1), in extractBBEnv() 530 scalePrev = fixMin(commonScale - pNormNrgPrevSF[0], DFRACT_BITS - 1); in extractBBEnv() [all …]
|
/external/aac/libAACenc/src/ |
D | noisedet.cpp | 197 minVal = fixMin(fhelp1, fhelp2); in FDKaacEnc_noiseDetect() 198 minVal = fixMin(minVal, fhelp3); in FDKaacEnc_noiseDetect() 199 minVal = fixMin(minVal, fhelp4); in FDKaacEnc_noiseDetect() 215 fuzzyTotal = fixMin(fuzzyTotal, fuzzy); in FDKaacEnc_noiseDetect() 229 fuzzyTotal = fixMin(fuzzyTotal, fuzzy); in FDKaacEnc_noiseDetect()
|
D | ms_stereo.cpp | 176 minThresholdLdData = fixMin(sfbThresholdLeftLdData[sfb + sfboffs], in FDKaacEnc_MsStereoProcessing() 214 minThreshold = fixMin(sfbThresholdLeft[sfb + sfboffs], in FDKaacEnc_MsStereoProcessing() 228 fixMin(sfbSpreadEnLeft[sfb + sfboffs], in FDKaacEnc_MsStereoProcessing() 267 minThreshold = fixMin(sfbThresholdLeft[sfb + sfboffs], in FDKaacEnc_MsStereoProcessing() 271 minThresholdLdData = fixMin(sfbThresholdLeftLdData[sfb + sfboffs], in FDKaacEnc_MsStereoProcessing() 283 fixMin(sfbSpreadEnLeft[sfb + sfboffs], in FDKaacEnc_MsStereoProcessing()
|
D | band_nrg.cpp | 128 sfbMaxScaleSpec[i] = fixMin((DFRACT_BITS - 2), j); in FDKaacEnc_CalcSfbMaxScaleSpec() 239 INT scale = fixMin((sfbMaxScaleSpec[i] - 4) << 1, (DFRACT_BITS - 1)); in FDKaacEnc_CalcBandEnergyOptimLong() 249 INT scale = fixMin(((sfbMaxScaleSpec[i] - 4) + shiftBits) << 1, in FDKaacEnc_CalcBandEnergyOptimLong() 285 scale = fixMax(fixMin(scale, (DFRACT_BITS - 1)), -(DFRACT_BITS - 1)); in FDKaacEnc_CalcBandEnergyOptimShort() 309 minScale = fixMin(sfbMaxScaleSpecLeft[i], sfbMaxScaleSpecRight[i]) - 4; in FDKaacEnc_CalcBandNrgMSOpt() 341 minScale = fixMin(sfbMaxScaleSpecLeft[i], sfbMaxScaleSpecRight[i]); in FDKaacEnc_CalcBandNrgMSOpt() 357 scale = fixMin(scale, (DFRACT_BITS - 1)); in FDKaacEnc_CalcBandNrgMSOpt()
|
D | intensity.cpp | 293 realScale[sfb + sfboffs] = fixMin( in FDKaacEnc_prepareIntensityDecision() 300 s = (fixMin(sL, sR) >> 2) << 2; in FDKaacEnc_prepareIntensityDecision() 341 invOverallLoudnessSF = fixMin( in FDKaacEnc_prepareIntensityDecision() 377 s = fixMin(sL, sR); in FDKaacEnc_prepareIntensityDecision() 416 sL = fixMin(sL, s); in FDKaacEnc_prepareIntensityDecision() 432 channelCorrSF = fixMin( in FDKaacEnc_prepareIntensityDecision() 712 s0 = fixMin(sL, sR); in FDKaacEnc_IntensityStereoProcessing() 727 s2 = fixMin(fixMax(s2, -(DFRACT_BITS - 1)), (DFRACT_BITS - 1)); in FDKaacEnc_IntensityStereoProcessing() 752 s0 = fixMin(sL, sR); in FDKaacEnc_IntensityStereoProcessing() 769 s2 = fixMin(fixMax(s2, -(DFRACT_BITS - 1)), (DFRACT_BITS - 1)); in FDKaacEnc_IntensityStereoProcessing()
|
D | quantize.cpp | 147 accu >>= fixMin(totalShift, DFRACT_BITS - 1); in FDKaacEnc_quantizeLines() 163 accu >>= fixMin(totalShift, DFRACT_BITS - 1); in FDKaacEnc_quantizeLines() 339 scale = fixMin(2 * (scale - 1), DFRACT_BITS - 1); in FDKaacEnc_calcSfbDist() 392 scale = fixMin(2 * (scale - 1), DFRACT_BITS - 1); in FDKaacEnc_calcSfbQuantEnergyAndDist()
|
D | psy_configuration.cpp | 256 *sfbCnt = fixMin(i, *sfbCnt); in FDKaacEnc_initSfbTable() 257 sfbOffset[*sfbCnt] = fixMin(specStartOffset, granuleLengthWindow); in FDKaacEnc_initSfbTable() 343 q_msk = fixMin(DFRACT_BITS - 1, fixMax(-(DFRACT_BITS - 1), q_msk)); in getMaskFactor() 417 pbBval[i] = fixMin(cur_bark, MAX_BARC); in FDKaacEnc_initBarcValues() 443 barcFactor = fDivNorm(fixMin(FDKaacEnc_BarcLineValue( in FDKaacEnc_initMinSnr() 499 qsnr = fixMin(qtmp, 30); in FDKaacEnc_initMinSnr()
|
D | sf_estim.cpp | 433 fixMin(sfbDistLdData - distFactorLdData, threshLdData); in FDKaacEnc_improveScf() 501 scfMin = fixMin(*scfLast, *scfNext); in FDKaacEnc_assimilateSingleScf() 526 fixMin(scfMin, fixMin(*scfLast, *scfNext)) + MAX_SCF_DELTA) && in FDKaacEnc_assimilateSingleScf() 650 scfMin = fixMin(scfMin, scf[sfb]); in FDKaacEnc_assimilateMultipleScf() 783 scfMin = fixMin(scfMin, scf[sfb]); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2() 812 scfPrevNextMin = fixMin(scfPrev, scfNext); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2() 820 scfLo = fixMin(scfAct, scfPrevNextMin); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2() 846 fixMin(sfbDistMax[sfb], qcOutChannel->sfbThresholdLdData[sfb]); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2() 1208 minSf = fixMin(minSf, scf[sfbOffs + sfb]); in FDKaacEnc_EstimateScaleFactorsChannel()
|
D | aacenc.cpp | 546 ? fixMin(qcInit.maxBits, config->maxBitsPerFrame) in FDKaacEnc_Initialize() 551 qcInit.minBits = fixMin(qcInit.minBits, averageBitsPerFrame & ~7); in FDKaacEnc_Initialize() 577 qcInit.maxBits = fixMin(MIN_BUFSIZE_PER_EFF_CHAN * cm->nChannelsEff, in FDKaacEnc_Initialize() 580 ? fixMin(qcInit.maxBits, config->maxBitsPerFrame) in FDKaacEnc_Initialize() 583 fixMin(MIN_BUFSIZE_PER_EFF_CHAN * cm->nChannelsEff, in FDKaacEnc_Initialize() 593 qcInit.minBits = fixMin( in FDKaacEnc_Initialize() 847 payloadBits = fixMin(extPayload[n].dataSize, payloadBits); in FDKaacEnc_EncodeFrame()
|
D | bit_cnt.cpp | 499 t00 = fixMin(t0, 16); in FDKaacEnc_countEsc() 500 t01 = fixMin(t1, 16); in FDKaacEnc_countEsc() 551 countFuncTable[fixMin(maxVal, (INT)CODE_BOOK_ESC_LAV)](values, width, in FDKaacEnc_bitCount() 706 bitCnt += (INT)FDKaacEnc_huff_ltab11[fixMin(t0, 16)][fixMin(t1, 16)]; in FDKaacEnc_countValues() 915 t00 = fixMin(t0, 16); in FDKaacEnc_codeValues() 916 t01 = fixMin(t1, 16); in FDKaacEnc_codeValues()
|
D | adj_thr.cpp | 528 minSnrRed = fixMin(minSnrLimitLD64, minSnrRed); in FDKaacEnc_adaptMinSnr() 600 qcOutChan->sfbMinSnrLdData[sfbGrp + sfb] = fixMin( in FDKaacEnc_initAvoidHoleFlag() 609 tmpMinSnrLdData = fixMin((FIXP_DBL)SnrLdFac, tmpMinSnrLdData); in FDKaacEnc_initAvoidHoleFlag() 611 fixMin(tmpMinSnrLdData, in FDKaacEnc_initAvoidHoleFlag() 653 qcOutChanM->sfbMinSnrLdData[sfbGrp + sfb] = fixMin( in FDKaacEnc_initAvoidHoleFlag() 666 qcOutChanS->sfbMinSnrLdData[sfbGrp + sfb] = fixMin( in FDKaacEnc_initAvoidHoleFlag() 864 fixMin(qcOutChannel[ch]->sfbEnFacLd[sfbGrp + sfb], (FIXP_DBL)0); in FDKaacEnc_calcWeighting() 1013 int minScale = fixMin(CountLeadingBits(sfbThrExp), in FDKaacEnc_reduceThresholdsCBR() 1176 *chaosMeasureOld = chaosMeasure = (fixMin( in FDKaacEnc_reduceThresholdsVBR() 1188 (fixMin((FIXP_DBL)(FL2FXCONST_DBL(1.0f) >> 2), in FDKaacEnc_reduceThresholdsVBR() [all …]
|
D | psy_main.cpp | 649 minSpecShift = fixMin(minSpecShift, in FDKaacEnc_psyMain() 679 finalShift = fixMin(minSpecShift, nrgShift); in FDKaacEnc_psyMain() 697 scale = fixMin((scale - finalShift) << 1, DFRACT_BITS - 1); in FDKaacEnc_psyMain() 946 fixMin(*(pSfbThreshold[ch] + w * maxSfb[ch] + i), clipEnergy); in FDKaacEnc_psyMain() 958 energyShift = fixMin(DFRACT_BITS - 1, energyShift); in FDKaacEnc_psyMain() 965 energyShift = fixMin(DFRACT_BITS - 1, -energyShift); in FDKaacEnc_psyMain() 1101 fixMax(fixMin(5, psyData[ch]->sfbActive), maxSfbPerGroup[ch]); in FDKaacEnc_psyMain()
|
/external/aac/libAACdec/src/ |
D | aacdec_tns.cpp | 332 start = fixMin(fixMin(filter->StartBand, tns_max_bands), nbands); in CTns_Apply() 337 stop = fixMin(filter->StopBand, nbands); in CTns_Apply() 339 stop = fixMin(fixMin(filter->StopBand, tns_max_bands), nbands); in CTns_Apply()
|
D | aacdec_pns.cpp | 295 shift = fixMin(shift, DFRACT_BITS - 1); in ScaleBand() 300 shift = fixMin(-shift, DFRACT_BITS - 1); in ScaleBand()
|
/external/aac/libSBRdec/src/ |
D | lpp_tran.cpp | 205 bwVector[i] = fixMin(accu << 1, FL2FXCONST_DBL(0.99609375f)); in inverseFilteringLevelEmphasis() 353 fixMin(sbrScaleFactor->ov_lb_scale, sbrScaleFactor->lb_scale); in lppTransposer() 430 fixMin(dynamicScale, in lppTransposer() 434 fixMin(dynamicScale, in lppTransposer() 440 fixMin(dynamicScale, in lppTransposer() 444 fixMin(dynamicScale, in lppTransposer() 748 fixMin(DFRACT_BITS - 1, (LPC_SCALE_FACTOR + dynamicScale)); in lppTransposer() 766 fixMin(DFRACT_BITS - 1, (LPC_SCALE_FACTOR + dynamicScale)); in lppTransposer() 775 fixMin(DFRACT_BITS - 1, (LPC_SCALE_FACTOR + dynamicScale)); in lppTransposer() 999 fixMin(dynamicScale, in lppTransposerHBE() [all …]
|
D | transcendent.h | 366 *mantissa = (shift >= 0) ? result << (INT)fixMin(DFRACT_BITS - 1, shift) in FDK_sqrt_MantExp() 367 : result >> (INT)fixMin(DFRACT_BITS - 1, -shift); in FDK_sqrt_MantExp()
|
D | env_calc.cpp | 1451 int shift = fixMin(DFRACT_BITS - 1, in calculateSbrEnvelope() 1457 fixMin(DFRACT_BITS - 1, in calculateSbrEnvelope() 1508 shift = fixMin(DFRACT_BITS - 1, shift); in calculateSbrEnvelope() 1518 shift = fixMin(DFRACT_BITS - 1, -shift); in calculateSbrEnvelope() 1853 diff = fixMin(-(reserve + diff), DFRACT_BITS - 1); in equalizeFiltBufferExp() 2275 nrgEst = (FL2FXCONST_DBL(0.5f) >> (INT)fixMin(b_e + 1, DFRACT_BITS - 1)) + in calcSubbandGain() 2280 nrgEst = (nrgEst >> (INT)(fixMin(-b_e + 1, DFRACT_BITS - 1))) + in calcSubbandGain() 2292 b = (FL2FXCONST_DBL(0.5f) >> (INT)fixMin(b_e + 1, DFRACT_BITS - 1)) + in calcSubbandGain() 2296 b = (tmpNoise >> (INT)(fixMin(-b_e + 1, DFRACT_BITS - 1))) + in calcSubbandGain() 2546 shift = (shift >= 0) ? fixMin(DFRACT_BITS - 1, shift) in adjustTimeSlotLC() [all …]
|
/external/aac/libSACenc/src/ |
D | sacenc_vectorfunctions.cpp | 144 cs = fixMax(fixMin(cs, DFRACT_BITS - 1), -(DFRACT_BITS - 1)); in sumUpCplxPow2() 194 cs = fixMax(fixMin(cs, DFRACT_BITS - 1), -(DFRACT_BITS - 1)); in sumUpCplxPow2Dim2() 246 sx = fixMax(fixMin(scaleX, DFRACT_BITS - 1), -(DFRACT_BITS - 1)); in cplx_cplxScalarProduct() 247 sy = fixMax(fixMin(scaleY, DFRACT_BITS - 1), -(DFRACT_BITS - 1)); in cplx_cplxScalarProduct() 336 s2 = fixMin(fixMax(0, CountLeadingBits(p12r[i]) - 1), in calcCoherenceVec() 339 s1 = fixMin(fixMax(0, CountLeadingBits(p1[i]) - 1), in calcCoherenceVec() 346 s = fixMax(fixMin((scaleP12 - scaleP + s + s1 - s2), DFRACT_BITS - 1), in calcCoherenceVec()
|
D | sacenc_dmx_tdom_enh.cpp | 351 const int granuleLength = fixMin(128, hEnhancedTimeDmx->framelength); in fdk_sacenc_apply_enhancedTimeDomainDmx() 374 fixMin(offset + granuleLength, hEnhancedTimeDmx->framelength) - in fdk_sacenc_apply_enhancedTimeDomainDmx() 379 fixMin(offset + granuleLength, hEnhancedTimeDmx->framelength) - in fdk_sacenc_apply_enhancedTimeDomainDmx() 385 smp < fixMin(offset + granuleLength, hEnhancedTimeDmx->framelength); in fdk_sacenc_apply_enhancedTimeDomainDmx()
|
/external/aac/libSBRenc/src/ |
D | env_est.cpp | 262 scale = fixMin(scale, fixMin(getScalefactor(realValues[k], numberBands), in FDKsbrEnc_getEnergyFromCplxQmfData() 363 scale = fixMin(scale, fixMin(getScalefactor(realValues[k], numberBands), in FDKsbrEnc_getEnergyFromCplxQmfDataFull() 625 sc0 = fixMin(scaleNrg0, Y_NRG_SCALE); in getEnvSfbEnergy() 626 sc1 = fixMin(scaleNrg1, Y_NRG_SCALE); in getEnvSfbEnergy() 628 dynScale1 = fixMin((scaleNrg0 - sc0), dynScale); in getEnvSfbEnergy() 629 dynScale2 = fixMin((scaleNrg1 - sc1), dynScale); in getEnvSfbEnergy() 645 (accu1 >> fixMin((scaleNrg0 - sc0 - dynScale1), (DFRACT_BITS - 1))) + in getEnvSfbEnergy() 646 (accu2 >> fixMin((scaleNrg1 - sc1 - dynScale2), (DFRACT_BITS - 1))); in getEnvSfbEnergy() 755 commonScale = fixMin(YBufferScaleLeft[0], YBufferScaleLeft[1]); in calculateSbrEnvelope() 758 commonScale = fixMin(commonScale, YBufferScaleRight[0]); in calculateSbrEnvelope() [all …]
|
D | sbr_misc.cpp | 250 if (denom > (tmp >> fixMin(shiftNum + shiftScale - 1, (DFRACT_BITS - 1)))) { in FDKsbrEnc_LSI_divide_scale_fract() 254 fixMin((shiftNum - shiftDenom + shiftScale - 1), (DFRACT_BITS - 1)); in FDKsbrEnc_LSI_divide_scale_fract()
|
D | tran_det.cpp | 357 scale[0] = fixMin(8, scaleEnergies[0]); in addHighbandEnergies() 358 scale[1] = fixMin(8, scaleEnergies[1]); in addHighbandEnergies() 486 commonScale = fixMin(scaleEnergies[0], scaleEnergies[1]); in calculateThresholds() 489 scaleFactor0 = fixMin((scaleEnergies[0] - commonScale), (DFRACT_BITS - 1)); in calculateThresholds() 490 scaleFactor1 = fixMin((scaleEnergies[1] - commonScale), (DFRACT_BITS - 1)); in calculateThresholds() 567 tmpScaleEnergies0 = fixMin(tmpScaleEnergies0, MAX_SHIFT_DBL); in extractTransientCandidates() 569 tmpScaleEnergies1 = fixMin(tmpScaleEnergies1, MAX_SHIFT_DBL); in extractTransientCandidates()
|
D | ton_corr.cpp | 218 autoCorrScaling = fixMin( in FDKsbrEnc_CalculateTonalityQuotas() 286 fixMin(numShift - denomShift + RELAXATION_SHIFT, DFRACT_BITS - 1); in FDKsbrEnc_CalculateTonalityQuotas() 290 commonShift = fixMin(commonShift, CountLeadingBits(tmp)); in FDKsbrEnc_CalculateTonalityQuotas() 323 fixMin(DFRACT_BITS - 1, in FDKsbrEnc_CalculateTonalityQuotas() 330 fixMin(DFRACT_BITS - 1, in FDKsbrEnc_CalculateTonalityQuotas()
|
D | code_env.cpp | 348 index = fixMin(*delta, codeBookScfLavBalance); in computeBits() 360 index = fixMin(*delta, codeBookScfLavLevel); in computeBits() 372 index = fixMin(*delta, codeBookScfLavLevel); in computeBits()
|
D | ps_main.cpp | 338 dynScale = fixMin(sc - dynQmfScale, DFRACT_BITS - 1); in DownmixPSQmfData() 602 *dmxScale = fixMin(DFRACT_BITS, CountLeadingBits(maxValue)); in psFindBestScaling() 604 *dmxScale = fixMax(0, fixMin(FRACT_BITS, CountLeadingBits((maxValue)))); in psFindBestScaling()
|