Home
last modified time | relevance | path

Searched refs:fixMin (Results 1 – 25 of 50) sorted by relevance

12

/external/aac/libSACdec/src/
Dsac_reshapeBBEnv.cpp369 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/
Dnoisedet.cpp197 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()
Dms_stereo.cpp176 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()
Dband_nrg.cpp128 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()
Dintensity.cpp293 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()
Dquantize.cpp147 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()
Dpsy_configuration.cpp256 *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()
Dsf_estim.cpp433 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()
Daacenc.cpp546 ? 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()
Dbit_cnt.cpp499 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()
Dadj_thr.cpp528 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 …]
Dpsy_main.cpp649 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/
Daacdec_tns.cpp332 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()
Daacdec_pns.cpp295 shift = fixMin(shift, DFRACT_BITS - 1); in ScaleBand()
300 shift = fixMin(-shift, DFRACT_BITS - 1); in ScaleBand()
/external/aac/libSBRdec/src/
Dlpp_tran.cpp205 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 …]
Dtranscendent.h366 *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()
Denv_calc.cpp1451 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/
Dsacenc_vectorfunctions.cpp144 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()
Dsacenc_dmx_tdom_enh.cpp351 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/
Denv_est.cpp262 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 …]
Dsbr_misc.cpp250 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()
Dtran_det.cpp357 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()
Dton_corr.cpp218 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()
Dcode_env.cpp348 index = fixMin(*delta, codeBookScfLavBalance); in computeBits()
360 index = fixMin(*delta, codeBookScfLavLevel); in computeBits()
372 index = fixMin(*delta, codeBookScfLavLevel); in computeBits()
Dps_main.cpp338 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()

12