Searched refs:FRACT_BITS (Results 1 – 21 of 21) sorted by relevance
/external/aac/libFDK/include/ |
D | common_fix.h | 112 #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 …]
|
D | FDK_trigFcts.h | 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()
|
D | fixpoint_math.h | 209 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/ |
D | drcDec_reader.cpp | 222 (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/ |
D | transcendent.h | 127 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()
|
D | sbrdec_freq_sca.cpp | 354 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()
|
D | env_extr.h | 138 (((1 << (FRACT_BITS - EXP_BITS)) - 1) \
|
D | psdec.cpp | 125 #define FRACT_ZERO FRACT_BITS - 1
|
D | env_calc.cpp | 998 -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()
|
D | env_dec.cpp | 656 shift = (FRACT_BITS - 1 - ENV_EXP_FRACT - 1 + in timeCompensateFirstEnvelope()
|
/external/aac/libAACdec/src/ |
D | usacdec_ace_d4t64.h | 113 #define COD_BITS FRACT_BITS
|
D | usacdec_ace_d4t64.cpp | 129 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()
|
D | usacdec_acelp.cpp | 771 #if (COD_BITS == FRACT_BITS) in CLpd_AcelpDecode()
|
D | usacdec_rom.cpp | 213 #define LSFI(x) ((x) << (FRACT_BITS - LSF_SCALE - 1))
|
D | aacdecoder.cpp | 697 << (FRACT_BITS - 1 - TIME_DATA_FLUSH_SIZE_SF); in CAacDecoder_ApplyCrossFade()
|
/external/aac/libAACenc/src/ |
D | line_pe.h | 110 #define PE_CONSTPART_SHIFT FRACT_BITS
|
/external/aac/libFDK/src/ |
D | scale.cpp | 140 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()
|
D | fixpoint_math.cpp | 474 div = schur_div(L_num, L_denum, FRACT_BITS); in fDivNorm() 555 div = schur_div(L_num, L_denum, FRACT_BITS); in fDivNormSigned()
|
D | FDK_lpc.cpp | 461 tmp = (FIXP_DBL)((LONG)schur_div(tmp, acorr[0], FRACT_BITS) ^ (~sign)); in CLpc_AutoToParcor()
|
/external/aac/libSBRenc/src/ |
D | ps_main.cpp | 179 hParametricStereo->qmfDelayScale = FRACT_BITS - 1; in PSEnc_Init() 594 FRACT_BITS); in psFindBestScaling() 604 *dmxScale = fixMax(0, fixMin(FRACT_BITS, CountLeadingBits((maxValue)))); in psFindBestScaling()
|
D | env_est.cpp | 268 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()
|