30 dst[i] = src[i] * mul;
34 return av_clip_int16(
lrintf(*src));
45 long len,
int channels)
54 for(c=0; c<channels; c++)
55 for(i=0, j=c; i<
len; i++, j+=channels)
66 for (i = 0; i <
len; i++) {
68 dst[2*i+1] = src[1][i];
70 }
else if (channels == 1 && len < INT_MAX /
sizeof(
float)) {
71 memcpy(dst, src[0], len *
sizeof(
float));
73 for (c = 0; c < channels; c++)
74 for (i = 0, j = c; i <
len; i++, j += channels)
98 dst[2*i] = src[0][i] / 32768.0f;
99 dst[2*i+1] = src[1][i] / 32768.0f;
102 for(c=0; c<channels; c++)
103 for(i=0, j=c; i<
len; i++, j+=channels)
104 dst[j] = src[c][i] / 32768.0f;
112 for(i=0; i<
len; i++){
113 dst[2*i] = src[0][i];
114 dst[2*i+1] = src[1][i];
117 for(c=0; c<channels; c++)
118 for(i=0, j=c; i<
len; i++, j+=channels)