Searched refs:FRACT_BITS (Results 1 – 18 of 18) sorted by relevance
/external/aac/libFDK/include/ |
D | common_fix.h | 104 #define FRACT_BITS 16 /* single precision */ macro 114 #elif (SAMPLE_BITS == FRACT_BITS) 119 #error SAMPLE_BITS different from FRACT_BITS or DFRACT_BITS not implemented! 125 #define SGL_MASK ((1UL<<FRACT_BITS)-1) /* 16bit: (2^16)-1 = 0xFFFF */ 127 #define MAX_SHIFT_SGL (FRACT_BITS-1) /* maximum possible shift for FIXP_SGL values */ 131 #define FRACT_FIX_SCALE ((INT64(1)<<(FRACT_BITS-1))) 141 …e FX_DBL2FXCONST_SGL(val) ( ( ((((val) >> (DFRACT_BITS-FRACT_BITS-1)) + 1) > (((LONG)1<<FRACT_BITS… 142 …(FIXP_SGL)(SHORT)(((LONG)1<<(FRACT_BITS-1))-1):(FIXP_SGL)(SHORT)((((val) >> (DFRACT_BITS-FRACT_BIT… 173 #define FX_ACC2FX_SGL(val) ((FIXP_SGL)((val)>>(ACCU_BITS-FRACT_BITS))) 175 #define FX_SGL2FX_ACC(val) ((FIXP_ACC)((LONG)(val)<<(ACCU_BITS-FRACT_BITS))) [all …]
|
D | qmf.h | 106 #define QFRACT_BITS FRACT_BITS 121 #define QSS_BITS FRACT_BITS
|
D | FDK_trigFcts.h | 194 *sine = (FIXP_DBL)((sl * ssign) << (DFRACT_BITS-FRACT_BITS)); in fixp_sin_cos_residual_inline() 195 *cosine = (FIXP_DBL)((cl * csign) << (DFRACT_BITS-FRACT_BITS)); in fixp_sin_cos_residual_inline()
|
D | fixpoint_math.h | 118 return (b_m >> fMin(a_e-b_e, FRACT_BITS-1) > a_m); in fIsLessThan() 120 return (a_m >> fMin(b_e-a_e, FRACT_BITS-1) < b_m); in fIsLessThan()
|
/external/aac/libSBRdec/src/ |
D | transcendent.h | 108 return ( (SHORT)((LONG)(CalcLdInt(b) - CalcLdInt(a))>>(FRACT_BITS-3)) ); in FDK_getNumOctavesDiv8() 237 shift = (FRACT_BITS - 2 - INV_TABLE_BITS - preShift); in FDK_divide_MantExp() 336 int result_e = -FRACT_BITS; in FDK_sqrt_MantExp()
|
D | sbrdec_freq_sca.cpp | 512 num_bands = 2 * ((LONG)num_bands_div128 >> (FRACT_BITS - 7)); in numberOfBands() 538 exact = (FIXP_SGL)(stop << (FRACT_BITS-8)); /* Shift left to gain some accuracy */ in CalcBands() 549 current = (LONG)temp >> (FRACT_BITS-8); in CalcBands() 782 intTemp = intTemp >> (FRACT_BITS - 1 /*sign*/ - 5 /* rescale */); in resetFreqBandTables()
|
D | env_extr.h | 117 #define MASK_M (((1 << (FRACT_BITS - EXP_BITS)) - 1) << EXP_BITS) /*!< Mask for extracting the man…
|
D | env_calc.cpp | 578 INT maxSfbNrg_e = -FRACT_BITS+NRG_EXP_OFFSET; /* start value for maximum search */ in calculateSbrEnvelope() 751 maxGain_e = -FRACT_BITS; in calculateSbrEnvelope() 1727 SCHAR sumRef_e = -FRACT_BITS; in calcAvgGain() 1728 SCHAR sumEst_e = -FRACT_BITS; in calcAvgGain()
|
D | env_dec.cpp | 628 shift = (FRACT_BITS - 1 - ENV_EXP_FRACT - 1 + h_sbr_data->ampResolutionCurrentFrame - 3); in timeCompensateFirstEnvelope()
|
D | psdec.cpp | 110 #define FRACT_ZERO FRACT_BITS-1
|
/external/aac/libAACenc/src/ |
D | line_pe.h | 98 #define PE_CONSTPART_SHIFT FRACT_BITS
|
D | aacenc_tns.cpp | 1137 tmp = (FIXP_DBL)((LONG)schur_div(tmp, input[0], FRACT_BITS)^(~sign)); in FDKaacEnc_AutoToParcor()
|
/external/aac/libSBRenc/src/ |
D | resampler.cpp | 448 … (FIXP_BQS)(LONG)((state0 + (FIXP_DBL)(1<<(DFRACT_BITS-FRACT_BITS-2))) >> (DFRACT_BITS-FRACT_BITS-… in AdvanceFilter()
|
D | ps_main.cpp | 177 hParametricStereo->qmfDelayScale = FRACT_BITS-1; in PSEnc_Init() 604 …andScale[band] = fixMax(0,CountLeadingBits(fixMax(maxVal[0][band],maxBandValue[band]))-FRACT_BITS); in psFindBestScaling() 614 *dmxScale = fixMax(0,fixMin(FRACT_BITS, CountLeadingBits(FX_QMF2FX_DBL(maxValue)))); in psFindBestScaling()
|
D | env_est.cpp | 248 scale = (FRACT_BITS-1-*qmfScale); in FDKsbrEnc_getEnergyFromCplxQmfData() 341 scale = (FRACT_BITS-1-*qmfScale); in FDKsbrEnc_getEnergyFromCplxQmfDataFull() 1993 hSbrCut->YBufferScale[0] = hSbrCut->YBufferScale[1] = FRACT_BITS-1; in FDKsbrEnc_InitExtractSbrEnvelope()
|
/external/aac/libFDK/src/ |
D | fixpoint_math.cpp | 223 low = (low+(ACCU_R>>1)) >> (FRACT_BITS-1); /* round */ in mul_dbl_sgl_rnd() 224 LONG high = u * ((v>>FRACT_BITS)<<1); in mul_dbl_sgl_rnd() 564 div = schur_div(L_num, L_denum, FRACT_BITS); in fDivNorm()
|
D | scale.cpp | 455 maxVal |= (temp^(temp>>(FRACT_BITS-1))); in getScalefactor()
|
/external/aac/libPCMutils/src/ |
D | pcmutils_lib.cpp | 218 #define FX_DMX2SHRT(x) ((SHORT)((x)>>FRACT_BITS))
|