32 dst[i] = src[i] * mul;
40 for (i = 0; i <
len; i += 8)
45 return av_clip_int16(
lrintf(*src));
56 long len,
int channels)
65 for(c=0; c<channels; c++)
66 for(i=0, j=c; i<
len; i++, j+=channels)
77 for (i = 0; i <
len; i++) {
79 dst[2*i+1] = src[1][i];
81 }
else if (channels == 1 && len < INT_MAX /
sizeof(
float)) {
82 memcpy(dst, src[0], len *
sizeof(
float));
84 for (c = 0; c < channels; c++)
85 for (i = 0, j = c; i <
len; i++, j += channels)
109 for(i=0; i<
len; i++){
110 dst[2*i] = src[0][i] / 32768.0f;
111 dst[2*i+1] = src[1][i] / 32768.0f;
114 for(c=0; c<channels; c++)
115 for(i=0, j=c; i<
len; i++, j+=channels)
116 dst[j] = src[c][i] / 32768.0f;
124 for(i=0; i<
len; i++){
125 dst[2*i] = src[0][i];
126 dst[2*i+1] = src[1][i];
129 for(c=0; c<channels; c++)
130 for(i=0, j=c; i<
len; i++, j+=channels)