Lines Matching refs:pDst
273 int16_t *pSrc, *pDst;
297 pDst = outBuffer->s16;
309 pDst[0] = clamp16(pDst[0] + pSrc[0]);
310 pDst[1] = clamp16(pDst[1] + pSrc[1]);
312 pDst += 2;
317 pDst[0] = pSrc[0];
318 pDst[1] = pSrc[1];
320 pDst += 2;
330 downmixInputChannelMask, pSrc, pDst, numFrames, accumulate)) {
340 Downmix_foldFromQuad(pSrc, pDst, numFrames, accumulate);
343 Downmix_foldFromSurround(pSrc, pDst, numFrames, accumulate);
347 Downmix_foldFrom5Point1(pSrc, pDst, numFrames, accumulate);
350 Downmix_foldFrom7Point1(pSrc, pDst, numFrames, accumulate);
354 downmixInputChannelMask, pSrc, pDst, numFrames, accumulate)) {
790 * accumulate whether to mix (when true) the result of the downmix with the contents of pDst,
791 * or overwrite pDst (when false)
794 * pDst downmixed stereo audio samples
798 void Downmix_foldFromQuad(int16_t *pSrc, int16_t*pDst, size_t numFrames, bool accumulate) {
806 pDst[0] = clamp16(pDst[0] + ((pSrc[0] + pSrc[2]) >> 1));
808 pDst[1] = clamp16(pDst[1] + ((pSrc[1] + pSrc[3]) >> 1));
810 pDst += 2;
813 } else { // same code as above but without adding and clamping pDst[i] to itself
816 pDst[0] = clamp16((pSrc[0] + pSrc[2]) >> 1);
818 pDst[1] = clamp16((pSrc[1] + pSrc[3]) >> 1);
820 pDst += 2;
836 * accumulate whether to mix (when true) the result of the downmix with the contents of pDst,
837 * or overwrite pDst (when false)
840 * pDst downmixed stereo audio samples
844 void Downmix_foldFromSurround(int16_t *pSrc, int16_t*pDst, size_t numFrames, bool accumulate) {
861 pDst[0] = clamp16(pDst[0] + (lt >> 13));
862 pDst[1] = clamp16(pDst[1] + (rt >> 13));
864 pDst += 2;
867 } else { // same code as above but without adding and clamping pDst[i] to itself
876 pDst[0] = clamp16(lt >> 13); // differs from when accumulate is true above
877 pDst[1] = clamp16(rt >> 13); // differs from when accumulate is true above
879 pDst += 2;
895 * accumulate whether to mix (when true) the result of the downmix with the contents of pDst,
896 * or overwrite pDst (when false)
899 * pDst downmixed stereo audio samples
903 void Downmix_foldFrom5Point1(int16_t *pSrc, int16_t*pDst, size_t numFrames, bool accumulate) {
923 pDst[0] = clamp16(pDst[0] + (lt >> 13));
924 pDst[1] = clamp16(pDst[1] + (rt >> 13));
926 pDst += 2;
929 } else { // same code as above but without adding and clamping pDst[i] to itself
939 pDst[0] = clamp16(lt >> 13); // differs from when accumulate is true above
940 pDst[1] = clamp16(rt >> 13); // differs from when accumulate is true above
942 pDst += 2;
958 * accumulate whether to mix (when true) the result of the downmix with the contents of pDst,
959 * or overwrite pDst (when false)
962 * pDst downmixed stereo audio samples
966 void Downmix_foldFrom7Point1(int16_t *pSrc, int16_t*pDst, size_t numFrames, bool accumulate) {
988 pDst[0] = clamp16(pDst[0] + (lt >> 13));
989 pDst[1] = clamp16(pDst[1] + (rt >> 13));
991 pDst += 2;
994 } else { // same code as above but without adding and clamping pDst[i] to itself
1004 pDst[0] = clamp16(lt >> 13); // differs from when accumulate is true above
1005 pDst[1] = clamp16(rt >> 13); // differs from when accumulate is true above
1007 pDst += 2;
1030 * accumulate whether to mix (when true) the result of the downmix with the contents of pDst,
1031 * or overwrite pDst (when false)
1034 * pDst downmixed stereo audio samples
1041 uint32_t mask, int16_t *pSrc, int16_t*pDst, size_t numFrames, bool accumulate) {
1114 pDst[0] = clamp16(pDst[0] + (lt >> 13));
1115 pDst[1] = clamp16(pDst[1] + (rt >> 13));
1117 pDst += 2;
1143 pDst[0] = clamp16(lt >> 13); // differs from when accumulate is true above
1144 pDst[1] = clamp16(rt >> 13); // differs from when accumulate is true above
1146 pDst += 2;