Home
last modified time | relevance | path

Searched refs:DFRACT_BITS (Results 1 – 25 of 91) sorted by relevance

1234

/external/aac/libFDK/src/
Dscale.cpp185 scalefactor = fixmin_I(scalefactor, (INT)DFRACT_BITS - 1); in scaleValues()
196 INT negScalefactor = fixmin_I(-scalefactor, (INT)DFRACT_BITS - 1); in scaleValues()
231 scalefactor = fixmax_I(fixmin_I(scalefactor, (INT)DFRACT_BITS - 1), in scaleValuesSaturate()
232 (INT) - (DFRACT_BITS - 1)); in scaleValuesSaturate()
266 scalefactor = fixmax_I(fixmin_I(scalefactor, (INT)DFRACT_BITS - 1), in scaleValuesSaturate()
267 (INT) - (DFRACT_BITS - 1)); in scaleValuesSaturate()
294 scalefactor = fixmax_I(fixmin_I(scalefactor, (INT)DFRACT_BITS - 1), in scaleValuesSaturate()
295 (INT) - (DFRACT_BITS - 1)); in scaleValuesSaturate()
325 scalefactor = fixmax_I(fixmin_I(scalefactor, (INT)DFRACT_BITS - 1), in scaleValuesSaturate()
326 (INT) - (DFRACT_BITS - 1)); in scaleValuesSaturate()
[all …]
DFDK_trigFcts.cpp208 q = q << (INT)fMin(stf, DFRACT_BITS - 1); in fixp_atan2()
210 q = q >> (INT)fMin(-stf, DFRACT_BITS - 1); in fixp_atan2()
287 (Q_ATANOUT - Q_ATANINP + 18 - DFRACT_BITS + 1) + res_e); in fixp_atan()
309 return SATURATE_LEFT_SHIFT(cosine - error, 1, DFRACT_BITS); in fixp_cos()
322 return SATURATE_LEFT_SHIFT(sine + error, 1, DFRACT_BITS); in fixp_sin()
337 *cos = SATURATE_LEFT_SHIFT(cosine - error0, 1, DFRACT_BITS); in fixp_cos_sin()
338 *sin = SATURATE_LEFT_SHIFT(sine + error1, 1, DFRACT_BITS); in fixp_cos_sin()
Dfixpoint_math.cpp421 return (FIXP_DBL)(div << (DFRACT_BITS - count)); in schur_div()
491 if (res == (FIXP_DBL)(1 << (DFRACT_BITS - 2)) && e == 1) { in fDivNorm()
598 INT exp_bits = DFRACT_BITS - 1 - exp_e; in f2Pow()
643 result_e = fixMin(DFRACT_BITS - 1, fixMax(-(DFRACT_BITS - 1), result_e)); in f2Pow()
705 return SATURATE_SHIFT(result_m, -result_e, DFRACT_BITS); in fLdPow()
764 INT floorInt = (INT)(f_inp >> ((DFRACT_BITS - 1) - sf)); in fixp_floorToInt()
771 FIXP_DBL f_floor = (FIXP_DBL)(floorInt << ((DFRACT_BITS - 1) - sf)); in fixp_floor()
778 INT sx = (DFRACT_BITS - 1) - sf; // sx mantissaBits right of dot in fixp_ceilToInt()
794 INT sx = (DFRACT_BITS - 1) - sf; in fixp_ceil()
796 ULONG mask = (ULONG)0x1 << (DFRACT_BITS - 1); // 0x80000000 in fixp_ceil()
[all …]
DFDK_lpc.cpp191 tmp = SATURATE_LEFT_SHIFT_ALT(accu, 1, DFRACT_BITS); in CLpc_SynthesisLattice()
195 tmp = SATURATE_LEFT_SHIFT_ALT(accu, 1, DFRACT_BITS); in CLpc_SynthesisLattice()
198 pState[1] = SATURATE_LEFT_SHIFT_ALT(accu, 1, DFRACT_BITS); in CLpc_SynthesisLattice()
244 x = SATURATE_SHIFT(x, -lpcCoeff_e - 1, DFRACT_BITS); in CLpc_Synthesis()
287 x = SATURATE_SHIFT(x, -lpcCoeff_e - 1, DFRACT_BITS); in CLpc_Synthesis()
452 LONG sign = ((LONG)workBuffer[0] >> (DFRACT_BITS - 1)); in CLpc_AutoToParcor()
/external/aac/libFDK/include/
DFDK_trigFcts.h124 #define ATI_SF ((DFRACT_BITS - 1) - Q_ATANINP) /* 6 */
126 #define ATO_SF ((DFRACT_BITS - 1) - Q_ATANOUT) /* 1 ] -pi/2 .. pi/2 [ */
130 #define AT2O_SF ((DFRACT_BITS - 1) - Q_ATAN2OUT) /* 2 ] -pi .. pi ] */
206 *sine = (FIXP_DBL)((sl * ssign) << (DFRACT_BITS - FRACT_BITS)); in fixp_sin_cos_residual_inline()
207 *cosine = (FIXP_DBL)((cl * csign) << (DFRACT_BITS - FRACT_BITS)); in fixp_sin_cos_residual_inline()
240 *out++ = SATURATE_LEFT_SHIFT(cosine - (error0 << 1), 1, DFRACT_BITS); in inline_fixp_cos_sin()
241 *out++ = SATURATE_LEFT_SHIFT(sine + (error1 << 1), 1, DFRACT_BITS); in inline_fixp_cos_sin()
252 *out++ = SATURATE_LEFT_SHIFT(cosine - (error0 << 1), 1, DFRACT_BITS); in inline_fixp_cos_sin()
253 *out++ = SATURATE_LEFT_SHIFT(sine + (error1 << 1), 1, DFRACT_BITS); in inline_fixp_cos_sin()
Dqmf_pcm.h145 int scale = (DFRACT_BITS - SAMPLE_BITS_QMFOUT) - 1 - qmf->outScalefactor - in qmfSynPrototypeFirSlot()
158 if (scale < (DFRACT_BITS - 1)) in qmfSynPrototypeFirSlot()
161 scale = (DFRACT_BITS - 1); in qmfSynPrototypeFirSlot()
163 scale = fMax(scale, -(DFRACT_BITS - 1)); in qmfSynPrototypeFirSlot()
237 int scale = (DFRACT_BITS - SAMPLE_BITS_QMFOUT) - 1 - qmf->outScalefactor - in qmfSynPrototypeFirSlot_NonSymmetric()
249 if (scale < (DFRACT_BITS - 1)) in qmfSynPrototypeFirSlot_NonSymmetric()
252 scale = (DFRACT_BITS - 1); in qmfSynPrototypeFirSlot_NonSymmetric()
254 scale = fMax(scale, -(DFRACT_BITS - 1)); in qmfSynPrototypeFirSlot_NonSymmetric()
Dcommon_fix.h113 #define DFRACT_BITS 32 /* double precision */ macro
118 #if (SAMPLE_BITS == DFRACT_BITS)
131 #error SAMPLE_BITS different from FRACT_BITS or DFRACT_BITS not implemented!
142 (DFRACT_BITS - 1) /* maximum possible shift for FIXP_DBL values */
147 #define DFRACT_FIX_SCALE ((INT64(1) << (DFRACT_BITS - 1)))
161 ((((((val) >> (DFRACT_BITS - FRACT_BITS - 1)) + 1) > \
165 : (FIXP_SGL)(SHORT)((((val) >> (DFRACT_BITS - FRACT_BITS - 1)) + 1) >> \
216 #define FX_ACC2FX_DBL(val) ((FIXP_DBL)((val) >> (ACCU_BITS - DFRACT_BITS)))
219 ((FIXP_DBL)((LONG)(val) << (DFRACT_BITS - FRACT_BITS)))
220 #define FX_DBL2FX_SGL(val) ((FIXP_SGL)((val) >> (DFRACT_BITS - FRACT_BITS)))
Dfixpoint_math.h175 return ((b_m >> fMin(a_e - b_e, DFRACT_BITS - 1)) > a_m); in fIsLessThan()
177 return ((a_m >> fMin(b_e - a_e, DFRACT_BITS - 1)) < b_m); in fIsLessThan()
315 (INT)(val >> (DFRACT_BITS - 1 - (SQRT_BITS + 1))) & SQRT_BITS_MASK; in invSqrtNorm2()
488 if (m_e > (INT)-DFRACT_BITS) { in fMultI()
517 if (m_e > (INT)-DFRACT_BITS) { in fMultIfloor()
548 if (m_e > (INT)-DFRACT_BITS) { in fMultIceil()
651 result_m = a_m + (b_m >> fMin(a_e - b_e, DFRACT_BITS - 1)); in fAddNorm()
654 result_m = (a_m >> fMin(b_e - a_e, DFRACT_BITS - 1)) + b_m; in fAddNorm()
781 *result_e = DFRACT_BITS - 1; in fLog2()
822 enorm = DFRACT_BITS - fNorm((FIXP_DBL)x_e); in fLog2()
[all …]
/external/aac/libAACenc/src/
Dquantize.cpp141 (INT)(accu >> (DFRACT_BITS - 2 - MANT_DIGITS)) & (~MANT_SIZE); in FDKaacEnc_quantizeLines()
147 accu >>= fixMin(totalShift, DFRACT_BITS - 1); in FDKaacEnc_quantizeLines()
149 (SHORT)(-((LONG)(k + accu) >> (DFRACT_BITS - 1 - 16))); in FDKaacEnc_quantizeLines()
157 (INT)(accu >> (DFRACT_BITS - 2 - MANT_DIGITS)) & (~MANT_SIZE); in FDKaacEnc_quantizeLines()
163 accu >>= fixMin(totalShift, DFRACT_BITS - 1); in FDKaacEnc_quantizeLines()
164 quaSpectrum[line] = (SHORT)((LONG)(k + accu) >> (DFRACT_BITS - 1 - 16)); in FDKaacEnc_quantizeLines()
202 specExp = (DFRACT_BITS - 1) - ex; in FDKaacEnc_invQuantizeLines()
206 tabIndex = (INT)(accu >> (DFRACT_BITS - 2 - MANT_DIGITS)) & (~MANT_SIZE); in FDKaacEnc_invQuantizeLines()
237 specExp = (DFRACT_BITS - 1) - ex; in FDKaacEnc_invQuantizeLines()
241 tabIndex = (INT)(accu >> (DFRACT_BITS - 2 - MANT_DIGITS)) & (~MANT_SIZE); in FDKaacEnc_invQuantizeLines()
[all …]
Dchaosmeasure.cpp124 ((LONG)paMDCTDataNM0[0] >> (DFRACT_BITS - 1))) >> in FDKaacEnc_FDKaacEnc_CalculateChaosMeasurePeakFast()
127 ((LONG)paMDCTDataNM0[1] >> (DFRACT_BITS - 1))) >> in FDKaacEnc_FDKaacEnc_CalculateChaosMeasurePeakFast()
130 ((LONG)paMDCTDataNM0[2] >> (DFRACT_BITS - 1))); in FDKaacEnc_FDKaacEnc_CalculateChaosMeasurePeakFast()
132 ((LONG)paMDCTDataNM0[3] >> (DFRACT_BITS - 1))); in FDKaacEnc_FDKaacEnc_CalculateChaosMeasurePeakFast()
137 ((LONG)paMDCTDataNM0[j + 2] >> (DFRACT_BITS - 1))); in FDKaacEnc_FDKaacEnc_CalculateChaosMeasurePeakFast()
141 ((LONG)paMDCTDataNM0[j + 3] >> (DFRACT_BITS - 1))); in FDKaacEnc_FDKaacEnc_CalculateChaosMeasurePeakFast()
Dpsy_configuration.cpp341 mask_factor = fPow(ten_fix, DFRACT_BITS - 1 - ten_e, -dbVal_fix, in getMaskFactor()
342 DFRACT_BITS - 1 - dbVal_e, &q_msk); in getMaskFactor()
343 q_msk = fixMin(DFRACT_BITS - 1, fixMax(-(DFRACT_BITS - 1), q_msk)); in getMaskFactor()
448 qbfac = DFRACT_BITS - 1 - qbfac; in FDKaacEnc_initMinSnr()
451 qperwin = DFRACT_BITS - 1 - qperwin; in FDKaacEnc_initMinSnr()
453 qperwin = qperwin + 30 - (DFRACT_BITS - 1); in FDKaacEnc_initMinSnr()
455 qperwin = qperwin + 36 - (DFRACT_BITS - 1); in FDKaacEnc_initMinSnr()
476 qperwin = qperwin + 30 - (DFRACT_BITS - 1); in FDKaacEnc_initMinSnr()
479 qpeprt_const = qperwin - qbfac + DFRACT_BITS - 1 - qdiv; in FDKaacEnc_initMinSnr()
488 qpeprt = qpeprt_const + 25 - (DFRACT_BITS - 1); in FDKaacEnc_initMinSnr()
[all …]
Dband_nrg.cpp128 sfbMaxScaleSpec[i] = fixMin((DFRACT_BITS - 2), j); in FDKaacEnc_CalcSfbMaxScaleSpec()
179 scale = fixMax(2 * (minSpecShift - scale), -(DFRACT_BITS - 1)); in FDKaacEnc_CheckBandEnergyOptim()
239 INT scale = fixMin((sfbMaxScaleSpec[i] - 4) << 1, (DFRACT_BITS - 1)); in FDKaacEnc_CalcBandEnergyOptimLong()
250 (DFRACT_BITS - 1)); in FDKaacEnc_CalcBandEnergyOptimLong()
285 scale = fixMax(fixMin(scale, (DFRACT_BITS - 1)), -(DFRACT_BITS - 1)); in FDKaacEnc_CalcBandEnergyOptimShort()
357 scale = fixMin(scale, (DFRACT_BITS - 1)); in FDKaacEnc_CalcBandNrgMSOpt()
Dintensity.cpp207 sfbMaxScale = (maxSpc == FL2FXCONST_DBL(0.0)) ? (DFRACT_BITS - 2) in calcSfbMaxScale()
342 fixMax(invOverallLoudnessSF, -(DFRACT_BITS - 1)), DFRACT_BITS - 1); in FDKaacEnc_prepareIntensityDecision()
433 fixMax((channelCorrSF + ((sL + sR) >> 1)), -(DFRACT_BITS - 1)), in FDKaacEnc_prepareIntensityDecision()
434 DFRACT_BITS - 1); in FDKaacEnc_prepareIntensityDecision()
727 s2 = fixMin(fixMax(s2, -(DFRACT_BITS - 1)), (DFRACT_BITS - 1)); in FDKaacEnc_IntensityStereoProcessing()
769 s2 = fixMin(fixMax(s2, -(DFRACT_BITS - 1)), (DFRACT_BITS - 1)); in FDKaacEnc_IntensityStereoProcessing()
798 (DFRACT_BITS - 1 - REAL_SCALE_SF - LD_DATA_SHIFT - 1)) + in FDKaacEnc_IntensityStereoProcessing()
805 (DFRACT_BITS - 1 - REAL_SCALE_SF - LD_DATA_SHIFT - 1)); in FDKaacEnc_IntensityStereoProcessing()
Dmetadata_compressor.cpp119 #define METADATA_FRACT_BITS (DFRACT_BITS - 1 - METADATA_INT_BITS)
343 *pQ2 = (*pValue2 != (FIXP_DBL)0) ? resultScale : DFRACT_BITS - 1; in fixpAdd()
365 (FIXP_DBL)(sampleRate << (DFRACT_BITS - 1 - METADATA_LINT_BITS)); in tc2Coeff()
367 (FIXP_DBL)(blockLength << (DFRACT_BITS - 1 - METADATA_LINT_BITS)); in tc2Coeff()
385 result = f2Pow(-exponent, DFRACT_BITS - 1 - METADATA_FRACT_BITS, &e_res); in tc2Coeff()
524 << (DFRACT_BITS - 1 - METADATA_FRACT_BITS); in findPeakLevels()
569 tmp = fMult(dmxGain5, tmp) << (DFRACT_BITS - 1 - METADATA_FRACT_BITS); in findPeakLevels()
571 tmp = fMult(dmxGain2, tmp) << (DFRACT_BITS - 1 - METADATA_FRACT_BITS); in findPeakLevels()
611 tmp = fMult(dmxGain5, tmp) << (DFRACT_BITS - 1 - METADATA_FRACT_BITS); in findPeakLevels()
613 tmp = fMult(dmxGain2, tmp) << (DFRACT_BITS - 1 - METADATA_FRACT_BITS); in findPeakLevels()
[all …]
/external/aac/libSBRdec/src/
Dtranscendent.h159 shiftAbs = (shiftAbs < DFRACT_BITS - 1) ? shiftAbs : DFRACT_BITS - 1; in FDK_add_MantExp()
198 shiftAbs = (shiftAbs < DFRACT_BITS - 1) ? shiftAbs : DFRACT_BITS - 1; in FDK_add_MantExp()
313 shift = (DFRACT_BITS - 2 - INV_TABLE_BITS - preShift); in FDK_divide_MantExp()
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()
Denv_calc.cpp536 int total_power_low_sf = 1 - DFRACT_BITS; in apply_inter_tes()
537 int total_power_high_sf = 1 - DFRACT_BITS; in apply_inter_tes()
553 ((LONG)bufferImag[j] >> (DFRACT_BITS - 1))); in apply_inter_tes()
556 ((LONG)bufferReal[j] >> (DFRACT_BITS - 1))); in apply_inter_tes()
592 ((LONG)bufferImag[j] >> (DFRACT_BITS - 1))); in apply_inter_tes()
595 ((LONG)bufferReal[j] >> (DFRACT_BITS - 1))); in apply_inter_tes()
625 int diff = fMin(DFRACT_BITS - 1, new_summand_sf - total_power_low_sf); in apply_inter_tes()
630 fMin(DFRACT_BITS - 1, total_power_low_sf - new_summand_sf); in apply_inter_tes()
639 fMin(DFRACT_BITS - 1, new_summand_sf - total_power_high_sf); in apply_inter_tes()
643 fMin(DFRACT_BITS - 1, total_power_high_sf - new_summand_sf); in apply_inter_tes()
[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()
321 z[i] = SATURATE_LEFT_SHIFT(cor, s, DFRACT_BITS); in FDKcalcCorrelationVec()
346 s = fixMax(fixMin((scaleP12 - scaleP + s + s1 - s2), DFRACT_BITS - 1), in calcCoherenceVec()
347 -(DFRACT_BITS - 1)); in calcCoherenceVec()
351 z[i] = SATURATE_LEFT_SHIFT(coh, s, DFRACT_BITS); in calcCoherenceVec()
432 return (-(DFRACT_BITS - 1)); in FDKcalcScaleFactor()
Dsacenc_dmx_tdom_enh.cpp209 scaleValue(src1_m, fixMax((src1_e - (*dst_e)), -(DFRACT_BITS - 1))) + in fixpAdd()
210 scaleValue(src2_m, fixMax((src2_e - (*dst_e)), -(DFRACT_BITS - 1))); in fixpAdd()
239 scaleValue(*pValue2, fixMax(-(DFRACT_BITS - 1), ((*pQ2) - resultScale))); in fixpAddNorm()
240 *pQ2 = (*pValue2 != (FIXP_DBL)0) ? resultScale : DFRACT_BITS - 1; in fixpAddNorm()
287 deltax_m = scaleValue(deltax_m, PI_E + deltax_e - (DFRACT_BITS - 1) - 1); in fdk_sacenc_init_enhancedTimeDomainDmx()
299 hEnhancedTimeDmx->prev_XNrg_e = DFRACT_BITS - 1; in fdk_sacenc_init_enhancedTimeDomainDmx()
354 ? ((DFRACT_BITS - 1) - fNorm((FIXP_DBL)(granuleLength - 1))) in fdk_sacenc_apply_enhancedTimeDomainDmx()
488 -(hEnhancedTimeDmx->prev_gain_e + 1 - (DFRACT_BITS - SAMPLE_BITS)), in fdk_sacenc_apply_enhancedTimeDomainDmx()
Dsacenc_onsetdetect.cpp198 hOnset->pEnergyHistScale[i] = -(DFRACT_BITS - 3); in fdk_sacenc_onsetDetect_Init()
202 FL2FXCONST_DBL(SACENC_FLOAT_EPSILON * (1 << (DFRACT_BITS - 3))), in fdk_sacenc_onsetDetect_Init()
317 SCHAR maxScale = -(DFRACT_BITS - 1); in fdk_sacenc_onsetDetect_Apply()
324 envs[i] = env[i] >> fixMin((maxScale - envScale[i]), (DFRACT_BITS - 1)); in fdk_sacenc_onsetDetect_Apply()
/external/aac/libFDK/include/arm/
Dscale_arm.h152 ((((LONG)(src) ^ ((LONG)(src) >> (DFRACT_BITS - 1))) >> (scale)) > \
154 ? ((LONG)(src) >> (DFRACT_BITS - 1)) ^ (LONG)(((1U) << ((dBits)-1)) - 1) \
158 (((LONG)(src) ^ ((LONG)(src) >> (DFRACT_BITS - 1))) > \
160 ? ((LONG)(src) >> (DFRACT_BITS - 1)) ^ (LONG)(((1U) << ((dBits)-1)) - 1) \
/external/aac/libSACdec/src/
Dsac_reshapeBBEnv.cpp144 self->reshapeBBEnvState->normNrgPrevSF[k] = DFRACT_BITS - 1; in initBBEnv()
419 scalePrev = fixMax(fixMin(partNrgSF - pPartNrgPrevSF[0], DFRACT_BITS - 1), in extractBBEnv()
420 -(DFRACT_BITS - 1)); in extractBBEnv()
422 fixMax(fixMin(partNrgSF - slotNrgSF + SF_ALPHA1, DFRACT_BITS - 1), in extractBBEnv()
423 -(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()
490 scale_min = DFRACT_BITS - 1; in extractBBEnv()
516 INT sc = fixMax(fixMin(resPbSF[pb] + scale_min, DFRACT_BITS - 1), in extractBBEnv()
517 -(DFRACT_BITS - 1)); in extractBBEnv()
[all …]
/external/aac/libAACdec/src/
Dldfiltbank.cpp120 const int scale = (DFRACT_BITS - SAMPLE_BITS) - LDFB_HEADROOM; in multE2_DinvF_fdk()
121 #if ((DFRACT_BITS - SAMPLE_BITS - LDFB_HEADROOM) > 0) in multE2_DinvF_fdk()
142 #if ((DFRACT_BITS - SAMPLE_BITS - LDFB_HEADROOM) > 0) in multE2_DinvF_fdk()
172 #if ((DFRACT_BITS - SAMPLE_BITS - LDFB_HEADROOM) > 0) in multE2_DinvF_fdk()
197 #if ((DFRACT_BITS - SAMPLE_BITS - LDFB_HEADROOM) > 0) in multE2_DinvF_fdk()
/external/aac/libSBRenc/src/
Dtran_det.cpp182 prevEnergies_e_diff = fMin(prevEnergies_e_diff, DFRACT_BITS - 1); in spectralChange()
183 newEnergies_e_diff = fMin(newEnergies_e_diff, DFRACT_BITS - 1); in spectralChange()
273 DFRACT_BITS - in addLowbandEnergies()
277 DFRACT_BITS - in addLowbandEnergies()
360 if ((scaleEnergies[0] - scale[0]) > (DFRACT_BITS - 1) || in addHighbandEnergies()
361 (scaleEnergies[1] - scale[1]) > (DFRACT_BITS - 1)) in addHighbandEnergies()
489 scaleFactor0 = fixMin((scaleEnergies[0] - commonScale), (DFRACT_BITS - 1)); in calculateThresholds()
490 scaleFactor1 = fixMin((scaleEnergies[1] - commonScale), (DFRACT_BITS - 1)); in calculateThresholds()
537 temp = (commonScale <= (DFRACT_BITS - 1)) in calculateThresholds()
835 DFRACT_BITS - 1, EXP_E); in FDKsbrEnc_InitSbrFastTransientDetector()
[all …]
Denv_est.cpp260 scale = DFRACT_BITS; in FDKsbrEnc_getEnergyFromCplxQmfData()
267 if (scale >= DFRACT_BITS - 1) { in FDKsbrEnc_getEnergyFromCplxQmfData()
361 scale = DFRACT_BITS; in FDKsbrEnc_getEnergyFromCplxQmfDataFull()
368 if (scale >= DFRACT_BITS - 1) { in FDKsbrEnc_getEnergyFromCplxQmfDataFull()
499 (DFRACT_BITS - 1 - LD_DATA_SHIFT))); /* conversion to integer */ in sbrNoiseFloorLevelsQuantisation()
540 temp1 = temp1 << (DFRACT_BITS - 1 - LD_DATA_SHIFT - in coupleNoiseFloor()
549 temp2 = temp2 << (DFRACT_BITS - 1 - LD_DATA_SHIFT - in coupleNoiseFloor()
621 dynScale = DFRACT_BITS - 1; in getEnvSfbEnergy()
623 dynScale = CalcLdInt(ui - li) >> (DFRACT_BITS - 1 - LD_DATA_SHIFT); in getEnvSfbEnergy()
645 (accu1 >> fixMin((scaleNrg0 - sc0 - dynScale1), (DFRACT_BITS - 1))) + in getEnvSfbEnergy()
[all …]
/external/aac/libFDK/include/mips/
Dscale_mips.h117 (__builtin_mips_shll_s_w((src) >> (scale), (DFRACT_BITS - (dBits))) >> \
118 (DFRACT_BITS - (dBits)))

1234