Lines Matching defs:oc

966     unsigned oc;
977 for (oc = 0; oc < n_oc; oc++)
978 oc_mono_map[oc] = on_lfe(r->o_cm.map[oc]) ? 0.0f : 1.0f;
982 for (oc = 0; oc < n_oc; oc++)
983 oc_mono_map[oc] = 0.0f;
986 for (oc = 0; oc < n_oc; oc++) {
987 if (r->o_cm.map[oc] == PA_CHANNEL_POSITION_MONO) {
988 oc_mono_map[oc] = 1.0f;
995 for (oc = 0; oc < n_oc; oc++) {
996 if (r->o_cm.map[oc] == PA_CHANNEL_POSITION_FRONT_CENTER) {
997 oc_mono_map[oc] = 1.0f;
1004 for (oc = 0; oc < n_oc; oc++) {
1005 if (r->o_cm.map[oc] == PA_CHANNEL_POSITION_FRONT_LEFT || r->o_cm.map[oc] == PA_CHANNEL_POSITION_FRONT_RIGHT) {
1006 oc_mono_map[oc] = 1.0f;
1016 for (oc = 0; oc < n_oc; oc++)
1017 oc_mono_map[oc] = on_lfe(r->o_cm.map[oc]) ? 0.0f : 1.0f;
1021 unsigned oc, ic;
1045 for (oc = 0; oc < PA_MIN(n_ic, n_oc); oc++)
1046 m->map_table_f[oc][oc] = 1.0f;
1049 for (oc = 0; oc < n_oc; oc++) {
1050 pa_channel_position_t b = r->o_cm.map[oc];
1057 m->map_table_f[oc][ic] = 1.0f;
1146 for (oc = 0; oc < n_oc; oc++) {
1148 pa_channel_position_t b = r->o_cm.map[oc];
1154 m->map_table_f[oc][ic] = 1.0f;
1159 else if (a == PA_CHANNEL_POSITION_MONO && oc_mono_map[oc] > 0.0f) {
1160 m->map_table_f[oc][ic] = oc_mono_map[oc];
1166 m->map_table_f[oc][ic] = 1.0f / (float) n_ic;
1184 m->map_table_f[oc][ic] = 1.0f / (float) ic_left;
1199 m->map_table_f[oc][ic] = 1.0f / (float) ic_right;
1216 m->map_table_f[oc][ic] = 1.0f / (float) ic_center;
1227 m->map_table_f[oc][ic] = 1.0f / (float) (ic_left + ic_right);
1242 m->map_table_f[oc][ic] = 1.0f / (float) n_ic;
1271 for (oc = 0; oc < n_oc; oc++) {
1272 pa_channel_position_t b = r->o_cm.map[oc];
1274 m->map_table_f[oc][ic] =
1278 m->map_table_f[oc][ic] = .375f/(float)ic_unconnected_lfe;
1288 for (oc = 0; oc < n_oc; oc++) {
1289 pa_channel_position_t b = r->o_cm.map[oc];
1290 pa_channel_direction_t oc_direction = front_rear_side(r->o_cm.map[oc]);
1292 m->map_table_f[oc][ic] = directionDownMixMatrix[ic_direction][oc_direction];
1294 m->map_table_f[oc][ic] = directionDownMixMatrix[ic_direction][oc_direction];
1296 m->map_table_f[oc][ic] = directionDownMixMatrix[ic_direction][oc_direction];
1300 m->map_table_f[oc][ic] = .375f / (float) ic_unconnected_lfe;
1323 for (oc = 0; oc < n_oc; oc++) {
1325 if (!on_left(r->o_cm.map[oc]) && !on_right(r->o_cm.map[oc]))
1328 if (front_rear_side(r->i_cm.map[ic]) == front_rear_side(r->o_cm.map[oc])) {
1334 for (oc = 0; oc < n_oc; oc++) {
1336 if (!on_left(r->o_cm.map[oc]) && !on_right(r->o_cm.map[oc]))
1339 if (!found_frs[ic] || front_rear_side(r->i_cm.map[ic]) == front_rear_side(r->o_cm.map[oc]))
1340 ncenter[oc]++;
1344 for (oc = 0; oc < n_oc; oc++) {
1346 if (!on_left(r->o_cm.map[oc]) && !on_right(r->o_cm.map[oc]))
1349 if (ncenter[oc] <= 0)
1357 if (!found_frs[ic] || front_rear_side(r->i_cm.map[ic]) == front_rear_side(r->o_cm.map[oc]))
1358 m->map_table_f[oc][ic] = .5f / (float) ncenter[oc];
1368 for (oc = 0; oc < n_oc; oc++) {
1371 sum += m->map_table_f[oc][ic];
1375 for (oc = 0; oc < n_oc; oc++) {
1377 m->map_table_f[oc][ic] /= max_sum;
1381 for (oc = 0; oc < n_oc; oc++)
1383 m->map_table_i[oc][ic] = (int32_t) (m->map_table_f[oc][ic] * 0x10000);
1396 for (oc = 0; oc < n_oc; oc++) {
1397 pa_strbuf_printf(s, "O%02u |", oc);
1400 pa_strbuf_printf(s, " %1.3f", m->map_table_f[oc][ic]);