Home
last modified time | relevance | path

Searched refs:SAMPLE_BITS (Results 1 – 15 of 15) sorted by relevance

/external/aac/libAACdec/src/
Dldfiltbank.cpp107 scale = (DFRACT_BITS - SAMPLE_BITS) - LDFB_HEADROOM; in multE2_DinvF_fdk()
120 #if (SAMPLE_BITS <= 16) in multE2_DinvF_fdk()
122 output[(N*3/4-1-i)*stride] = (INT_PCM)SATURATE_RIGHT_SHIFT(tmp, -WTS1-1 + scale, SAMPLE_BITS); in multE2_DinvF_fdk()
125 output[(N*3/4-1-i)*stride] = (INT_PCM)SATURATE_LEFT_SHIFT(tmp, WTS1+1 - scale, SAMPLE_BITS); in multE2_DinvF_fdk()
144 #if (SAMPLE_BITS <= 16) in multE2_DinvF_fdk()
146 output[(i-N/4)*stride] = (INT_PCM)SATURATE_RIGHT_SHIFT(tmp0, -WTS0-1 + scale, SAMPLE_BITS); in multE2_DinvF_fdk()
147 output[(N*3/4-1-i)*stride] = (INT_PCM)SATURATE_RIGHT_SHIFT(tmp1, -WTS1-1 + scale, SAMPLE_BITS); in multE2_DinvF_fdk()
150 output[(i-N/4)*stride] = (INT_PCM)SATURATE_LEFT_SHIFT(tmp0, WTS0+1 - scale, SAMPLE_BITS); in multE2_DinvF_fdk()
151 output[(N*3/4-1-i)*stride] = (INT_PCM)SATURATE_LEFT_SHIFT(tmp1, WTS1+1 - scale, SAMPLE_BITS); in multE2_DinvF_fdk()
162 #if (SAMPLE_BITS <= 16) in multE2_DinvF_fdk()
[all …]
/external/aac/libFDK/include/
Dmdct.h99 #define MDCT_OUTPUT_SCALE (DFRACT_BITS-SAMPLE_BITS-MDCT_OUT_HEADROOM)
103 #if (SAMPLE_BITS == DFRACT_BITS)
104 #define IMDCT_SCALE(x) (INT_PCM)SATURATE_LEFT_SHIFT(x, -MDCT_OUTPUT_SCALE, SAMPLE_BITS)
106 #define IMDCT_SCALE(x) (INT_PCM)SATURATE_RIGHT_SHIFT(x, MDCT_OUTPUT_SCALE, SAMPLE_BITS)
Dscale.h243 #define SATURATE_INT_PCM_RIGHT_SHIFT(src, scale) SATURATE_RIGHT_SHIFT(src, scale, SAMPLE_BITS)
247 #define SATURATE_INT_PCM_LEFT_SHIFT(src, scale) SATURATE_LEFT_SHIFT(src, scale, SAMPLE_BITS)
Dcommon_fix.h109 #if defined(SAMPLE_BITS)
110 #if (SAMPLE_BITS == DFRACT_BITS)
114 #elif (SAMPLE_BITS == FRACT_BITS)
119 #error SAMPLE_BITS different from FRACT_BITS or DFRACT_BITS not implemented!
Dqmf.h117 #define QAS_BITS SAMPLE_BITS
/external/aac/libFDK/src/
Dqmf.cpp191 int scale = ((DFRACT_BITS-SAMPLE_BITS)-1-qmf->outScalefactor); in qmfSynPrototypeFirSlot()
196 …FDK_ASSERT(SAMPLE_BITS-1-qmf->outScalefactor >= 0); // (DFRACT_BITS-SAMPLE_BITS)-1-qmf->outScale… in qmfSynPrototypeFirSlot()
209 #if SAMPLE_BITS > 16 in qmfSynPrototypeFirSlot()
210 tmp = (INT_PCM)(SATURATE_SHIFT(fAbs(Are), scale, SAMPLE_BITS)); in qmfSynPrototypeFirSlot()
212 tmp = (INT_PCM)(SATURATE_RIGHT_SHIFT(fAbs(Are), scale, SAMPLE_BITS)); in qmfSynPrototypeFirSlot()
259 int scale = ((DFRACT_BITS-SAMPLE_BITS)-1-qmf->outScalefactor); in qmfSynPrototypeFirSlot_NonSymmetric()
264 …FDK_ASSERT(SAMPLE_BITS-1-qmf->outScalefactor >= 0); // (DFRACT_BITS-SAMPLE_BITS)-1-qmf->outScale… in qmfSynPrototypeFirSlot_NonSymmetric()
274 #if SAMPLE_BITS > 16 in qmfSynPrototypeFirSlot_NonSymmetric()
275 tmp = (INT_PCM)(SATURATE_SHIFT(fAbs(Are), scale, SAMPLE_BITS)); in qmfSynPrototypeFirSlot_NonSymmetric()
277 tmp = (INT_PCM)(SATURATE_RIGHT_SHIFT(fAbs(Are), scale, SAMPLE_BITS)); in qmfSynPrototypeFirSlot_NonSymmetric()
[all …]
Dscale.cpp385 …return fixmax_I((INT)0,(INT)(fixnormz_D((INT)maxVal) - (INT)1 - (INT)(DFRACT_BITS - SAMPLE_BITS))); in getScalefactorPCM()
/external/aac/libSBRenc/src/
Dresampler.cpp381 #if (SAMPLE_BITS == 16) in AdvanceFilter()
382 input = ((FIXP_DBL)pInput[n*inStride]) << (DFRACT_BITS-SAMPLE_BITS-BIQUAD_SCALE); in AdvanceFilter()
383 #elif (SAMPLE_BITS == 32) in AdvanceFilter()
465 #if (SAMPLE_BITS == 16)
466 …T_SHIFT(y+(FIXP_DBL)(1<<(DFRACT_BITS-SAMPLE_BITS-BIQUAD_SCALE-1)), DFRACT_BITS-SAMPLE_BITS-BIQUAD_…
469 output = SATURATE_LEFT_SHIFT(y, BIQUAD_SCALE, SAMPLE_BITS);
/external/aac/libFDK/src/arm/
Dqmf_arm.cpp122 #if (SAMPLE_BITS == 16)
416 #if ( defined(__ARM_ARCH_5TE__) && (SAMPLE_BITS == 16) ) && !defined(QMF_TABLE_FULL)
542 int scale = ((DFRACT_BITS-SAMPLE_BITS)-1-qmf->outScalefactor); in qmfSynPrototypeFirSlot2()
548 …FDK_ASSERT(SAMPLE_BITS-1-qmf->outScalefactor >= 0); // (DFRACT_BITS-SAMPLE_BITS)-1-qmf->outScale… in qmfSynPrototypeFirSlot2()
590 #if (SAMPLE_BITS == 16) in qmfSynPrototypeFirSlot2()
621 #if (SAMPLE_BITS == 16) in qmfSynPrototypeFirSlot2()
632 #if (SAMPLE_BITS == 16) in qmfSynPrototypeFirSlot2()
646 #if (SAMPLE_BITS == 16) in qmfSynPrototypeFirSlot2()
657 #if (SAMPLE_BITS == 16) in qmfSynPrototypeFirSlot2()
675 #if (SAMPLE_BITS == 16) in qmfSynPrototypeFirSlot2()
[all …]
/external/aac/libAACenc/src/
Dtransform.cpp177 #if SAMPLE_BITS == DFRACT_BITS /* SPC_BITS and DFRACT_BITS should be equal. */ in FDKaacEnc_Transform_Real()
180 mdctData[(tl/2)+i] = - (FIXP_DBL) timeData[tl-i-1] << (DFRACT_BITS - SAMPLE_BITS - 1); in FDKaacEnc_Transform_Real()
194 #if SAMPLE_BITS == DFRACT_BITS /* This should be SPC_BITS instead of DFRACT_BITS. */ in FDKaacEnc_Transform_Real()
197 mdctData[(tl/2)-1-i] = - (FIXP_DBL) timeData[tl+i] << (DFRACT_BITS - SAMPLE_BITS - 1); in FDKaacEnc_Transform_Real()
Dblock_switch.cpp351 #if SAMPLE_BITS == DFRACT_BITS in FDKaacEnc_CalcWindowEnergy()
354 tempUnfiltered = (FIXP_DBL) *pTimeSignal++ << (DFRACT_BITS-SAMPLE_BITS-1); in FDKaacEnc_CalcWindowEnergy()
/external/aac/libFDK/include/arm/
Dscale.h102 : "r"(src>>scale), "M"(SAMPLE_BITS) in shiftRightSat()
117 : "r"(src<<scale), "M"(SAMPLE_BITS) in shiftLeftSat()
/external/aac/libSYS/include/
Dmachine_type.h202 #define SAMPLE_BITS 16 macro
203 #define SAMPLE_MAX (((LONG)1<<(SAMPLE_BITS-1))-1)
/external/aac/libPCMutils/src/
Dpcmutils_lib.cpp2132 #if (SAMPLE_BITS == DFRACT_BITS) in pcmDmx_ApplyFrame()
2133 *pOutPcm[outCh] = (INT_PCM)SATURATE_LEFT_SHIFT(tOut[outCh], dmxScale, SAMPLE_BITS); in pcmDmx_ApplyFrame()
2135 …outCh] = (INT_PCM)SATURATE_RIGHT_SHIFT(tOut[outCh], DFRACT_BITS-SAMPLE_BITS-dmxScale, SAMPLE_BITS); in pcmDmx_ApplyFrame()
2392 …HT_SHIFT(fMult((FIXP_PCM)*pInPcm[LEFT_FRONT_CHANNEL], flev), DFRACT_BITS-SAMPLE_BITS, SAMPLE_BITS); in pcmDmx_ApplyFrame()
2401 …T_SHIFT(fMult((FIXP_PCM)*pInPcm[RIGHT_FRONT_CHANNEL], flev), DFRACT_BITS-SAMPLE_BITS, SAMPLE_BITS); in pcmDmx_ApplyFrame()
/external/aac/libSBRdec/src/
Dlpp_tran.cpp201 #define QMFOUT_EXP ((SAMPLE_BITS-15)-sbrScaleFactor->lb_scale)