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

/frameworks/av/media/libeffects/downmix/
H A DEffectDownmix.c309 pDst[0] = clamp16(pDst[0] + pSrc[0]);
310 pDst[1] = clamp16(pDst[1] + pSrc[1]);
806 pDst[0] = clamp16(pDst[0] + ((pSrc[0] + pSrc[2]) >> 1));
808 pDst[1] = clamp16(pDst[1] + ((pSrc[1] + pSrc[3]) >> 1));
816 pDst[0] = clamp16((pSrc[0] + pSrc[2]) >> 1);
818 pDst[1] = clamp16((pSrc[1] + pSrc[3]) >> 1);
861 pDst[0] = clamp16(pDst[0] + (lt >> 13));
862 pDst[1] = clamp16(pDst[1] + (rt >> 13));
876 pDst[0] = clamp16(lt >> 13); // differs from when accumulate is true above
877 pDst[1] = clamp16(r
[all...]
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
H A DEffectReverb.cpp386 static inline int16_t clamp16(int32_t sample) function in namespace:android::__anon471
482 OutFrames16[i] = clamp16(pContext->OutFrames32[i]>>8);
486 OutFrames16[i] = clamp16((pContext->OutFrames32[i]>>8) + (LVM_INT32)pIn[i]);
500 clamp16((LVM_INT32)((vl >> 16) * OutFrames16[2*i]) >> 12);
502 clamp16((LVM_INT32)((vr >> 16) * OutFrames16[2*i+1]) >> 12);
515 clamp16((LVM_INT32)(pContext->leftVolume * OutFrames16[2*i]) >> 12);
517 clamp16((LVM_INT32)(pContext->rightVolume * OutFrames16[2*i+1]) >> 12);
535 pOut[i] = clamp16((int32_t)pOut[i] + (int32_t)OutFrames16[i]);
/frameworks/av/media/libeffects/visualizer/
H A DEffectVisualizer.cpp250 static inline int16_t clamp16(int32_t sample) function
327 outBuffer->s16[i] = clamp16(outBuffer->s16[i] + inBuffer->s16[i]);
/frameworks/av/services/audioflinger/
H A DAudioMixer.cpp1323 l = clamp16(l);
1324 r = clamp16(r);
1427 l = clamp16(l);
1428 r = clamp16(r);
H A DEffects.cpp298 out[i] = clamp16((int32_t)out[i] + (int32_t)in[i]);
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
H A DEffectBundle.cpp53 static inline int16_t clamp16(int32_t sample) function
758 pOut[i] = clamp16((LVM_INT32)pOut[i] + (LVM_INT32)pOutTmp[i]);
2703 clamp16((LVM_INT32)outBuffer->s16[i] + (LVM_INT32)inBuffer->s16[i]);

Completed in 441 milliseconds