Searched refs:clamp16 (Results 1 - 8 of 8) sorted by relevance

/frameworks/av/media/libeffects/downmix/
H A DEffectDownmix.c347 pDst[0] = clamp16(pDst[0] + pSrc[0]);
348 pDst[1] = clamp16(pDst[1] + pSrc[1]);
950 pDst[0] = clamp16(pDst[0] + ((pSrc[0] + pSrc[2]) >> 1));
952 pDst[1] = clamp16(pDst[1] + ((pSrc[1] + pSrc[3]) >> 1));
960 pDst[0] = clamp16((pSrc[0] + pSrc[2]) >> 1);
962 pDst[1] = clamp16((pSrc[1] + pSrc[3]) >> 1);
1037 pDst[0] = clamp16(pDst[0] + (lt >> 13));
1038 pDst[1] = clamp16(pDst[1] + (rt >> 13));
1053 pDst[0] = clamp16(lt >> 13); // differs from when accumulate is true above
1054 pDst[1] = clamp16(r
[all...]
/frameworks/av/media/libaudioprocessing/
H A DAudioMixerOps.h118 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);
H A DAudioMixer.cpp1656 l = clamp16(l);
1657 r = clamp16(r);
/frameworks/av/media/libeffects/loudness/
H A DEffectLoudnessEnhancer.cpp83 static inline int16_t clamp16(int32_t sample) function
301 outBuffer->s16[i] = clamp16(outBuffer->s16[i] + inBuffer->s16[i]);
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
H A DEffectReverb.cpp448 static inline int16_t clamp16(int32_t sample) function in namespace:android::__anon336
592 OutFrames16[i] = clamp16(pContext->OutFrames32[i]>>8);
606 OutFrames16[i] = clamp16((pContext->OutFrames32[i]>>8) + (LVM_INT32)pIn[i]);
620 clamp16((LVM_INT32)((vl >> 16) * OutFrames16[2*i]) >> 12);
622 clamp16((LVM_INT32)((vr >> 16) * OutFrames16[2*i+1]) >> 12);
635 clamp16((LVM_INT32)(pContext->leftVolume * OutFrames16[2*i]) >> 12);
637 clamp16((LVM_INT32)(pContext->rightVolume * OutFrames16[2*i+1]) >> 12);
655 pOut[i] = clamp16((int32_t)pOut[i] + (int32_t)OutFrames16[i]);
/frameworks/av/media/libeffects/visualizer/
H A DEffectVisualizer.cpp304 static inline int16_t clamp16(int32_t sample) function
405 outBuffer->s16[i] = clamp16(outBuffer->s16[i] + inBuffer->s16[i]);
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
H A DEffectBundle.cpp67 static inline int16_t clamp16(int32_t sample) function
882 pOut[i] = clamp16((LVM_INT32)pOut[i] + (LVM_INT32)pOutTmp[i]);
940 pOut[i] = clamp16((LVM_INT32)pOut[i] + (LVM_INT32)pOutTmp[i]);
3371 clamp16((LVM_INT32)outBuffer->s16[i] + (LVM_INT32)inBuffer->s16[i]);
/frameworks/av/services/audioflinger/
H A DEffects.cpp307 out[i] = clamp16((int32_t)out[i] + (int32_t)in[i]);
336 out[i] = clamp16((int32_t)out[i] + (int32_t)in[i]);

Completed in 1356 milliseconds