/external/aac/libFDK/include/mips/ |
scale.h | 105 (__builtin_mips_shll_s_w((src)>>scale,(DFRACT_BITS-(dBits)))>>(DFRACT_BITS-(dBits)))
|
/external/aac/libFDK/include/arm/ |
scale.h | 144 ( (((LONG)(src) ^ ((LONG)(src) >> (DFRACT_BITS-1)))>>(scale)) > (LONG)(((1U)<<((dBits)-1))-1)) \ 145 ? ((LONG)(src) >> (DFRACT_BITS-1)) ^ (LONG)(((1U)<<((dBits)-1))-1) \ 149 ( ((LONG)(src) ^ ((LONG)(src) >> (DFRACT_BITS-1))) > ((LONG)(((1U)<<((dBits)-1))-1) >> (scale)) ) \ 150 ? ((LONG)(src) >> (DFRACT_BITS-1)) ^ (LONG)(((1U)<<((dBits)-1))-1) \
|
/external/aac/libAACenc/src/ |
chaosmeasure.cpp | 112 left = (FIXP_DBL)((LONG)paMDCTDataNM0[i]^((LONG)paMDCTDataNM0[i]>>(DFRACT_BITS-1))); 113 center = (FIXP_DBL)((LONG)paMDCTDataNM0[i+2]^((LONG)paMDCTDataNM0[i+2]>>(DFRACT_BITS-1))); 116 FIXP_DBL right = (FIXP_DBL)((LONG)paMDCTDataNM0[j+2]^((LONG)paMDCTDataNM0[j+2]>>(DFRACT_BITS-1)));
|
quantize.cpp | 125 INT tabIndex = (INT)(accu>>(DFRACT_BITS-2-MANT_DIGITS))&(~MANT_SIZE); 130 accu >>= fixMin(totalShift,DFRACT_BITS-1); 131 quaSpectrum[line] = (SHORT)(-((LONG)(k + accu) >> (DFRACT_BITS-1-16))); 138 INT tabIndex = (INT)(accu>>(DFRACT_BITS-2-MANT_DIGITS))&(~MANT_SIZE); 143 accu >>= fixMin(totalShift,DFRACT_BITS-1); 144 quaSpectrum[line] = (SHORT)((LONG)(k + accu) >> (DFRACT_BITS-1-16)); 185 specExp = (DFRACT_BITS-1) - ex; 189 tabIndex = (INT)(accu>>(DFRACT_BITS-2-MANT_DIGITS))&(~MANT_SIZE); 219 specExp = (DFRACT_BITS-1) - ex; 223 tabIndex = (INT)(accu>>(DFRACT_BITS-2-MANT_DIGITS))&(~MANT_SIZE) [all...] |
psy_configuration.cpp | 323 x1 = fMult(center_freq, FOURBY3EM4); /* q13 * q43 - (DFRACT_BITS-1) = q25 */ 324 x2 = fMult(center_freq, PZZZ76) << 2; /* q13 * q41 - (DFRACT_BITS-1) + 2 = q25 */ 329 /* q25 (q26 * q30 - (DFRACT_BITS-1)) + q25 (q27 * q30 * q30) */ 363 mask_factor = fPow(ten_fix, DFRACT_BITS-1-ten_e, -dbVal_fix, DFRACT_BITS-1-dbVal_e, &q_msk); 364 q_msk = fixMin(DFRACT_BITS-1,fixMax(-(DFRACT_BITS-1),q_msk)); 487 qbfac = DFRACT_BITS-1-qbfac; 490 qperwin = DFRACT_BITS-1-qperwin; 491 pePerWindow = fMult(pePerWindow, BITS2PEFAC); qperwin = qperwin + 30 - (DFRACT_BITS-1) [all...] |
band_nrg.cpp | 115 sfbMaxScaleSpec[i] = (maxSpc==(FIXP_DBL)0) ? (DFRACT_BITS-2) : CntLeadingZeros(maxSpc)-1; 163 scale = fixMax(2*(minSpecShift-scale),-(DFRACT_BITS-1)); 223 INT scale = fixMin((sfbMaxScaleSpec[i]-4)<<1,(DFRACT_BITS-1)); 237 INT scale = fixMin( ((sfbMaxScaleSpec[i]-4)+shiftBits)<<1, (DFRACT_BITS-1)); 276 scale = fixMax(fixMin(scale,(DFRACT_BITS-1)),-(DFRACT_BITS-1)); 355 scale = fixMin(scale, (DFRACT_BITS-1));
|
intensity.cpp | 187 sfbMaxScale = (maxSpc==FL2FXCONST_DBL(0.0)) ? (DFRACT_BITS-2) : CntLeadingZeros(maxSpc)-1; 317 invOverallLoudnessSF = fixMin(fixMax(invOverallLoudnessSF,-(DFRACT_BITS-1)),DFRACT_BITS-1); 389 channelCorrSF = fixMin(fixMax(( channelCorrSF + ((sL+sR)>>1)),-(DFRACT_BITS-1)),DFRACT_BITS-1); 691 s2 = fixMin(fixMax(s2,-(DFRACT_BITS-1)),(DFRACT_BITS-1)); 725 s2 = fixMin(fixMax(s2,-(DFRACT_BITS-1)),(DFRACT_BITS-1)); 745 isScale[sfb+sfboffs] = (INT)(((realIsScale[sfb+sfboffs]>>1)-FL2FXCONST_DBL(0.5f/(1<<(REAL_SCALE_SF+LD_DATA_SHIFT+1))))>>(DFRACT_BITS-1-REAL_SCALE_SF-LD_DATA_SHIFT-1)) + 1 [all...] |
transform.cpp | 177 #if SAMPLE_BITS == DFRACT_BITS /* SPC_BITS and DFRACT_BITS should be equal. */ 180 mdctData[(tl/2)+i] = - (FIXP_DBL) timeData[tl-i-1] << (DFRACT_BITS - SAMPLE_BITS - 1); 194 #if SAMPLE_BITS == DFRACT_BITS /* This should be SPC_BITS instead of DFRACT_BITS. */ 197 mdctData[(tl/2)-1-i] = - (FIXP_DBL) timeData[tl+i] << (DFRACT_BITS - SAMPLE_BITS - 1);
|
/external/aac/libFDK/src/ |
scale.cpp | 131 scalefactor = fixmin_I(scalefactor,(INT)(DFRACT_BITS-1)); 144 INT negScalefactor = fixmin_I(-scalefactor,(INT)DFRACT_BITS-1); 181 scalefactor = fixmin_I(scalefactor,(INT)DFRACT_BITS-1); 194 INT negScalefactor = fixmin_I(-scalefactor,(INT)DFRACT_BITS-1); 240 scalefactor = fixmin_I(scalefactor,(INT)DFRACT_BITS-1); 253 INT negScalefactor = fixmin_I(-scalefactor,(INT)DFRACT_BITS-1); 293 scalefactor = fixmin_I(scalefactor,(INT)DFRACT_BITS-1); 307 INT negScalefactor = fixmin_I(-scalefactor,(INT)DFRACT_BITS-1); 359 return fixmax_I((INT)0,(INT)(fixnormz_D((INT)maxVal) - (INT)1 - (INT)(DFRACT_BITS - SHORT_BITS))); 385 return fixmax_I((INT)0,(INT)(fixnormz_D((INT)maxVal) - (INT)1 - (INT)(DFRACT_BITS - SAMPLE_BITS))) [all...] |
FDK_trigFcts.cpp | 205 if (stf > 0) q = q << (INT)fMin( stf,DFRACT_BITS-1); 206 else q = q >> (INT)fMin(-stf,DFRACT_BITS-1); 261 temp = fPow2(x); // q25 * q25 - (DFRACT_BITS-1) = q19 262 temp = fMult(temp, ONEBY3P56); // q19 * q31 - (DFRACT_BITS-1) = q19 265 result = scaleValue(result, (Q_ATANOUT-Q_ATANINP+19-DFRACT_BITS+1) + res_e ); 279 temp = fPow2Div2(x); // q25 * q25 - (DFRACT_BITS-1) - 1 = q18 282 result = scaleValue(result, (Q_ATANOUT-Q_ATANINP+18-DFRACT_BITS+1) + res_e );
|
fixpoint_math.cpp | 445 reg1 = invSqrtTab[ (INT)(val>>(DFRACT_BITS-1-(SQRT_BITS+1))) & SQRT_BITS_MASK ]; 511 return (FIXP_DBL)(div << (DFRACT_BITS - count)); 582 if(res == (FIXP_DBL)(1<<(DFRACT_BITS-2)) && e == 1) 641 INT exp_bits = DFRACT_BITS-1 - exp_e; 693 result_e = fixMin(DFRACT_BITS-1,fixMax(-(DFRACT_BITS-1),result_e)); 768 return SATURATE_SHIFT(result_m, -result_e, DFRACT_BITS); 830 *result_e = DFRACT_BITS-1; 866 enorm = DFRACT_BITS - fNorm((FIXP_DBL)x_e); 868 result_m = (result_m >> (enorm-1)) + ((FIXP_DBL)x_e << (DFRACT_BITS-1-enorm)) [all...] |
/external/aac/libFDK/include/ |
FDK_trigFcts.h | 111 #define ATI_SF ((DFRACT_BITS-1)-Q_ATANINP) // 6 113 #define ATO_SF ((DFRACT_BITS-1)-Q_ATANOUT) // 1 ] -pi/2 .. pi/2 [ 117 #define AT2O_SF ((DFRACT_BITS-1)-Q_ATAN2OUT) // 2 ] -pi .. pi ] 194 *sine = (FIXP_DBL)((sl * ssign) << (DFRACT_BITS-FRACT_BITS)); 195 *cosine = (FIXP_DBL)((cl * csign) << (DFRACT_BITS-FRACT_BITS));
|
mdct.h | 99 #define MDCT_OUTPUT_SCALE (DFRACT_BITS-SAMPLE_BITS-MDCT_OUT_HEADROOM) 103 #if (SAMPLE_BITS == DFRACT_BITS)
|
qmf.h | 111 #define QFRACT_BITS DFRACT_BITS 124 #define QSS_BITS DFRACT_BITS
|
common_fix.h | 105 #define DFRACT_BITS 32 /* double precision */ 110 #if (SAMPLE_BITS == DFRACT_BITS) 119 #error SAMPLE_BITS different from FRACT_BITS or DFRACT_BITS not implemented! 128 #define MAX_SHIFT_DBL (DFRACT_BITS-1) /* maximum possible shift for FIXP_DBL values */ 132 #define DFRACT_FIX_SCALE ((INT64(1)<<(DFRACT_BITS-1))) 137 #define MAXVAL_DBL ((signed)0x7FFFFFFF) /* this has to be synchronized to DFRACT_BITS */ 138 #define MINVAL_DBL ((signed)0x80000000) /* this has to be synchronized to DFRACT_BITS */ 141 #define FX_DBL2FXCONST_SGL(val) ( ( ((((val) >> (DFRACT_BITS-FRACT_BITS-1)) + 1) > (((LONG)1<<FRACT_BITS)-1)) && ((LONG)(val) > 0) ) ? \ 142 (FIXP_SGL)(SHORT)(((LONG)1<<(FRACT_BITS-1))-1):(FIXP_SGL)(SHORT)((((val) >> (DFRACT_BITS-FRACT_BITS-1)) + 1) >> 1) ) 174 #define FX_ACC2FX_DBL(val) ((FIXP_DBL)((val)>>(ACCU_BITS-DFRACT_BITS))) [all...] |
fixpoint_math.h | 210 return result << (DFRACT_BITS-16); 219 FDK_ASSERT (count<=DFRACT_BITS-1); 233 return result << (DFRACT_BITS-count);
|
/external/aac/libSBRdec/src/ |
transcendent.h | 141 shiftAbs = (shiftAbs < DFRACT_BITS-1)? shiftAbs : DFRACT_BITS-1; 179 shiftAbs = (shiftAbs < DFRACT_BITS-1)? shiftAbs : DFRACT_BITS-1; 293 shift = (DFRACT_BITS - 2 - INV_TABLE_BITS - preShift); 348 *mantissa = (shift>=0) ? result << (INT)fixMin(DFRACT_BITS-1,shift) 349 : result >> (INT)fixMin(DFRACT_BITS-1,-shift);
|
env_calc.cpp | [all...] |
/external/aac/libAACdec/src/ |
conceal_types.h | 108 #define CNCL_FRACT_BITS DFRACT_BITS
|
/external/aac/libSBRenc/src/ |
sbr_misc.cpp | 256 if ( denom > (tmp >> fixMin(shiftNum+shiftScale-1,(DFRACT_BITS-1))) ) { 259 shiftCommon = fixMin((shiftNum-shiftDenom+shiftScale-1),(DFRACT_BITS-1));
|
resampler.cpp | 382 input = ((FIXP_DBL)pInput[n*inStride]) << (DFRACT_BITS-SAMPLE_BITS-BIQUAD_SCALE); 448 states[i][s2] = (FIXP_BQS)(LONG)((state0 + (FIXP_DBL)(1<<(DFRACT_BITS-FRACT_BITS-2))) >> (DFRACT_BITS-FRACT_BITS-1)); 466 output = (INT_PCM) SATURATE_RIGHT_SHIFT(y+(FIXP_DBL)(1<<(DFRACT_BITS-SAMPLE_BITS-BIQUAD_SCALE-1)), DFRACT_BITS-SAMPLE_BITS-BIQUAD_SCALE, SAMPLE_BITS); 467 //output = (INT_PCM) SATURATE_RIGHT_SHIFT(y, DFRACT_BITS-SAMPLE_BITS-BIQUAD_SCALE, SAMPLE_BITS);
|
tran_det.cpp | 164 (FIXP_DBL)MAXVAL_DBL >> fixMin(scaleEnergies[0],(DFRACT_BITS-1)) ); 208 nrgTotal = ( (accu1 >> fixMin(scaleEnergies[0],(DFRACT_BITS-1))) 209 + (accu2 >> fixMin(scaleEnergies[1],(DFRACT_BITS-1))) ) << (2); 267 if ((scaleEnergies[0]-1) > (DFRACT_BITS-1) ) 393 scaleFactor0 = fixMin((scaleEnergies[0]-commonScale), (DFRACT_BITS-1)); 394 scaleFactor1 = fixMin((scaleEnergies[1]-commonScale), (DFRACT_BITS-1)); 439 temp = ( commonScale<=(DFRACT_BITS-1) )
|
env_est.cpp | 133 scale = DFRACT_BITS; 139 if (scale >= DFRACT_BITS-1) { 226 scale = DFRACT_BITS; 232 if (scale >= DFRACT_BITS-1) { 357 /* tmp = tmp >> (DFRACT_BITS-1-6); */ /* conversion to integer happens here */ 359 tmp = ((((INT)NoiseLevels[i])>>(DFRACT_BITS-1-LD_DATA_SHIFT)) ); /* conversion to integer */ 404 temp1 = temp1 << (DFRACT_BITS-1-LD_DATA_SHIFT-1); /* INT to fract conversion of result, if input of CalcInvLdData is positiv */ 412 temp2 = temp2 << (DFRACT_BITS-1-LD_DATA_SHIFT-1); /* INT to fract conversion of result, if input of CalcInvLdData is positiv */ 464 if(ui-li==0) dynScale = DFRACT_BITS-1; 466 dynScale = CalcLdInt(ui-li)>>(DFRACT_BITS-1-LD_DATA_SHIFT) [all...] |
/external/aac/libPCMutils/src/ |
pcmutils_lib.cpp | 894 (INT_PCM)SATURATE_RIGHT_SHIFT(fMult((FIXP_PCM)*pInLF, flev), DFRACT_BITS-SAMPLE_BITS, SAMPLE_BITS); 904 (INT_PCM)SATURATE_RIGHT_SHIFT(fMult((FIXP_PCM)*pInRF, flev), DFRACT_BITS-SAMPLE_BITS, SAMPLE_BITS); 937 *pOutL = (INT_PCM)SATURATE_RIGHT_SHIFT((FX_PCM2FX_DBL((FIXP_PCM)*pInLF)>>1)+tCF, DFRACT_BITS-SAMPLE_BITS-1, SAMPLE_BITS); [all...] |
/external/aac/libFDK/src/arm/ |
scale_arm.cpp | 110 shift = fixmin_I(shift,(INT)DFRACT_BITS-1);
|