Lines Matching refs:samples
183 static void ac3_downmix_5_to_2_symmetric_c(float **samples, float **matrix,
193 v0 = samples[0][i] * front_mix +
194 samples[1][i] * center_mix +
195 samples[3][i] * surround_mix;
197 v1 = samples[1][i] * center_mix +
198 samples[2][i] * front_mix +
199 samples[4][i] * surround_mix;
201 samples[0][i] = v0;
202 samples[1][i] = v1;
206 static void ac3_downmix_5_to_1_symmetric_c(float **samples, float **matrix,
215 samples[0][i] = samples[0][i] * front_mix +
216 samples[1][i] * center_mix +
217 samples[2][i] * front_mix +
218 samples[3][i] * surround_mix +
219 samples[4][i] * surround_mix;
223 static void ac3_downmix_c(float **samples, float **matrix,
233 v0 += samples[j][i] * matrix[0][j];
234 v1 += samples[j][i] * matrix[1][j];
236 samples[0][i] = v0;
237 samples[1][i] = v1;
243 v0 += samples[j][i] * matrix[0][j];
244 samples[0][i] = v0;
249 static void ac3_downmix_5_to_2_symmetric_c_fixed(int32_t **samples, int16_t **matrix,
259 v0 = (int64_t)samples[0][i] * front_mix +
260 (int64_t)samples[1][i] * center_mix +
261 (int64_t)samples[3][i] * surround_mix;
263 v1 = (int64_t)samples[1][i] * center_mix +
264 (int64_t)samples[2][i] * front_mix +
265 (int64_t)samples[4][i] * surround_mix;
267 samples[0][i] = (v0+2048)>>12;
268 samples[1][i] = (v1+2048)>>12;
272 static void ac3_downmix_5_to_1_symmetric_c_fixed(int32_t **samples, int16_t **matrix,
282 v0 = (int64_t)samples[0][i] * front_mix +
283 (int64_t)samples[1][i] * center_mix +
284 (int64_t)samples[2][i] * front_mix +
285 (int64_t)samples[3][i] * surround_mix +
286 (int64_t)samples[4][i] * surround_mix;
288 samples[0][i] = (v0+2048)>>12;
292 static void ac3_downmix_c_fixed(int32_t **samples, int16_t **matrix,
301 v0 += (int64_t)samples[j][i] * matrix[0][j];
302 v1 += (int64_t)samples[j][i] * matrix[1][j];
304 samples[0][i] = (v0+2048)>>12;
305 samples[1][i] = (v1+2048)>>12;
311 v0 += (int64_t)samples[j][i] * matrix[0][j];
312 samples[0][i] = (v0+2048)>>12;
317 void ff_ac3dsp_downmix_fixed(AC3DSPContext *c, int32_t **samples, int16_t **matrix,
339 c->downmix_fixed(samples, matrix, len);
341 ac3_downmix_c_fixed(samples, matrix, out_ch, in_ch, len);
344 void ff_ac3dsp_downmix(AC3DSPContext *c, float **samples, float **matrix,
372 c->downmix(samples, matrix, len);
374 ac3_downmix_c(samples, matrix, out_ch, in_ch, len);