Lines Matching refs:dst
36 static void remap_mono_to_stereo_s16ne_c(pa_remap_t *m, int16_t *dst, const int16_t *src, unsigned … in remap_mono_to_stereo_s16ne_c() argument
40 dst[0] = dst[1] = src[0]; in remap_mono_to_stereo_s16ne_c()
41 dst[2] = dst[3] = src[1]; in remap_mono_to_stereo_s16ne_c()
42 dst[4] = dst[5] = src[2]; in remap_mono_to_stereo_s16ne_c()
43 dst[6] = dst[7] = src[3]; in remap_mono_to_stereo_s16ne_c()
45 dst += 8; in remap_mono_to_stereo_s16ne_c()
48 dst[0] = dst[1] = src[0]; in remap_mono_to_stereo_s16ne_c()
50 dst += 2; in remap_mono_to_stereo_s16ne_c()
54 static void remap_mono_to_stereo_s32ne_c(pa_remap_t *m, int32_t *dst, const int32_t *src, unsigned … in remap_mono_to_stereo_s32ne_c() argument
58 dst[0] = dst[1] = src[0]; in remap_mono_to_stereo_s32ne_c()
59 dst[2] = dst[3] = src[1]; in remap_mono_to_stereo_s32ne_c()
60 dst[4] = dst[5] = src[2]; in remap_mono_to_stereo_s32ne_c()
61 dst[6] = dst[7] = src[3]; in remap_mono_to_stereo_s32ne_c()
63 dst += 8; in remap_mono_to_stereo_s32ne_c()
66 dst[0] = dst[1] = src[0]; in remap_mono_to_stereo_s32ne_c()
68 dst += 2; in remap_mono_to_stereo_s32ne_c()
72 static void remap_mono_to_stereo_float32ne_c(pa_remap_t *m, float *dst, const float *src, unsigned … in remap_mono_to_stereo_float32ne_c() argument
76 dst[0] = dst[1] = src[0]; in remap_mono_to_stereo_float32ne_c()
77 dst[2] = dst[3] = src[1]; in remap_mono_to_stereo_float32ne_c()
78 dst[4] = dst[5] = src[2]; in remap_mono_to_stereo_float32ne_c()
79 dst[6] = dst[7] = src[3]; in remap_mono_to_stereo_float32ne_c()
81 dst += 8; in remap_mono_to_stereo_float32ne_c()
84 dst[0] = dst[1] = src[0]; in remap_mono_to_stereo_float32ne_c()
86 dst += 2; in remap_mono_to_stereo_float32ne_c()
90 static void remap_stereo_to_mono_s16ne_c(pa_remap_t *m, int16_t *dst, const int16_t *src, unsigned … in remap_stereo_to_mono_s16ne_c() argument
94 dst[0] = (src[0] + src[1])/2; in remap_stereo_to_mono_s16ne_c()
95 dst[1] = (src[2] + src[3])/2; in remap_stereo_to_mono_s16ne_c()
96 dst[2] = (src[4] + src[5])/2; in remap_stereo_to_mono_s16ne_c()
97 dst[3] = (src[6] + src[7])/2; in remap_stereo_to_mono_s16ne_c()
99 dst += 4; in remap_stereo_to_mono_s16ne_c()
102 dst[0] = (src[0] + src[1])/2; in remap_stereo_to_mono_s16ne_c()
104 dst += 1; in remap_stereo_to_mono_s16ne_c()
108 static void remap_stereo_to_mono_s32ne_c(pa_remap_t *m, int32_t *dst, const int32_t *src, unsigned … in remap_stereo_to_mono_s32ne_c() argument
114 dst[0] = (src[0]/2 + src[1]/2); in remap_stereo_to_mono_s32ne_c()
115 dst[1] = (src[2]/2 + src[3]/2); in remap_stereo_to_mono_s32ne_c()
116 dst[2] = (src[4]/2 + src[5]/2); in remap_stereo_to_mono_s32ne_c()
117 dst[3] = (src[6]/2 + src[7]/2); in remap_stereo_to_mono_s32ne_c()
119 dst += 4; in remap_stereo_to_mono_s32ne_c()
124 dst[0] = (src[0]/2 + src[1]/2); in remap_stereo_to_mono_s32ne_c()
126 dst += 1; in remap_stereo_to_mono_s32ne_c()
130 static void remap_stereo_to_mono_float32ne_c(pa_remap_t *m, float *dst, const float *src, unsigned … in remap_stereo_to_mono_float32ne_c() argument
134 dst[0] = (src[0] + src[1])*0.5f; in remap_stereo_to_mono_float32ne_c()
135 dst[1] = (src[2] + src[3])*0.5f; in remap_stereo_to_mono_float32ne_c()
136 dst[2] = (src[4] + src[5])*0.5f; in remap_stereo_to_mono_float32ne_c()
137 dst[3] = (src[6] + src[7])*0.5f; in remap_stereo_to_mono_float32ne_c()
139 dst += 4; in remap_stereo_to_mono_float32ne_c()
142 dst[0] = (src[0] + src[1])*0.5f; in remap_stereo_to_mono_float32ne_c()
144 dst += 1; in remap_stereo_to_mono_float32ne_c()
148 static void remap_mono_to_ch4_s16ne_c(pa_remap_t *m, int16_t *dst, const int16_t *src, unsigned n) { in remap_mono_to_ch4_s16ne_c() argument
152 dst[0] = dst[1] = dst[2] = dst[3] = src[0]; in remap_mono_to_ch4_s16ne_c()
153 dst[4] = dst[5] = dst[6] = dst[7] = src[1]; in remap_mono_to_ch4_s16ne_c()
154 dst[8] = dst[9] = dst[10] = dst[11] = src[2]; in remap_mono_to_ch4_s16ne_c()
155 dst[12] = dst[13] = dst[14] = dst[15] = src[3]; in remap_mono_to_ch4_s16ne_c()
157 dst += 16; in remap_mono_to_ch4_s16ne_c()
160 dst[0] = dst[1] = dst[2] = dst[3] = src[0]; in remap_mono_to_ch4_s16ne_c()
162 dst += 4; in remap_mono_to_ch4_s16ne_c()
166 static void remap_mono_to_ch4_s32ne_c(pa_remap_t *m, int32_t *dst, const int32_t *src, unsigned n) { in remap_mono_to_ch4_s32ne_c() argument
170 dst[0] = dst[1] = dst[2] = dst[3] = src[0]; in remap_mono_to_ch4_s32ne_c()
171 dst[4] = dst[5] = dst[6] = dst[7] = src[1]; in remap_mono_to_ch4_s32ne_c()
172 dst[8] = dst[9] = dst[10] = dst[11] = src[2]; in remap_mono_to_ch4_s32ne_c()
173 dst[12] = dst[13] = dst[14] = dst[15] = src[3]; in remap_mono_to_ch4_s32ne_c()
175 dst += 16; in remap_mono_to_ch4_s32ne_c()
178 dst[0] = dst[1] = dst[2] = dst[3] = src[0]; in remap_mono_to_ch4_s32ne_c()
180 dst += 4; in remap_mono_to_ch4_s32ne_c()
184 static void remap_mono_to_ch4_float32ne_c(pa_remap_t *m, float *dst, const float *src, unsigned n) { in remap_mono_to_ch4_float32ne_c() argument
188 dst[0] = dst[1] = dst[2] = dst[3] = src[0]; in remap_mono_to_ch4_float32ne_c()
189 dst[4] = dst[5] = dst[6] = dst[7] = src[1]; in remap_mono_to_ch4_float32ne_c()
190 dst[8] = dst[9] = dst[10] = dst[11] = src[2]; in remap_mono_to_ch4_float32ne_c()
191 dst[12] = dst[13] = dst[14] = dst[15] = src[3]; in remap_mono_to_ch4_float32ne_c()
193 dst += 16; in remap_mono_to_ch4_float32ne_c()
196 dst[0] = dst[1] = dst[2] = dst[3] = src[0]; in remap_mono_to_ch4_float32ne_c()
198 dst += 4; in remap_mono_to_ch4_float32ne_c()
202 static void remap_ch4_to_mono_s16ne_c(pa_remap_t *m, int16_t *dst, const int16_t *src, unsigned n) { in remap_ch4_to_mono_s16ne_c() argument
206 dst[0] = (src[0] + src[1] + src[2] + src[3])/4; in remap_ch4_to_mono_s16ne_c()
207 dst[1] = (src[4] + src[5] + src[6] + src[7])/4; in remap_ch4_to_mono_s16ne_c()
208 dst[2] = (src[8] + src[9] + src[10] + src[11])/4; in remap_ch4_to_mono_s16ne_c()
209 dst[3] = (src[12] + src[13] + src[14] + src[15])/4; in remap_ch4_to_mono_s16ne_c()
211 dst += 4; in remap_ch4_to_mono_s16ne_c()
214 dst[0] = (src[0] + src[1] + src[2] + src[3])/4; in remap_ch4_to_mono_s16ne_c()
216 dst += 1; in remap_ch4_to_mono_s16ne_c()
220 static void remap_ch4_to_mono_s32ne_c(pa_remap_t *m, int32_t *dst, const int32_t *src, unsigned n) { in remap_ch4_to_mono_s32ne_c() argument
226 dst[0] = (src[0]/4 + src[1]/4 + src[2]/4 + src[3]/4); in remap_ch4_to_mono_s32ne_c()
227 dst[1] = (src[4]/4 + src[5]/4 + src[6]/4 + src[7]/4); in remap_ch4_to_mono_s32ne_c()
228 dst[2] = (src[8]/4 + src[9]/4 + src[10]/4 + src[11]/4); in remap_ch4_to_mono_s32ne_c()
229 dst[3] = (src[12]/4 + src[13]/4 + src[14]/4 + src[15]/4); in remap_ch4_to_mono_s32ne_c()
231 dst += 4; in remap_ch4_to_mono_s32ne_c()
236 dst[0] = (src[0]/4 + src[1]/4 + src[2]/4 + src[3]/4); in remap_ch4_to_mono_s32ne_c()
238 dst += 1; in remap_ch4_to_mono_s32ne_c()
242 static void remap_ch4_to_mono_float32ne_c(pa_remap_t *m, float *dst, const float *src, unsigned n) { in remap_ch4_to_mono_float32ne_c() argument
246 dst[0] = (src[0] + src[1] + src[2] + src[3])*0.25f; in remap_ch4_to_mono_float32ne_c()
247 dst[1] = (src[4] + src[5] + src[6] + src[7])*0.25f; in remap_ch4_to_mono_float32ne_c()
248 dst[2] = (src[8] + src[9] + src[10] + src[11])*0.25f; in remap_ch4_to_mono_float32ne_c()
249 dst[3] = (src[12] + src[13] + src[14] + src[15])*0.25f; in remap_ch4_to_mono_float32ne_c()
251 dst += 4; in remap_ch4_to_mono_float32ne_c()
254 dst[0] = (src[0] + src[1] + src[2] + src[3])*0.25f; in remap_ch4_to_mono_float32ne_c()
256 dst += 1; in remap_ch4_to_mono_float32ne_c()
260 static void remap_channels_matrix_s16ne_c(pa_remap_t *m, int16_t *dst, const int16_t *src, unsigned… in remap_channels_matrix_s16ne_c() argument
268 memset(dst, 0, n * sizeof(int16_t) * n_oc); in remap_channels_matrix_s16ne_c()
273 int16_t *d = dst + oc; in remap_channels_matrix_s16ne_c()
291 static void remap_channels_matrix_s32ne_c(pa_remap_t *m, int32_t *dst, const int32_t *src, unsigned… in remap_channels_matrix_s32ne_c() argument
298 memset(dst, 0, n * sizeof(int32_t) * n_oc); in remap_channels_matrix_s32ne_c()
303 int32_t *d = dst + oc; in remap_channels_matrix_s32ne_c()
321 static void remap_channels_matrix_float32ne_c(pa_remap_t *m, float *dst, const float *src, unsigned… in remap_channels_matrix_float32ne_c() argument
328 memset(dst, 0, n * sizeof(float) * n_oc); in remap_channels_matrix_float32ne_c()
333 float *d = dst + oc; in remap_channels_matrix_float32ne_c()
384 static void remap_arrange_mono_s16ne_c(pa_remap_t *m, int16_t *dst, const int16_t *src, unsigned n)… in remap_arrange_mono_s16ne_c() argument
390 *dst++ = *src; in remap_arrange_mono_s16ne_c()
395 static void remap_arrange_stereo_s16ne_c(pa_remap_t *m, int16_t *dst, const int16_t *src, unsigned … in remap_arrange_stereo_s16ne_c() argument
401 *dst++ = (ic0 >= 0) ? *(src + ic0) : 0; in remap_arrange_stereo_s16ne_c()
402 *dst++ = (ic1 >= 0) ? *(src + ic1) : 0; in remap_arrange_stereo_s16ne_c()
407 static void remap_arrange_ch4_s16ne_c(pa_remap_t *m, int16_t *dst, const int16_t *src, unsigned n) { in remap_arrange_ch4_s16ne_c() argument
414 *dst++ = (ic0 >= 0) ? *(src + ic0) : 0; in remap_arrange_ch4_s16ne_c()
415 *dst++ = (ic1 >= 0) ? *(src + ic1) : 0; in remap_arrange_ch4_s16ne_c()
416 *dst++ = (ic2 >= 0) ? *(src + ic2) : 0; in remap_arrange_ch4_s16ne_c()
417 *dst++ = (ic3 >= 0) ? *(src + ic3) : 0; in remap_arrange_ch4_s16ne_c()
422 static void remap_arrange_mono_s32ne_c(pa_remap_t *m, int32_t *dst, const int32_t *src, unsigned n)… in remap_arrange_mono_s32ne_c() argument
428 *dst++ = *src; in remap_arrange_mono_s32ne_c()
433 static void remap_arrange_stereo_s32ne_c(pa_remap_t *m, int32_t *dst, const int32_t *src, unsigned … in remap_arrange_stereo_s32ne_c() argument
439 *dst++ = (ic0 >= 0) ? *(src + ic0) : 0; in remap_arrange_stereo_s32ne_c()
440 *dst++ = (ic1 >= 0) ? *(src + ic1) : 0; in remap_arrange_stereo_s32ne_c()
445 static void remap_arrange_ch4_s32ne_c(pa_remap_t *m, int32_t *dst, const int32_t *src, unsigned n) { in remap_arrange_ch4_s32ne_c() argument
452 *dst++ = (ic0 >= 0) ? *(src + ic0) : 0; in remap_arrange_ch4_s32ne_c()
453 *dst++ = (ic1 >= 0) ? *(src + ic1) : 0; in remap_arrange_ch4_s32ne_c()
454 *dst++ = (ic2 >= 0) ? *(src + ic2) : 0; in remap_arrange_ch4_s32ne_c()
455 *dst++ = (ic3 >= 0) ? *(src + ic3) : 0; in remap_arrange_ch4_s32ne_c()
460 static void remap_arrange_mono_float32ne_c(pa_remap_t *m, float *dst, const float *src, unsigned n)… in remap_arrange_mono_float32ne_c() argument
466 *dst++ = *src; in remap_arrange_mono_float32ne_c()
471 static void remap_arrange_stereo_float32ne_c(pa_remap_t *m, float *dst, const float *src, unsigned … in remap_arrange_stereo_float32ne_c() argument
477 *dst++ = (ic0 >= 0) ? *(src + ic0) : 0.0f; in remap_arrange_stereo_float32ne_c()
478 *dst++ = (ic1 >= 0) ? *(src + ic1) : 0.0f; in remap_arrange_stereo_float32ne_c()
483 static void remap_arrange_ch4_float32ne_c(pa_remap_t *m, float *dst, const float *src, unsigned n) { in remap_arrange_ch4_float32ne_c() argument
490 *dst++ = (ic0 >= 0) ? *(src + ic0) : 0.0f; in remap_arrange_ch4_float32ne_c()
491 *dst++ = (ic1 >= 0) ? *(src + ic1) : 0.0f; in remap_arrange_ch4_float32ne_c()
492 *dst++ = (ic2 >= 0) ? *(src + ic2) : 0.0f; in remap_arrange_ch4_float32ne_c()
493 *dst++ = (ic3 >= 0) ? *(src + ic3) : 0.0f; in remap_arrange_ch4_float32ne_c()