Searched refs:clamp16 (Results 1 – 8 of 8) sorted by relevance
/frameworks/av/media/libeffects/downmix/ |
D | EffectDownmix.c | 298 pDst[0] = clamp16(pDst[0] + pSrc[0]); in Downmix_Process() 299 pDst[1] = clamp16(pDst[1] + pSrc[1]); in Downmix_Process() 795 pDst[0] = clamp16(pDst[0] + ((pSrc[0] + pSrc[2]) >> 1)); in Downmix_foldFromQuad() 797 pDst[1] = clamp16(pDst[1] + ((pSrc[1] + pSrc[3]) >> 1)); in Downmix_foldFromQuad() 805 pDst[0] = clamp16((pSrc[0] + pSrc[2]) >> 1); in Downmix_foldFromQuad() 807 pDst[1] = clamp16((pSrc[1] + pSrc[3]) >> 1); in Downmix_foldFromQuad() 853 pDst[0] = clamp16(pDst[0] + (lt >> 13)); in Downmix_foldFrom5Point1() 854 pDst[1] = clamp16(pDst[1] + (rt >> 13)); in Downmix_foldFrom5Point1() 869 pDst[0] = clamp16(lt >> 13); // differs from when accumulate is true above in Downmix_foldFrom5Point1() 870 pDst[1] = clamp16(rt >> 13); // differs from when accumulate is true above in Downmix_foldFrom5Point1() [all …]
|
/frameworks/av/services/audioflinger/ |
D | AudioMixerOps.h | 118 return clamp16(MixMul<int32_t, int16_t, int16_t>(value, volume) >> 12); 123 return clamp16(MixMul<int32_t, int32_t, int16_t>(value, volume) >> 12); 128 return clamp16(MixMul<int32_t, int16_t, int32_t>(value, volume) >> 12); 133 return clamp16(MixMul<int32_t, int32_t, int32_t>(value, volume) >> 12);
|
D | AudioMixer.cpp | 1658 l = clamp16(l); in process__OneTrack16BitsStereoNoResampling() 1659 r = clamp16(r); in process__OneTrack16BitsStereoNoResampling()
|
D | Effects.cpp | 304 out[i] = clamp16((int32_t)out[i] + (int32_t)in[i]); in process()
|
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/ |
D | EffectReverb.cpp | 388 static inline int16_t clamp16(int32_t sample) in clamp16() function 484 OutFrames16[i] = clamp16(pContext->OutFrames32[i]>>8); in process() 488 OutFrames16[i] = clamp16((pContext->OutFrames32[i]>>8) + (LVM_INT32)pIn[i]); in process() 502 clamp16((LVM_INT32)((vl >> 16) * OutFrames16[2*i]) >> 12); in process() 504 clamp16((LVM_INT32)((vr >> 16) * OutFrames16[2*i+1]) >> 12); in process() 517 clamp16((LVM_INT32)(pContext->leftVolume * OutFrames16[2*i]) >> 12); in process() 519 clamp16((LVM_INT32)(pContext->rightVolume * OutFrames16[2*i+1]) >> 12); in process() 537 pOut[i] = clamp16((int32_t)pOut[i] + (int32_t)OutFrames16[i]); in process()
|
/frameworks/av/media/libeffects/loudness/ |
D | EffectLoudnessEnhancer.cpp | 79 static inline int16_t clamp16(int32_t sample) in clamp16() function 298 outBuffer->s16[i] = clamp16(outBuffer->s16[i] + inBuffer->s16[i]); in LE_process()
|
/frameworks/av/media/libeffects/visualizer/ |
D | EffectVisualizer.cpp | 300 static inline int16_t clamp16(int32_t sample) in clamp16() function 401 outBuffer->s16[i] = clamp16(outBuffer->s16[i] + inBuffer->s16[i]); in Visualizer_process()
|
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/ |
D | EffectBundle.cpp | 56 static inline int16_t clamp16(int32_t sample) in clamp16() function 764 pOut[i] = clamp16((LVM_INT32)pOut[i] + (LVM_INT32)pOutTmp[i]); in LvmBundle_process() 2985 clamp16((LVM_INT32)outBuffer->s16[i] + (LVM_INT32)inBuffer->s16[i]); in Effect_process()
|