Lines Matching refs:matrix
94 double matrix[64][64] = {{0}}; in avresample_build_matrix() local
123 matrix[i][i] = 1.0; in avresample_build_matrix()
130 matrix[FRONT_LEFT ][FRONT_CENTER] += center_mix_level; in avresample_build_matrix()
131 matrix[FRONT_RIGHT][FRONT_CENTER] += center_mix_level; in avresample_build_matrix()
133 matrix[FRONT_LEFT ][FRONT_CENTER] += M_SQRT1_2; in avresample_build_matrix()
134 matrix[FRONT_RIGHT][FRONT_CENTER] += M_SQRT1_2; in avresample_build_matrix()
142 matrix[FRONT_CENTER][FRONT_LEFT ] += M_SQRT1_2; in avresample_build_matrix()
143 matrix[FRONT_CENTER][FRONT_RIGHT] += M_SQRT1_2; in avresample_build_matrix()
146 matrix[FRONT_CENTER][FRONT_CENTER] = center_mix_level * M_SQRT2; in avresample_build_matrix()
153 matrix[BACK_LEFT ][BACK_CENTER] += M_SQRT1_2; in avresample_build_matrix()
154 matrix[BACK_RIGHT][BACK_CENTER] += M_SQRT1_2; in avresample_build_matrix()
156 matrix[SIDE_LEFT ][BACK_CENTER] += M_SQRT1_2; in avresample_build_matrix()
157 matrix[SIDE_RIGHT][BACK_CENTER] += M_SQRT1_2; in avresample_build_matrix()
162 matrix[FRONT_LEFT ][BACK_CENTER] -= surround_mix_level * M_SQRT1_2; in avresample_build_matrix()
163 matrix[FRONT_RIGHT][BACK_CENTER] += surround_mix_level * M_SQRT1_2; in avresample_build_matrix()
165 matrix[FRONT_LEFT ][BACK_CENTER] -= surround_mix_level; in avresample_build_matrix()
166 matrix[FRONT_RIGHT][BACK_CENTER] += surround_mix_level; in avresample_build_matrix()
169 matrix[FRONT_LEFT ][BACK_CENTER] += surround_mix_level * M_SQRT1_2; in avresample_build_matrix()
170 matrix[FRONT_RIGHT][BACK_CENTER] += surround_mix_level * M_SQRT1_2; in avresample_build_matrix()
173 matrix[FRONT_CENTER][BACK_CENTER] += surround_mix_level * M_SQRT1_2; in avresample_build_matrix()
180 matrix[BACK_CENTER][BACK_LEFT ] += M_SQRT1_2; in avresample_build_matrix()
181 matrix[BACK_CENTER][BACK_RIGHT] += M_SQRT1_2; in avresample_build_matrix()
186 matrix[SIDE_LEFT ][BACK_LEFT ] += M_SQRT1_2; in avresample_build_matrix()
187 matrix[SIDE_RIGHT][BACK_RIGHT] += M_SQRT1_2; in avresample_build_matrix()
189 matrix[SIDE_LEFT ][BACK_LEFT ] += 1.0; in avresample_build_matrix()
190 matrix[SIDE_RIGHT][BACK_RIGHT] += 1.0; in avresample_build_matrix()
194 matrix[FRONT_LEFT ][BACK_LEFT ] -= surround_mix_level * M_SQRT1_2; in avresample_build_matrix()
195 matrix[FRONT_LEFT ][BACK_RIGHT] -= surround_mix_level * M_SQRT1_2; in avresample_build_matrix()
196 matrix[FRONT_RIGHT][BACK_LEFT ] += surround_mix_level * M_SQRT1_2; in avresample_build_matrix()
197 matrix[FRONT_RIGHT][BACK_RIGHT] += surround_mix_level * M_SQRT1_2; in avresample_build_matrix()
199 matrix[FRONT_LEFT ][BACK_LEFT ] -= surround_mix_level * SQRT3_2; in avresample_build_matrix()
200 matrix[FRONT_LEFT ][BACK_RIGHT] -= surround_mix_level * M_SQRT1_2; in avresample_build_matrix()
201 matrix[FRONT_RIGHT][BACK_LEFT ] += surround_mix_level * M_SQRT1_2; in avresample_build_matrix()
202 matrix[FRONT_RIGHT][BACK_RIGHT] += surround_mix_level * SQRT3_2; in avresample_build_matrix()
204 matrix[FRONT_LEFT ][BACK_LEFT ] += surround_mix_level; in avresample_build_matrix()
205 matrix[FRONT_RIGHT][BACK_RIGHT] += surround_mix_level; in avresample_build_matrix()
208 matrix[FRONT_CENTER][BACK_LEFT ] += surround_mix_level * M_SQRT1_2; in avresample_build_matrix()
209 matrix[FRONT_CENTER][BACK_RIGHT] += surround_mix_level * M_SQRT1_2; in avresample_build_matrix()
219 matrix[BACK_LEFT ][SIDE_LEFT ] += M_SQRT1_2; in avresample_build_matrix()
220 matrix[BACK_RIGHT][SIDE_RIGHT] += M_SQRT1_2; in avresample_build_matrix()
222 matrix[BACK_LEFT ][SIDE_LEFT ] += 1.0; in avresample_build_matrix()
223 matrix[BACK_RIGHT][SIDE_RIGHT] += 1.0; in avresample_build_matrix()
226 matrix[BACK_CENTER][SIDE_LEFT ] += M_SQRT1_2; in avresample_build_matrix()
227 matrix[BACK_CENTER][SIDE_RIGHT] += M_SQRT1_2; in avresample_build_matrix()
230 matrix[FRONT_LEFT ][SIDE_LEFT ] -= surround_mix_level * M_SQRT1_2; in avresample_build_matrix()
231 matrix[FRONT_LEFT ][SIDE_RIGHT] -= surround_mix_level * M_SQRT1_2; in avresample_build_matrix()
232 matrix[FRONT_RIGHT][SIDE_LEFT ] += surround_mix_level * M_SQRT1_2; in avresample_build_matrix()
233 matrix[FRONT_RIGHT][SIDE_RIGHT] += surround_mix_level * M_SQRT1_2; in avresample_build_matrix()
235 matrix[FRONT_LEFT ][SIDE_LEFT ] -= surround_mix_level * SQRT3_2; in avresample_build_matrix()
236 matrix[FRONT_LEFT ][SIDE_RIGHT] -= surround_mix_level * M_SQRT1_2; in avresample_build_matrix()
237 matrix[FRONT_RIGHT][SIDE_LEFT ] += surround_mix_level * M_SQRT1_2; in avresample_build_matrix()
238 matrix[FRONT_RIGHT][SIDE_RIGHT] += surround_mix_level * SQRT3_2; in avresample_build_matrix()
240 matrix[FRONT_LEFT ][SIDE_LEFT ] += surround_mix_level; in avresample_build_matrix()
241 matrix[FRONT_RIGHT][SIDE_RIGHT] += surround_mix_level; in avresample_build_matrix()
244 matrix[FRONT_CENTER][SIDE_LEFT ] += surround_mix_level * M_SQRT1_2; in avresample_build_matrix()
245 matrix[FRONT_CENTER][SIDE_RIGHT] += surround_mix_level * M_SQRT1_2; in avresample_build_matrix()
252 matrix[FRONT_LEFT ][FRONT_LEFT_OF_CENTER ] += 1.0; in avresample_build_matrix()
253 matrix[FRONT_RIGHT][FRONT_RIGHT_OF_CENTER] += 1.0; in avresample_build_matrix()
255 matrix[FRONT_CENTER][FRONT_LEFT_OF_CENTER ] += M_SQRT1_2; in avresample_build_matrix()
256 matrix[FRONT_CENTER][FRONT_RIGHT_OF_CENTER] += M_SQRT1_2; in avresample_build_matrix()
263 matrix[FRONT_CENTER][LOW_FREQUENCY] += lfe_mix_level; in avresample_build_matrix()
265 matrix[FRONT_LEFT ][LOW_FREQUENCY] += lfe_mix_level * M_SQRT1_2; in avresample_build_matrix()
266 matrix[FRONT_RIGHT][LOW_FREQUENCY] += lfe_mix_level * M_SQRT1_2; in avresample_build_matrix()
276 matrix_out[out_i * stride + out_j] = matrix[i][j]; in avresample_build_matrix()
277 sum += fabs(matrix[i][j]); in avresample_build_matrix()