/third_party/ffmpeg/libavdevice/ |
D | pulse_audio_enc.c | 355 static void pulse_map_channels_to_pulse(int64_t channel_layout, pa_channel_map *channel_map) in pulse_map_channels_to_pulse() argument 357 channel_map->channels = 0; in pulse_map_channels_to_pulse() 359 channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_FRONT_LEFT; in pulse_map_channels_to_pulse() 361 channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_FRONT_RIGHT; in pulse_map_channels_to_pulse() 363 channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_FRONT_CENTER; in pulse_map_channels_to_pulse() 365 channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_LFE; in pulse_map_channels_to_pulse() 367 channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_REAR_LEFT; in pulse_map_channels_to_pulse() 369 channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_REAR_RIGHT; in pulse_map_channels_to_pulse() 371 channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_FRONT_LEFT_OF_CENTER; in pulse_map_channels_to_pulse() 373 channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_FRONT_RIGHT_OF_CENTER; in pulse_map_channels_to_pulse() [all …]
|
/third_party/ffmpeg/libavfilter/ |
D | ebur128.c | 79 int *channel_map; member 158 st->d->channel_map = in ebur128_init_channel_map() 159 (int *) av_malloc_array(st->channels, sizeof(*st->d->channel_map)); in ebur128_init_channel_map() 160 if (!st->d->channel_map) in ebur128_init_channel_map() 163 st->d->channel_map[0] = FF_EBUR128_LEFT; in ebur128_init_channel_map() 164 st->d->channel_map[1] = FF_EBUR128_RIGHT; in ebur128_init_channel_map() 165 st->d->channel_map[2] = FF_EBUR128_LEFT_SURROUND; in ebur128_init_channel_map() 166 st->d->channel_map[3] = FF_EBUR128_RIGHT_SURROUND; in ebur128_init_channel_map() 168 st->d->channel_map[0] = FF_EBUR128_LEFT; in ebur128_init_channel_map() 169 st->d->channel_map[1] = FF_EBUR128_RIGHT; in ebur128_init_channel_map() [all …]
|
D | af_pan.c | 53 int channel_map[MAX_CHANNELS]; member 338 pan->channel_map[i] = ch_id; in config_props() 343 swr_set_channel_mapping(pan->swr, pan->channel_map); in config_props() 385 if (pan->channel_map[i] < 0) in config_props() 388 av_log(ctx, AV_LOG_INFO, " %d", pan->channel_map[i]); in config_props()
|
/third_party/alsa-lib/src/topology/ |
D | channel.c | 24 static const struct map_elem channel_map[] = { variable 67 for (i = 0; i < ARRAY_SIZE(channel_map); i++) { in lookup_channel() 68 if (strcasecmp(channel_map[i].name, c) == 0) { in lookup_channel() 69 return channel_map[i].id; in lookup_channel() 80 for (i = 0; i < ARRAY_SIZE(channel_map); i++) { in tplg_channel_name() 81 if (channel_map[i].id == type) in tplg_channel_name() 82 return channel_map[i].name; in tplg_channel_name()
|
/third_party/pulseaudio/src/pulsecore/ |
D | cli-text.c | 205 cmn = pa_channel_map_to_pretty_name(&sink->channel_map); in pa_sink_list_to_string() 247 &sink->channel_map, in pa_sink_list_to_string() 249 pa_cvolume_get_balance(pa_sink_get_volume(sink, false), &sink->channel_map), in pa_sink_list_to_string() 258 pa_channel_map_snprint(cm, sizeof(cm), &sink->channel_map), in pa_sink_list_to_string() 319 cmn = pa_channel_map_to_pretty_name(&source->channel_map); in pa_source_list_to_string() 358 &source->channel_map, in pa_source_list_to_string() 360 pa_cvolume_get_balance(pa_source_get_volume(source, false), &source->channel_map), in pa_source_list_to_string() 367 pa_channel_map_snprint(cm, sizeof(cm), &source->channel_map), in pa_source_list_to_string() 435 cmn = pa_channel_map_to_pretty_name(&o->channel_map); in pa_source_output_list_to_string() 447 … pa_cvolume_snprint_verbose(cv, sizeof(cv), &v, &o->channel_map, true), in pa_source_output_list_to_string() [all …]
|
D | source.c | 97 data->channel_map = *map; in pa_source_new_data_set_channel_map() 204 …pa_return_null_if_fail(pa_channel_map_init_auto(&data->channel_map, data->sample_spec.channels, PA… in pa_source_new() 206 pa_return_null_if_fail(pa_channel_map_valid(&data->channel_map)); in pa_source_new() 207 pa_return_null_if_fail(data->channel_map.channels == data->sample_spec.channels); in pa_source_new() 260 s->channel_map = data->channel_map; in pa_source_new() 353 pa_channel_map_snprint(cm, sizeof(cm), &s->channel_map), in pa_source_new() 651 pa_cvolume_remap(&s->reference_volume, &root_source->channel_map, &s->channel_map); in pa_source_put() 654 pa_cvolume_remap(&s->real_volume, &root_source->channel_map, &s->channel_map); in pa_source_put() 1301 pa_cvolume_remap(&remapped, &o->source->channel_map, &o->channel_map); in compute_reference_ratio() 1381 pa_cvolume_remap(&remapped, &s->channel_map, &o->channel_map); in compute_real_ratios() [all …]
|
D | source-output.c | 72 data->channel_map = *map; in pa_source_output_new_data_set_channel_map() 259 …at_info_from_sample_spec2(&data->sample_spec, data->channel_map_is_set ? &data->channel_map : NULL, in pa_source_output_new() 323 …et_volume_channel_map(&data->volume, data->channel_map_is_set ? &data->channel_map : NULL, data->f… in pa_source_output_new() 334 …r = pa_format_info_to_sample_spec2(data->format, &data->sample_spec, &data->channel_map, &data->so… in pa_source_output_new() 335 &data->source->channel_map); in pa_source_output_new() 360 pa_cvolume_remap(&data->volume, &volume_map, &data->channel_map); in pa_source_output_new() 413 !pa_channel_map_equal(&data->channel_map, &data->source->channel_map)) { in pa_source_output_new() 418 &data->source->sample_spec, &data->source->channel_map, in pa_source_output_new() 419 &data->sample_spec, &data->channel_map, in pa_source_output_new() 451 o->channel_map = data->channel_map; in pa_source_output_new() [all …]
|
D | sink-input.c | 131 data->channel_map = *map; in pa_sink_input_new_data_set_channel_map() 323 …at_info_from_sample_spec2(&data->sample_spec, data->channel_map_is_set ? &data->channel_map : NULL, in pa_sink_input_new() 381 …et_volume_channel_map(&data->volume, data->channel_map_is_set ? &data->channel_map : NULL, data->f… in pa_sink_input_new() 392 …r = pa_format_info_to_sample_spec2(data->format, &data->sample_spec, &data->channel_map, &data->si… in pa_sink_input_new() 393 &data->sink->channel_map); in pa_sink_input_new() 422 pa_cvolume_remap(&data->volume, &volume_map, &data->channel_map); in pa_sink_input_new() 465 !pa_channel_map_equal(&data->channel_map, &data->sink->channel_map)) { in pa_sink_input_new() 471 &data->sample_spec, &data->channel_map, in pa_sink_input_new() 472 &data->sink->sample_spec, &data->sink->channel_map, in pa_sink_input_new() 504 i->channel_map = data->channel_map; in pa_sink_input_new() [all …]
|
D | sink.c | 106 data->channel_map = *map; in pa_sink_new_data_set_channel_map() 217 …pa_return_null_if_fail(pa_channel_map_init_auto(&data->channel_map, data->sample_spec.channels, PA… in pa_sink_new() 219 pa_return_null_if_fail(pa_channel_map_valid(&data->channel_map)); in pa_sink_new() 220 pa_return_null_if_fail(data->channel_map.channels == data->sample_spec.channels); in pa_sink_new() 273 s->channel_map = data->channel_map; in pa_sink_new() 368 pa_channel_map_snprint(cm, sizeof(cm), &s->channel_map), in pa_sink_new() 374 pa_source_new_data_set_channel_map(&source_data, &s->channel_map); in pa_sink_new() 701 pa_cvolume_remap(&s->reference_volume, &root_sink->channel_map, &s->channel_map); in pa_sink_put() 704 pa_cvolume_remap(&s->real_volume, &root_sink->channel_map, &s->channel_map); in pa_sink_put() 1738 pa_cvolume_remap(&remapped, &i->sink->channel_map, &i->channel_map); in compute_reference_ratio() [all …]
|
D | core-scache.c | 135 pa_channel_map_init(&e->channel_map); in scache_add_item() 175 pa_channel_map_init(&e->channel_map); in pa_scache_add_item() 185 e->channel_map = *map; in pa_scache_add_item() 321 pa_channel_map old_channel_map = e->channel_map; in pa_scache_play_item() 323 …if (pa_sound_file_load(c->mempool, e->filename, &e->sample_spec, &e->channel_map, &e->memchunk, me… in pa_scache_play_item() 330 pa_cvolume_remap(&e->volume, &old_channel_map, &e->channel_map); in pa_scache_play_item() 359 &e->sample_spec, &e->channel_map, in pa_scache_play_item()
|
/third_party/pulseaudio/src/modules/ |
D | module-device-restore.c | 115 pa_channel_map channel_map; member 366 pa_tagstruct_put_channel_map(t, &e->channel_map); in perportentry_write() 415 pa_tagstruct_get_channel_map(t, &e->channel_map) < 0 || in perportentry_read() 436 if (e->volume_valid && !pa_channel_map_valid(&e->channel_map)) { in perportentry_read() 441 …olume_valid(&e->volume) || !pa_cvolume_compatible_with_channel_map(&e->volume, &e->channel_map))) { in perportentry_read() 487 r->channel_map = e->channel_map; in perportentry_copy() 507 …(a->volume_valid && !pa_cvolume_equal(pa_cvolume_remap(&t, &b->channel_map, &a->channel_map), &a->… in perportentries_equal() 526 pa_channel_map channel_map; in legacy_entry_read() member 554 if (le->volume_valid && !pa_channel_map_valid(&le->channel_map)) { in legacy_entry_read() 559 …me_valid(&le->volume) || !pa_cvolume_compatible_with_channel_map(&le->volume, &le->channel_map))) { in legacy_entry_read() [all …]
|
D | module-position-event-sounds.c | 115 if (pa_channel_map_can_balance(&data->sink->channel_map)) { in sink_input_fixate_hook_callback() 117 pa_cvolume_set_balance(&v, &data->sink->channel_map, f*2.0-1.0); in sink_input_fixate_hook_callback() 125 if (pa_channel_map_can_fade(&data->sink->channel_map)) { in sink_input_fixate_hook_callback() 127 pa_cvolume_set_fade(&v, &data->sink->channel_map, f*2.0-1.0); in sink_input_fixate_hook_callback() 135 &data->sink->channel_map, in sink_input_fixate_hook_callback()
|
D | module-stream-restore.c | 121 pa_channel_map channel_map; member 419 for (i = 0; i < e->channel_map.channels; ++i) { in append_volume() 422 …pa_assert_se(dbus_message_iter_append_basic(&struct_iter, DBUS_TYPE_UINT32, &e->channel_map.map[i]… in append_volume() 641 e->channel_map = map; in handle_add_entry() 666 e->channel_map = map; in handle_add_entry() 818 e->channel_map = map; in handle_entry_set_volume() 993 pa_tagstruct_put_channel_map(t, &e->channel_map); in entry_write() 1022 pa_channel_map channel_map; in legacy_entry_read() member 1076 if (le->volume_valid && !pa_channel_map_valid(&le->channel_map)) { in legacy_entry_read() 1081 …me_valid(&le->volume) || !pa_cvolume_compatible_with_channel_map(&le->volume, &le->channel_map))) { in legacy_entry_read() [all …]
|
/third_party/alsa-utils/speaker-test/ |
D | speaker-test.c | 114 static snd_pcm_chmap_t *channel_map; variable 204 int chpos1 = channel_map->pos[chnum1]; in chpos_cmp() 205 int chpos2 = channel_map->pos[chnum2]; in chpos_cmp() 231 ordered_chs = calloc(channel_map->channels, sizeof(*ordered_chs)); in order_channels() 235 for (i = 0; i < channel_map->channels; i++) in order_channels() 238 qsort(ordered_chs, channel_map->channels, sizeof(*ordered_chs), chpos_cmp); in order_channels() 247 if (channel_map_set || (ordered_channels && chn >= channel_map->channels)) in get_speaker_channel() 271 if (channel_map) { in get_channel_name() 273 if (chn < channel_map->channels) in get_channel_name() 274 name = snd_pcm_chmap_long_name(channel_map->pos[chn]); in get_channel_name() [all …]
|
/third_party/ffmpeg/libavresample/ |
D | utils.c | 148 av_log(avr, AV_LOG_TRACE, " % 2d", avr->ch_map_info.channel_map[ch]); in avresample_open() 698 const int *channel_map) in avresample_set_channel_mapping() argument 713 if (channel_map[ch] >= in_channels) { in avresample_set_channel_mapping() 717 if (channel_map[ch] < 0) { in avresample_set_channel_mapping() 719 info->channel_map[ch] = -1; in avresample_set_channel_mapping() 721 } else if (info->input_map[channel_map[ch]] >= 0) { in avresample_set_channel_mapping() 722 info->channel_copy[ch] = info->input_map[channel_map[ch]]; in avresample_set_channel_mapping() 723 info->channel_map[ch] = -1; in avresample_set_channel_mapping() 726 info->channel_map[ch] = channel_map[ch]; in avresample_set_channel_mapping() 727 info->input_map[channel_map[ch]] = ch; in avresample_set_channel_mapping() [all …]
|
/third_party/pulseaudio/src/modules/dbus/ |
D | iface-stream.c | 319 pa_channel_map *channel_map = NULL; in handle_get_channels() local 327 …channel_map = (s->type == STREAM_TYPE_PLAYBACK) ? &s->sink_input->channel_map : &s->source_output-… in handle_get_channels() 329 for (i = 0; i < channel_map->channels; ++i) in handle_get_channels() 330 channels[i] = channel_map->map[i]; in handle_get_channels() 332 …pa_dbus_send_basic_array_variant_reply(conn, msg, DBUS_TYPE_UINT32, channels, channel_map->channel… in handle_get_channels() 388 stream_channels = s->sink_input->channel_map.channels; in handle_set_volume() 525 pa_channel_map *channel_map = NULL; in handle_get_all() local 549 channel_map = &s->sink_input->channel_map; in handle_get_all() 559 channel_map = &s->source_output->channel_map; in handle_get_all() 567 for (i = 0; i < channel_map->channels; ++i) in handle_get_all() [all …]
|
D | iface-device.c | 378 pa_channel_map *channel_map = NULL; in handle_get_channels() local 386 … channel_map = (d->type == PA_DEVICE_TYPE_SINK) ? &d->sink->channel_map : &d->source->channel_map; in handle_get_channels() 388 for (i = 0; i < channel_map->channels; ++i) in handle_get_channels() 389 channels[i] = channel_map->map[i]; in handle_get_channels() 391 …pa_dbus_send_basic_array_variant_reply(conn, msg, DBUS_TYPE_UINT32, channels, channel_map->channel… in handle_get_channels() 423 …hannels = (d->type == PA_DEVICE_TYPE_SINK) ? d->sink->channel_map.channels : d->source->channel_ma… in handle_set_volume() 808 pa_channel_map *channel_map = NULL; in handle_get_all() local 840 channel_map = &d->sink->channel_map; in handle_get_all() 861 channel_map = &d->source->channel_map; in handle_get_all() 879 for (i = 0; i < channel_map->channels; ++i) in handle_get_all() [all …]
|
D | iface-sample.c | 214 for (i = 0; i < s->sample->channel_map.channels; ++i) in handle_get_channels() 215 channels[i] = s->sample->channel_map.map[i]; in handle_get_channels() 217 …_basic_array_variant_reply(conn, msg, DBUS_TYPE_UINT32, channels, s->sample->channel_map.channels); in handle_get_channels() 311 for (i = 0; i < s->sample->channel_map.channels; ++i) in handle_get_all() 312 channels[i] = s->sample->channel_map.map[i]; in handle_get_all() 332 …ERTY_HANDLER_CHANNELS].property_name, DBUS_TYPE_UINT32, channels, s->sample->channel_map.channels); in handle_get_all()
|
/third_party/pulseaudio/src/utils/ |
D | pactl.c | 92 static pa_channel_map channel_map; variable 210 pa_channel_map_snprint(cm, sizeof(cm), &i->channel_map); in get_server_info_callback() 342 pa_channel_map_snprint(cm, sizeof(cm), &i->channel_map), in get_sink_info_callback() 345 …pa_cvolume_snprint_verbose(cv, sizeof(cv), &i->volume, &i->channel_map, i->flags & PA_SINK_DECIBEL… in get_sink_info_callback() 346 pa_cvolume_get_balance(&i->volume, &i->channel_map), in get_sink_info_callback() 451 pa_channel_map_snprint(cm, sizeof(cm), &i->channel_map), in get_source_info_callback() 454 …pa_cvolume_snprint_verbose(cv, sizeof(cv), &i->volume, &i->channel_map, i->flags & PA_SOURCE_DECIB… in get_source_info_callback() 455 pa_cvolume_get_balance(&i->volume, &i->channel_map), in get_source_info_callback() 717 pa_channel_map_snprint(cm, sizeof(cm), &i->channel_map), in get_sink_input_info_callback() 721 pa_cvolume_snprint_verbose(cv, sizeof(cv), &i->volume, &i->channel_map, true), in get_sink_input_info_callback() [all …]
|
D | pacat.c | 100 static pa_channel_map channel_map; variable 452 … if (!(stream = pa_stream_new_with_proplist(c, NULL, &sample_spec, &channel_map, proplist))) { in context_state_callback() 903 if (!pa_channel_map_parse(&channel_map, optarg)) { in main() 1058 … !(sample_spec.channels == 1 && channel_map.map[0] == PA_CHANNEL_POSITION_MONO) && in main() 1059 !(sample_spec.channels == 2 && channel_map.map[0] == PA_CHANNEL_POSITION_LEFT in main() 1060 … && channel_map.map[1] == PA_CHANNEL_POSITION_RIGHT)))) in main() 1086 if (pa_sndfile_read_channel_map(sndfile, &channel_map) < 0) { in main() 1096 pa_channel_map_init_extend(&channel_map, sample_spec.channels, PA_CHANNEL_MAP_DEFAULT); in main() 1098 if (!pa_channel_map_compatible(&channel_map, &sample_spec)) { in main() 1109 if (pa_sndfile_write_channel_map(sndfile, &channel_map) < 0) in main() [all …]
|
/third_party/libsnd/programs/ |
D | sndfile-info.c | 397 int * channel_map ; in chanmap_dump() local 410 if ((channel_map = calloc (sfinfo.channels, sizeof (int))) == NULL) in chanmap_dump() 415 …got_chanmap = sf_command (file, SFC_GET_CHANNEL_MAP_INFO, channel_map, sfinfo.channels * sizeof (i… in chanmap_dump() 420 free (channel_map) ; in chanmap_dump() 431 switch (channel_map [k]) in chanmap_dump() 464 free (channel_map) ; in chanmap_dump()
|
/third_party/pulseaudio/src/pulse/ |
D | introspect.h | 266 pa_channel_map channel_map; /**< Channel map */ member 371 pa_channel_map channel_map; /**< Channel map */ member 445 pa_channel_map channel_map; /**< Default channel map. \since 0.9.15 */ member 636 pa_channel_map channel_map; /**< Channel map */ member 688 pa_channel_map channel_map; /**< Channel map */ member 759 pa_channel_map channel_map; /**< The channel map */ member
|
/third_party/ffmpeg/libavcodec/ |
D | libopusdec.c | 53 int ret, channel_map = 0, gain_db = 0, nb_streams, nb_coupled; in libopus_decode_init() local 72 channel_map = AV_RL8 (avc->extradata + 18); in libopus_decode_init() 81 if (avc->channels > 2 || channel_map) { in libopus_decode_init()
|
D | audiotoolboxdec.c | 47 int channel_map[64]; member 207 at->channel_map[i] = layout->mChannelDescriptions[i].mChannelFlags; in ffat_update_ctx() 385 for (i = 0; i < (sizeof(at->channel_map) / sizeof(at->channel_map[0])); i++) in ffat_create_decoder() 386 at->channel_map[i] = i; in ffat_create_decoder() 462 out_ptr[c] = in_ptr[at->channel_map[c]]; \
|
D | libopusenc.c | 216 const uint8_t * channel_map = NULL; in libopus_validate_layout_and_get_channel_map() local 239 channel_map = ff_vorbis_channel_layout_offsets[avctx->channels - 1]; in libopus_validate_layout_and_get_channel_map() 252 *channel_map_result = channel_map; in libopus_validate_layout_and_get_channel_map() 440 uint8_t *dst, const uint8_t *src, const uint8_t *channel_map, in libopus_copy_samples_with_channel_map() argument 446 const size_t dst_pos = bytes_per_sample * (nb_channels * sample + channel_map[channel]); in libopus_copy_samples_with_channel_map()
|