Home
last modified time | relevance | path

Searched refs:FRACT_BITS (Results 1 – 21 of 21) sorted by relevance

/external/aac/libFDK/include/
Dcommon_fix.h112 #define FRACT_BITS 16 /* single precision */ macro
124 #elif (SAMPLE_BITS == FRACT_BITS)
131 #error SAMPLE_BITS different from FRACT_BITS or DFRACT_BITS not implemented!
137 #define SGL_MASK ((1UL << FRACT_BITS) - 1) /* 16bit: (2^16)-1 = 0xFFFF */
140 (FRACT_BITS - 1) /* maximum possible shift for FIXP_SGL values */
146 #define FRACT_FIX_SCALE ((INT64(1) << (FRACT_BITS - 1)))
161 ((((((val) >> (DFRACT_BITS - FRACT_BITS - 1)) + 1) > \
162 (((LONG)1 << FRACT_BITS) - 1)) && \
164 ? (FIXP_SGL)(SHORT)(((LONG)1 << (FRACT_BITS - 1)) - 1) \
165 : (FIXP_SGL)(SHORT)((((val) >> (DFRACT_BITS - FRACT_BITS - 1)) + 1) >> \
[all …]
DFDK_trigFcts.h206 *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()
Dfixpoint_math.h209 return ((b_m >> fMin(a_e - b_e, FRACT_BITS - 1)) > a_m); in fIsLessThan()
211 return ((a_m >> fMin(b_e - a_e, FRACT_BITS - 1)) < b_m); in fIsLessThan()
/external/aac/libDRCdec/src/
DdrcDec_reader.cpp222 (FIXP_SGL)(magn << (FRACT_BITS - 1 - 3 - 7)); /* magn * 0.125; */ in _decodeGainInitial()
232 (magn + 1) << (FRACT_BITS - 1 - 3 - 7)); /* - (magn + 1) * 0.125; */ in _decodeGainInitial()
242 (magn + 1) << (FRACT_BITS - 1 - 3 - 7)); /* - (magn + 1) * 0.125; */ in _decodeGainInitial()
283 (FIXP_SGL)(deltaGain << (FRACT_BITS - 1 - 7 - in _decodeGains()
549 (7 - mu) << (FRACT_BITS - 1 - 3 - 2)); /* 1.0 - 0.125 * (1 + mu); */ in _decodeDuckingModification()
552 (9 + mu) << (FRACT_BITS - 1 - 3 - 2)); /* 1.0 + 0.125 * (1 + mu); */ in _decodeDuckingModification()
555 pDMod->duckingScaling = (FIXP_SGL)(1 << (FRACT_BITS - 1 - 2)); /* 1.0 */ in _decodeDuckingModification()
598 << (FRACT_BITS - 1 - 3 - 2)); /* bsAttenuationScaling * 0.125; */ in _decodeGainModification()
602 << (FRACT_BITS - 1 - 3 - 2)); /* bsAmplificationScaling * 0.125; */ in _decodeGainModification()
611 << (FRACT_BITS - 1 - 2 - 4)); /* (1+bsGainOffset) * 0.25; */ in _decodeGainModification()
[all …]
/external/aac/libSBRdec/src/
Dtranscendent.h127 return ((SHORT)((LONG)(CalcLdInt(b) - CalcLdInt(a)) >> (FRACT_BITS - 3))); in FDK_getNumOctavesDiv8()
257 shift = (FRACT_BITS - 2 - INV_TABLE_BITS - preShift); in FDK_divide_MantExp()
354 int result_e = -FRACT_BITS; in FDK_sqrt_MantExp()
Dsbrdec_freq_sca.cpp354 if ((SHORT)k0 < (SHORT)(bpo_div16 >> ((FRACT_BITS - 1) - 4))) { in sbrdecUpdateFreqScale()
356 << ((FRACT_BITS - 1) - 4); /* bpo_div16 = floor(k0/2)*2 */ in sbrdecUpdateFreqScale()
566 num_bands = 2 * ((LONG)num_bands_div128 >> (FRACT_BITS - 7)); in numberOfBands()
591 stop << (FRACT_BITS - 8)); /* Shift left to gain some accuracy */ in CalcBands()
603 current = (LONG)temp >> (FRACT_BITS - 8); in CalcBands()
813 intTemp = intTemp >> (FRACT_BITS - 1 /*sign*/ - 5 /* rescale */); in resetFreqBandTables()
Denv_extr.h138 (((1 << (FRACT_BITS - EXP_BITS)) - 1) \
Dpsdec.cpp125 #define FRACT_ZERO FRACT_BITS - 1
Denv_calc.cpp998 -FRACT_BITS + NRG_EXP_OFFSET; /* start value for maximum search */ in calculateSbrEnvelope()
1288 maxGain_e = -FRACT_BITS; in calculateSbrEnvelope()
2362 SCHAR sumRef_e = -FRACT_BITS; in calcAvgGain()
2363 SCHAR sumEst_e = -FRACT_BITS; in calcAvgGain()
Denv_dec.cpp656 shift = (FRACT_BITS - 1 - ENV_EXP_FRACT - 1 + in timeCompensateFirstEnvelope()
/external/aac/libAACdec/src/
Dusacdec_ace_d4t64.h113 #define COD_BITS FRACT_BITS
Dusacdec_ace_d4t64.cpp129 code[i] = code[i] + (FIXP_COD)(512 << (COD_BITS - FRACT_BITS)); in D_ACELP_add_pulse()
131 code[i] = code[i] - (FIXP_COD)(512 << (COD_BITS - FRACT_BITS)); in D_ACELP_add_pulse()
Dusacdec_acelp.cpp771 #if (COD_BITS == FRACT_BITS) in CLpd_AcelpDecode()
Dusacdec_rom.cpp213 #define LSFI(x) ((x) << (FRACT_BITS - LSF_SCALE - 1))
Daacdecoder.cpp697 << (FRACT_BITS - 1 - TIME_DATA_FLUSH_SIZE_SF); in CAacDecoder_ApplyCrossFade()
/external/aac/libAACenc/src/
Dline_pe.h110 #define PE_CONSTPART_SHIFT FRACT_BITS
/external/aac/libFDK/src/
Dscale.cpp140 scalefactor = fixmin_I(scalefactor, (INT)(FRACT_BITS - 1)); in scaleValues()
151 INT negScalefactor = fixmin_I(-scalefactor, (INT)FRACT_BITS - 1); in scaleValues()
715 maxVal |= (temp ^ (temp >> (FRACT_BITS - 1))); in getScalefactor()
Dfixpoint_math.cpp474 div = schur_div(L_num, L_denum, FRACT_BITS); in fDivNorm()
555 div = schur_div(L_num, L_denum, FRACT_BITS); in fDivNormSigned()
DFDK_lpc.cpp461 tmp = (FIXP_DBL)((LONG)schur_div(tmp, acorr[0], FRACT_BITS) ^ (~sign)); in CLpc_AutoToParcor()
/external/aac/libSBRenc/src/
Dps_main.cpp179 hParametricStereo->qmfDelayScale = FRACT_BITS - 1; in PSEnc_Init()
594 FRACT_BITS); in psFindBestScaling()
604 *dmxScale = fixMax(0, fixMin(FRACT_BITS, CountLeadingBits((maxValue)))); in psFindBestScaling()
Denv_est.cpp268 scale = (FRACT_BITS - 1 - *qmfScale); in FDKsbrEnc_getEnergyFromCplxQmfData()
369 scale = (FRACT_BITS - 1 - *qmfScale); in FDKsbrEnc_getEnergyFromCplxQmfDataFull()
1966 hSbrCut->YBufferScale[0] = hSbrCut->YBufferScale[1] = FRACT_BITS - 1; in FDKsbrEnc_InitExtractSbrEnvelope()