Lines Matching refs:matrix

183 static void ac3_downmix_5_to_2_symmetric_c(float **samples, float **matrix,
188 float front_mix = matrix[0][0];
189 float center_mix = matrix[0][1];
190 float surround_mix = matrix[0][3];
206 static void ac3_downmix_5_to_1_symmetric_c(float **samples, float **matrix,
210 float front_mix = matrix[0][0];
211 float center_mix = matrix[0][1];
212 float surround_mix = matrix[0][3];
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];
243 v0 += samples[j][i] * matrix[0][j];
249 static void ac3_downmix_5_to_2_symmetric_c_fixed(int32_t **samples, int16_t **matrix,
254 int16_t front_mix = matrix[0][0];
255 int16_t center_mix = matrix[0][1];
256 int16_t surround_mix = matrix[0][3];
272 static void ac3_downmix_5_to_1_symmetric_c_fixed(int32_t **samples, int16_t **matrix,
277 int16_t front_mix = matrix[0][0];
278 int16_t center_mix = matrix[0][1];
279 int16_t surround_mix = matrix[0][3];
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];
311 v0 += (int64_t)samples[j][i] * matrix[0][j];
317 void ff_ac3dsp_downmix_fixed(AC3DSPContext *c, int32_t **samples, int16_t **matrix,
326 !(matrix[1][0] | matrix[0][2] |
327 matrix[1][3] | matrix[0][4] |
328 (matrix[0][1] ^ matrix[1][1]) |
329 (matrix[0][0] ^ matrix[1][2]))) {
332 matrix[0][0] == matrix[0][2] &&
333 matrix[0][3] == matrix[0][4]) {
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,
348 int **matrix_cmp = (int **)matrix;
372 c->downmix(samples, matrix, len);
374 ac3_downmix_c(samples, matrix, out_ch, in_ch, len);