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

/external/aac/libFDK/include/
H A 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)))
135 #define MAXVAL_SGL ((signed)0x00007FFF) /* this has to be synchronized to FRACT_BITS */
136 #define MINVAL_SGL ((signed)0xFFFF8000) /* this has to be synchronized to FRACT_BITS */
141 #define FX_DBL2FXCONST_SGL(val) ( ( ((((val) >> (DFRACT_BITS-FRACT_BITS-1)) + 1) > (((LONG)1<<FRACT_BITS)
[all...]
H A Dqmf.h106 #define QFRACT_BITS FRACT_BITS
121 #define QSS_BITS FRACT_BITS
H A DFDK_trigFcts.h194 *sine = (FIXP_DBL)((sl * ssign) << (DFRACT_BITS-FRACT_BITS));
195 *cosine = (FIXP_DBL)((cl * csign) << (DFRACT_BITS-FRACT_BITS));
/external/aac/libAACenc/src/
H A Dline_pe.h98 #define PE_CONSTPART_SHIFT FRACT_BITS
H A Daacenc_tns.cpp1145 tmp = (FIXP_DBL)((LONG)schur_div(tmp, input[0], FRACT_BITS)^(~sign));
/external/aac/libSBRdec/src/
H A Dtranscendent.h108 return ( (SHORT)((LONG)(CalcLdInt(b) - CalcLdInt(a))>>(FRACT_BITS-3)) );
237 shift = (FRACT_BITS - 2 - INV_TABLE_BITS - preShift);
336 int result_e = -FRACT_BITS;
H A Dsbrdec_freq_sca.cpp512 num_bands = 2 * ((LONG)num_bands_div128 >> (FRACT_BITS - 7));
538 exact = (FIXP_SGL)(stop << (FRACT_BITS-8)); /* Shift left to gain some accuracy */
549 current = (LONG)temp >> (FRACT_BITS-8);
782 intTemp = intTemp >> (FRACT_BITS - 1 /*sign*/ - 5 /* rescale */);
H A Denv_extr.h117 #define MASK_M (((1 << (FRACT_BITS - EXP_BITS)) - 1) << EXP_BITS) /*!< Mask for extracting the mantissa of a pseudo float envelope value */
H A Denv_calc.cpp569 INT maxSfbNrg_e = -FRACT_BITS+NRG_EXP_OFFSET; /* start value for maximum search */
742 maxGain_e = -FRACT_BITS;
1707 SCHAR sumRef_e = -FRACT_BITS;
1708 SCHAR sumEst_e = -FRACT_BITS;
1771 (supplying #FRACT_BITS valid bits).
H A Denv_dec.cpp628 shift = (FRACT_BITS - 1 - ENV_EXP_FRACT - 1 + h_sbr_data->ampResolutionCurrentFrame - 3);
H A Dpsdec.cpp110 #define FRACT_ZERO FRACT_BITS-1
/external/aac/libSBRenc/src/
H A Dresampler.cpp448 states[i][s2] = (FIXP_BQS)(LONG)((state0 + (FIXP_DBL)(1<<(DFRACT_BITS-FRACT_BITS-2))) >> (DFRACT_BITS-FRACT_BITS-1));
H A Dps_main.cpp177 hParametricStereo->qmfDelayScale = FRACT_BITS-1;
604 dynBandScale[band] = fixMax(0,CountLeadingBits(fixMax(maxVal[0][band],maxBandValue[band]))-FRACT_BITS);
614 *dmxScale = fixMax(0,fixMin(FRACT_BITS, CountLeadingBits(FX_QMF2FX_DBL(maxValue))));
H A Denv_est.cpp140 scale = (FRACT_BITS-1-*qmfScale);
233 scale = (FRACT_BITS-1-*qmfScale);
356 /* tmp = (INT)((FIXP_DBL)NoiseLevels[i] + (FL2FXCONST_DBL(0.5f)>>(*/ /* FRACT_BITS+ */ /* 6-1)));*/
1832 hSbrCut->YBufferScale[0] = hSbrCut->YBufferScale[1] = FRACT_BITS-1;
/external/aac/libFDK/src/
H A Dscale.cpp455 maxVal |= (temp^(temp>>(FRACT_BITS-1)));
H A Dfixpoint_math.cpp223 low = (low+(ACCU_R>>1)) >> (FRACT_BITS-1); /* round */
224 LONG high = u * ((v>>FRACT_BITS)<<1);
564 div = schur_div(L_num, L_denum, FRACT_BITS);
/external/aac/libPCMutils/src/
H A Dpcmutils_lib.cpp211 #define FX_DMX2SHRT(x) ((SHORT)((x)>>FRACT_BITS))

Completed in 365 milliseconds