Home
last modified time | relevance | path

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

/external/aac/libFDK/include/
Dcommon_fix.h104 #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 …]
Dqmf.h106 #define QFRACT_BITS FRACT_BITS
121 #define QSS_BITS FRACT_BITS
DFDK_trigFcts.h194 *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()
/external/aac/libSBRdec/src/
Dtranscendent.h108 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()
Dsbrdec_freq_sca.cpp512 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()
Denv_extr.h117 #define MASK_M (((1 << (FRACT_BITS - EXP_BITS)) - 1) << EXP_BITS) /*!< Mask for extracting the man…
Denv_calc.cpp569 INT maxSfbNrg_e = -FRACT_BITS+NRG_EXP_OFFSET; /* start value for maximum search */ in calculateSbrEnvelope()
742 maxGain_e = -FRACT_BITS; in calculateSbrEnvelope()
1707 SCHAR sumRef_e = -FRACT_BITS; in calcAvgGain()
1708 SCHAR sumEst_e = -FRACT_BITS; in calcAvgGain()
Denv_dec.cpp628 shift = (FRACT_BITS - 1 - ENV_EXP_FRACT - 1 + h_sbr_data->ampResolutionCurrentFrame - 3); in timeCompensateFirstEnvelope()
Dpsdec.cpp110 #define FRACT_ZERO FRACT_BITS-1
/external/aac/libAACenc/src/
Dline_pe.h98 #define PE_CONSTPART_SHIFT FRACT_BITS
Daacenc_tns.cpp1145 tmp = (FIXP_DBL)((LONG)schur_div(tmp, input[0], FRACT_BITS)^(~sign)); in FDKaacEnc_AutoToParcor()
/external/aac/libFDK/src/
Dfixpoint_math.cpp223 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()
Dscale.cpp455 maxVal |= (temp^(temp>>(FRACT_BITS-1))); in getScalefactor()
/external/aac/libSBRenc/src/
Dresampler.cpp448 … (FIXP_BQS)(LONG)((state0 + (FIXP_DBL)(1<<(DFRACT_BITS-FRACT_BITS-2))) >> (DFRACT_BITS-FRACT_BITS-… in AdvanceFilter()
Dps_main.cpp177 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()
Denv_est.cpp140 scale = (FRACT_BITS-1-*qmfScale); in FDKsbrEnc_getEnergyFromCplxQmfData()
233 scale = (FRACT_BITS-1-*qmfScale); in FDKsbrEnc_getEnergyFromCplxQmfDataFull()
1832 hSbrCut->YBufferScale[0] = hSbrCut->YBufferScale[1] = FRACT_BITS-1; in FDKsbrEnc_InitExtractSbrEnvelope()
/external/aac/libPCMutils/src/
Dpcmutils_lib.cpp211 #define FX_DMX2SHRT(x) ((SHORT)((x)>>FRACT_BITS))