Home
last modified time | relevance | path

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

12

/external/aac/libAACenc/src/
Dnoisedet.cpp190 minVal = fixMin(fhelp1, fhelp2); in FDKaacEnc_noiseDetect()
191 minVal = fixMin(minVal, fhelp3); in FDKaacEnc_noiseDetect()
192 minVal = fixMin(minVal, fhelp4); in FDKaacEnc_noiseDetect()
207 fuzzyTotal = fixMin(fuzzyTotal, fuzzy); in FDKaacEnc_noiseDetect()
221 fuzzyTotal = fixMin(fuzzyTotal, fuzzy); in FDKaacEnc_noiseDetect()
Dms_stereo.cpp153 …minThresholdLdData = fixMin(sfbThresholdLeftLdData[sfb+sfboffs], sfbThresholdRightLdData[sfb+sfbof… in FDKaacEnc_MsStereoProcessing()
184 minThreshold = fixMin(sfbThresholdLeft[sfb+sfboffs], sfbThresholdRight[sfb+sfboffs]); in FDKaacEnc_MsStereoProcessing()
193 fixMin( sfbSpreadEnLeft[sfb+sfboffs], in FDKaacEnc_MsStereoProcessing()
230 minThreshold = fixMin(sfbThresholdLeft[sfb+sfboffs], sfbThresholdRight[sfb+sfboffs]); in FDKaacEnc_MsStereoProcessing()
232 …minThresholdLdData = fixMin(sfbThresholdLeftLdData[sfb+sfboffs], sfbThresholdRightLdData[sfb+sfbof… in FDKaacEnc_MsStereoProcessing()
240 fixMin( sfbSpreadEnLeft[sfb+sfboffs], in FDKaacEnc_MsStereoProcessing()
Dband_nrg.cpp223 INT scale = fixMin((sfbMaxScaleSpec[i]-4)<<1,(DFRACT_BITS-1)); in FDKaacEnc_CalcBandEnergyOptimLong()
237 INT scale = fixMin( ((sfbMaxScaleSpec[i]-4)+shiftBits)<<1, (DFRACT_BITS-1)); in FDKaacEnc_CalcBandEnergyOptimLong()
276 scale = fixMax(fixMin(scale,(DFRACT_BITS-1)),-(DFRACT_BITS-1)); in FDKaacEnc_CalcBandEnergyOptimShort()
306 minScale = fixMin(sfbMaxScaleSpecLeft[i], sfbMaxScaleSpecRight[i])-4; in FDKaacEnc_CalcBandNrgMSOpt()
339 INT minScale = fixMin(sfbMaxScaleSpecLeft[i], sfbMaxScaleSpecRight[i]); in FDKaacEnc_CalcBandNrgMSOpt()
355 scale = fixMin(scale, (DFRACT_BITS-1)); in FDKaacEnc_CalcBandNrgMSOpt()
Dintensity.cpp284 …realScale[sfb + sfboffs] = fixMin(FL2FXCONST_DBL(60.f/(1<<(REAL_SCALE_SF+LD_DATA_SHIFT))), fixMax(… in FDKaacEnc_prepareIntensityDecision()
288 s = (fixMin(sL,sR)>>2)<<2; in FDKaacEnc_prepareIntensityDecision()
317 invOverallLoudnessSF = fixMin(fixMax(invOverallLoudnessSF,-(DFRACT_BITS-1)),DFRACT_BITS-1); in FDKaacEnc_prepareIntensityDecision()
345 s = fixMin(sL,sR); in FDKaacEnc_prepareIntensityDecision()
373 sL = fixMin(sL,s); in FDKaacEnc_prepareIntensityDecision()
388 … channelCorrSF = fixMin(fixMax(( channelCorrSF + ((sL+sR)>>1)),-(DFRACT_BITS-1)),DFRACT_BITS-1); in FDKaacEnc_prepareIntensityDecision()
677 s0 = fixMin(sL,sR); in FDKaacEnc_IntensityStereoProcessing()
690 s2 = fixMin(fixMax(s2,-(DFRACT_BITS-1)),(DFRACT_BITS-1)); in FDKaacEnc_IntensityStereoProcessing()
711 s0 = fixMin(sL,sR); in FDKaacEnc_IntensityStereoProcessing()
724 s2 = fixMin(fixMax(s2,-(DFRACT_BITS-1)),(DFRACT_BITS-1)); in FDKaacEnc_IntensityStereoProcessing()
Dquantize.cpp136 accu >>= fixMin(totalShift,DFRACT_BITS-1); in FDKaacEnc_quantizeLines()
149 accu >>= fixMin(totalShift,DFRACT_BITS-1); in FDKaacEnc_quantizeLines()
338 scale = fixMin(2*(scale-1), DFRACT_BITS-1); in FDKaacEnc_calcSfbDist()
395 scale = fixMin(2*(scale-1), DFRACT_BITS-1); in FDKaacEnc_calcSfbQuantEnergyAndDist()
Dpsy_configuration.cpp272 *sfbCnt = fixMin(i,*sfbCnt); in FDKaacEnc_initSfbTable()
273 sfbOffset[*sfbCnt] = fixMin(specStartOffset,granuleLength); in FDKaacEnc_initSfbTable()
364 q_msk = fixMin(DFRACT_BITS-1,fixMax(-(DFRACT_BITS-1),q_msk)); in getMaskFactor()
454 pbBval[i] = fixMin(cur_bark, MAX_BARC); in FDKaacEnc_initBarcValues()
484 …barcFactor = fDivNorm(fixMin(FDKaacEnc_BarcLineValue(numLines, sfbOffset[sfbActive], samplerate), … in FDKaacEnc_initMinSnr()
534 qsnr = fixMin(qtmp, 30); in FDKaacEnc_initMinSnr()
Dadj_thr.cpp444 …qcOutChannel[ch]->sfbMinSnrLdData[sfbGrp+sfb] = fixMin(minSnrLimitLD64, qcOutChannel[ch]->sfbMinSn… in FDKaacEnc_adaptMinSnr()
519 fixMin(qcOutChan->sfbMinSnrLdData[sfbGrp+sfb], tmpMinSnrLdData); in FDKaacEnc_initAvoidHoleFlag()
524 tmpMinSnrLdData = fixMin((FIXP_DBL)SnrLdFac, tmpMinSnrLdData); in FDKaacEnc_initAvoidHoleFlag()
525 qcOutChan->sfbMinSnrLdData[sfbGrp+sfb] = fixMin(tmpMinSnrLdData, in FDKaacEnc_initAvoidHoleFlag()
558 …qcOutChanM->sfbMinSnrLdData[sfbGrp+sfb] = fixMin(qcOutChanM->sfbMinSnrLdData[sfbGrp+sfb], (FIXP_DB… in FDKaacEnc_initAvoidHoleFlag()
568 …qcOutChanS->sfbMinSnrLdData[sfbGrp+sfb] = fixMin(qcOutChanS->sfbMinSnrLdData[sfbGrp+sfb],(FIXP_DBL… in FDKaacEnc_initAvoidHoleFlag()
738 …qcOutChannel[ch]->sfbEnFacLd[sfbGrp+sfb] = fixMin(qcOutChannel[ch]->sfbEnFacLd[sfbGrp+sfb],(FIXP_D… in FDKaacEnc_calcWeighting()
897 …int minScale = fixMin(CountLeadingBits(sfbThrExp), CountLeadingBits(redVal) - (DFRACT_BITS-1-redVa… in FDKaacEnc_reduceThresholdsCBR()
1040 …*chaosMeasureOld = chaosMeasure = (fixMin(chaosMeasure, chaosMeasureAvg)); /* use min-value, safe… in FDKaacEnc_reduceThresholdsVBR()
1048 …chaosMeasure = (fixMin((FIXP_DBL)(FL2FXCONST_DBL(1.0f)>>2), fixMax((FIXP_DBL)(FL2FXCONST_DBL(0.1f)… in FDKaacEnc_reduceThresholdsVBR()
[all …]
Daacenc.cpp603 …qcInit.maxBits = (config->maxBitsPerFrame!=-1) ? fixMin(qcInit.maxBits, config->maxBitsPer… in FDKaacEnc_Initialize()
606 qcInit.minBits = fixMin(qcInit.minBits, averageBitsPerFrame&~7); in FDKaacEnc_Initialize()
615 …qcInit.maxBits = fixMin(MIN_BUFSIZE_PER_EFF_CHAN*cm->nChannelsEff, ((averageBitsPerFrame+7… in FDKaacEnc_Initialize()
616 …qcInit.maxBits = (config->maxBitsPerFrame!=-1) ? fixMin(qcInit.maxBits, config->maxBitsPer… in FDKaacEnc_Initialize()
617 …qcInit.maxBits = fixMin(MIN_BUFSIZE_PER_EFF_CHAN*cm->nChannelsEff, fixMax(qcInit.maxBits, … in FDKaacEnc_Initialize()
621 …qcInit.minBits = fixMin(qcInit.minBits, (averageBitsPerFrame - transportEnc_GetStaticBits(… in FDKaacEnc_Initialize()
848 payloadBits = fixMin( extPayload[n].dataSize, payloadBits ); in FDKaacEnc_EncodeFrame()
Dbit_cnt.cpp467 t00 = fixMin(t0,16); in FDKaacEnc_countEsc()
468 t01 = fixMin(t1,16); in FDKaacEnc_countEsc()
534 maxVal = fixMin(maxVal,(INT)CODE_BOOK_ESC_LAV); in FDKaacEnc_bitCount()
742 t00 = fixMin(t0,16); in FDKaacEnc_countValues()
743 t01 = fixMin(t1,16); in FDKaacEnc_countValues()
1070 t00 = fixMin(t0,16); in FDKaacEnc_codeValues()
1071 t01 = fixMin(t1,16); in FDKaacEnc_codeValues()
Dsf_estim.cpp429 FIXP_DBL sfbDistAllowedLdData = fixMin(sfbDistLdData-distFactorLdData,threshLdData); in FDKaacEnc_improveScf()
509 scfMin = fixMin(*scfLast, *scfNext); in FDKaacEnc_assimilateSingleScf()
663 scfMin = fixMin(scfMin, scf[sfb]); in FDKaacEnc_assimilateMultipleScf()
808 scfMin = fixMin(scfMin, scf[sfb]); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
838 scfPrevNextMin = fixMin(scfPrev, scfNext); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
846 scfLo = fixMin(scfAct, scfPrevNextMin); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
861 sfbDistMax[sfb] = fixMin(sfbDistMax[sfb],qcOutChannel->sfbThresholdLdData[sfb]); in FDKaacEnc_FDKaacEnc_assimilateMultipleScf2()
1238 minSf = fixMin(minSf,scf[sfbOffs+sfb]); in FDKaacEnc_FDKaacEnc_EstimateScaleFactorsChannel()
Dpre_echo_control.cpp145 tmp = fixMin(tmp, tmpThreshold1); in FDKaacEnc_PreEchoControl()
Dpsy_main.cpp679 minSpecShift = fixMin(minSpecShift, (pSfbMaxScaleSpec[ch]+w*maxSfb[ch])[sfb]); in FDKaacEnc_psyMain()
709 finalShift = fixMin(minSpecShift, nrgShift); in FDKaacEnc_psyMain()
724 scale = fixMin((scale-finalShift)<<1, DFRACT_BITS-1); in FDKaacEnc_psyMain()
959 … *(pSfbThreshold[ch]+w*maxSfb[ch]+i) = fixMin(*(pSfbThreshold[ch]+w*maxSfb[ch]+i), clipEnergy); in FDKaacEnc_psyMain()
972 energyShift = fixMin(DFRACT_BITS-1,energyShift); in FDKaacEnc_psyMain()
978 energyShift = fixMin(DFRACT_BITS-1,-energyShift); in FDKaacEnc_psyMain()
1110 maxSfbPerGroup[ch] = fixMax(fixMin(5,psyData[ch]->sfbActive),maxSfbPerGroup[ch]); in FDKaacEnc_psyMain()
/external/aac/libSBRdec/src/
Dlpp_tran.cpp191 bwVector[i] = fixMin(accu<<1,FL2FXCONST_DBL(0.99609375f)); in inverseFilteringLevelEmphasis()
301 comLowBandScale = fixMin(sbrScaleFactor->ov_lb_scale,sbrScaleFactor->lb_scale); in lppTransposer()
362 …dynamicScale = fixMin(dynamicScale, getScalefactor(lowBandReal, LPC_ORDER+pSettings->overlap) + ov… in lppTransposer()
363 …dynamicScale = fixMin(dynamicScale, getScalefactor(&lowBandReal[LPC_ORDER+pSettings->overlap], pSe… in lppTransposer()
365 …dynamicScale = fixMin(dynamicScale, getScalefactor(lowBandImag, LPC_ORDER+pSettings->overlap) + ov… in lppTransposer()
366 …dynamicScale = fixMin(dynamicScale, getScalefactor(&lowBandImag[LPC_ORDER+pSettings->overlap], pSe… in lppTransposer()
652 int descale = fixMin(DFRACT_BITS-1, (LPC_SCALE_FACTOR+dynamicScale)); in lppTransposer()
659 int descale = fixMin(DFRACT_BITS-1, (LPC_SCALE_FACTOR+dynamicScale)); in lppTransposer()
668 int descale = fixMin(DFRACT_BITS-1, (LPC_SCALE_FACTOR+dynamicScale)); in lppTransposer()
690 int descale = fixMin(DFRACT_BITS-1, (LPC_SCALE_FACTOR+dynamicScale)); in lppTransposer()
[all …]
Denv_calc.cpp898 int shift = fixMin(DFRACT_BITS-1,(int)(h_sbr_cal_env->filtBufferNoise_e - noise_e)); in calculateSbrEnvelope()
903 int shift = fixMin(DFRACT_BITS-1,-(int)(h_sbr_cal_env->filtBufferNoise_e - noise_e)); in calculateSbrEnvelope()
951 shift = fixMin(DFRACT_BITS-1,shift); in calculateSbrEnvelope()
962 shift = fixMin(DFRACT_BITS-1,-shift); in calculateSbrEnvelope()
1232 diff = fixMin(-(reserve + diff),DFRACT_BITS-1); in equalizeFiltBufferExp()
1637 nrgEst = (FL2FXCONST_DBL(0.5f) >> (INT)fixMin(b_e+1,DFRACT_BITS-1)) + (nrgEst >> 1); in calcSubbandGain()
1641 nrgEst = (nrgEst >> (INT)(fixMin(-b_e+1,DFRACT_BITS-1))) + (FL2FXCONST_DBL(0.5f) >> 1); in calcSubbandGain()
1652 b = (FL2FXCONST_DBL(0.5f) >> (INT)fixMin(b_e+1,DFRACT_BITS-1)) + (tmpNoise >> 1); in calcSubbandGain()
1655 b = (tmpNoise >> (INT)(fixMin(-b_e+1,DFRACT_BITS-1))) + (FL2FXCONST_DBL(0.5f) >> 1); in calcSubbandGain()
1891 shift = (shift>=0) ? fixMin(DFRACT_BITS-1,shift) : fixMax(-(DFRACT_BITS-1),shift); in adjustTimeSlotLC()
[all …]
Dtranscendent.h348 *mantissa = (shift>=0) ? result << (INT)fixMin(DFRACT_BITS-1,shift) in FDK_sqrt_MantExp()
349 : result >> (INT)fixMin(DFRACT_BITS-1,-shift); in FDK_sqrt_MantExp()
Dsbr_dec.cpp447 reserve = fixMin(reserve,DFRACT_BITS-1-hSbrDec->sbrScaleFactor.lb_scale); in sbr_dec()
951 …hSbrDec->SynthesisQMF.usb = fixMin((INT)hSbrDec->SynthesisQMF.no_channels, (INT)hHeaderData->freqB… in resetSbrDec()
986 startBand = fixMin(old_lsb,new_lsb); in resetSbrDec()
1002 startBand = fixMin(old_lsb,new_lsb); in resetSbrDec()
1033 reserve = fixMin(reserve,DFRACT_BITS-1-source_scale); in resetSbrDec()
Dsbr_crc.cpp172 NrCrcBits = fixMin ((INT)NrBits, (INT)NrBitsAvailable); in SbrCrcCheck()
/external/aac/libAACdec/src/
Daacdec_tns.cpp246 s = fixMin(s,2); in CTns_Filter()
387 start = fixMin( fixMin(filter->StartBand, tns_max_bands), in CTns_Apply()
392 stop = fixMin( fixMin(filter->StopBand, tns_max_bands), in CTns_Apply()
Daacdec_pns.cpp312 shift = fixMin( shift, DFRACT_BITS-1 ); in ScaleBand()
317 shift = fixMin( -shift, DFRACT_BITS-1 ); in ScaleBand()
Daacdec_drc.cpp900 pDrcChData->bandTop[0] = fixMin(pDrcChData->bandTop[0], (aacFrameSize >> 2) - 1); in aacDecoder_drcApply()
940 top = fixMin((int)( (pDrcChData->bandTop[band]+1)<<2 ), aacFrameSize); in aacDecoder_drcApply()
1018 res = fixMin(res, max_exponent); in aacDecoder_drcApply()
1057 …top = fixMin((int)( (pDrcChData->bandTop[band]+1)<<2 ), aacFrameSize); /* ... * DRC_BAND_MULT; */ in aacDecoder_drcApply()
/external/aac/libSBRenc/src/
Denv_est.cpp243 …scale = fixMin(scale, fixMin(getScalefactor(realValues[k], numberBands), getScalefactor(imagValues… in FDKsbrEnc_getEnergyFromCplxQmfData()
336 …scale = fixMin(scale, fixMin(getScalefactor(realValues[k], numberBands), getScalefactor(imagValues… in FDKsbrEnc_getEnergyFromCplxQmfDataFull()
576 sc0 = fixMin(scaleNrg0,Y_NRG_SCALE); sc1 = fixMin(scaleNrg1,Y_NRG_SCALE); in getEnvSfbEnergy()
578 dynScale1 = fixMin((scaleNrg0-sc0),dynScale); in getEnvSfbEnergy()
579 dynScale2 = fixMin((scaleNrg1-sc1),dynScale); in getEnvSfbEnergy()
594 nrgSum += ( accu1 >> fixMin((scaleNrg0-sc0-dynScale1),(DFRACT_BITS-1)) ) in getEnvSfbEnergy()
595 + ( accu2 >> fixMin((scaleNrg1-sc1-dynScale2),(DFRACT_BITS-1)) ); in getEnvSfbEnergy()
705 commonScale = fixMin(YBufferScaleLeft[0],YBufferScaleLeft[1]); in calculateSbrEnvelope()
708 commonScale = fixMin(commonScale,YBufferScaleRight[0]); in calculateSbrEnvelope()
709 commonScale = fixMin(commonScale,YBufferScaleRight[1]); in calculateSbrEnvelope()
[all …]
Dsbr_misc.cpp256 if ( denom > (tmp >> fixMin(shiftNum+shiftScale-1,(DFRACT_BITS-1))) ) { in FDKsbrEnc_LSI_divide_scale_fract()
259 shiftCommon = fixMin((shiftNum-shiftDenom+shiftScale-1),(DFRACT_BITS-1)); in FDKsbrEnc_LSI_divide_scale_fract()
Dtran_det.cpp328 scale[0] = fixMin(8,scaleEnergies[0]); in addHighbandEnergies()
329 scale[1] = fixMin(8,scaleEnergies[1]); in addHighbandEnergies()
480 commonScale = fixMin(scaleEnergies[0],scaleEnergies[1]); in calculateThresholds()
483 scaleFactor0 = fixMin((scaleEnergies[0]-commonScale), (DFRACT_BITS-1)); in calculateThresholds()
484 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.cpp205 …autoCorrScaling = fixMin(getScalefactor(&realBuf[k-LPC_ORDER], LPC_ORDER+blockLength), getScalefac… in FDKsbrEnc_CalculateTonalityQuotas()
259 commonShift = fixMin(numShift - denomShift + RELAXATION_SHIFT, DFRACT_BITS-1); in FDKsbrEnc_CalculateTonalityQuotas()
263 commonShift = fixMin(commonShift,CountLeadingBits(tmp)); in FDKsbrEnc_CalculateTonalityQuotas()
296 …nrgVector[timeIndex] += ((ac->r00r) >> fixMin(DFRACT_BITS-1,(2*qmfScale+autoCorrScaling + SCALE_NR… in FDKsbrEnc_CalculateTonalityQuotas()
298 …pNrgVectorFreq[r] = pNrgVectorFreq[r] + ((ac->r00r) >> fixMin(DFRACT_BITS-1,(2*qmfScale+autoCorrSc… in FDKsbrEnc_CalculateTonalityQuotas()
Dcode_env.cpp357 index = fixMin(*delta, codeBookScfLavBalance); in computeBits()
370 index = fixMin(*delta, codeBookScfLavLevel); in computeBits()
383 index = fixMin(*delta, codeBookScfLavLevel); in computeBits()

12