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 | 183 return ((b_m >> fMin(a_e - b_e, FRACT_BITS - 1)) > a_m); in fIsLessThan() 185 return ((a_m >> fMin(b_e - a_e, FRACT_BITS - 1)) < b_m); in fIsLessThan()
|
/external/aac/libDRCdec/src/ |
D | drcDec_reader.cpp | 225 (FIXP_SGL)(magn << (FRACT_BITS - 1 - 3 - 7)); /* magn * 0.125; */ in _decodeGainInitial() 235 (magn + 1) << (FRACT_BITS - 1 - 3 - 7)); /* - (magn + 1) * 0.125; */ in _decodeGainInitial() 245 (magn + 1) << (FRACT_BITS - 1 - 3 - 7)); /* - (magn + 1) * 0.125; */ in _decodeGainInitial() 286 (FIXP_SGL)(deltaGain << (FRACT_BITS - 1 - 7 - in _decodeGains() 543 (7 - mu) << (FRACT_BITS - 1 - 3 - 2)); /* 1.0 - 0.125 * (1 + mu); */ in _decodeDuckingModification() 546 (9 + mu) << (FRACT_BITS - 1 - 3 - 2)); /* 1.0 + 0.125 * (1 + mu); */ in _decodeDuckingModification() 549 pDMod->duckingScaling = (FIXP_SGL)(1 << (FRACT_BITS - 1 - 2)); /* 1.0 */ in _decodeDuckingModification() 592 << (FRACT_BITS - 1 - 3 - 2)); /* bsAttenuationScaling * 0.125; */ in _decodeGainModification() 596 << (FRACT_BITS - 1 - 3 - 2)); /* bsAmplificationScaling * 0.125; */ in _decodeGainModification() 605 << (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 | 352 if ((SHORT)k0 < (SHORT)(bpo_div16 >> ((FRACT_BITS - 1) - 4))) { in sbrdecUpdateFreqScale() 354 << ((FRACT_BITS - 1) - 4); /* bpo_div16 = floor(k0/2)*2 */ in sbrdecUpdateFreqScale() 563 num_bands = 2 * ((LONG)num_bands_div128 >> (FRACT_BITS - 7)); in numberOfBands() 588 stop << (FRACT_BITS - 8)); /* Shift left to gain some accuracy */ in CalcBands() 600 current = (LONG)temp >> (FRACT_BITS - 8); in CalcBands() 810 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 | 1015 -FRACT_BITS + NRG_EXP_OFFSET; /* start value for maximum search */ in calculateSbrEnvelope() 1305 maxGain_e = -FRACT_BITS; in calculateSbrEnvelope() 2366 SCHAR sumRef_e = -FRACT_BITS; in calcAvgGain() 2367 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 | 768 #if (COD_BITS == FRACT_BITS) in CLpd_AcelpDecode()
|
D | aacdecoder.cpp | 628 << (FRACT_BITS - 1 - TIME_DATA_FLUSH_SIZE_SF); in CAacDecoder_ApplyCrossFade()
|
D | usacdec_rom.cpp | 213 #define LSFI(x) ((x) << (FRACT_BITS - LSF_SCALE - 1))
|
/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/libAACenc/src/ |
D | line_pe.h | 110 #define PE_CONSTPART_SHIFT FRACT_BITS
|
/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() 1958 hSbrCut->YBufferScale[0] = hSbrCut->YBufferScale[1] = FRACT_BITS - 1; in FDKsbrEnc_InitExtractSbrEnvelope()
|