/third_party/ffmpeg/libavutil/ |
D | channel_layout.c | 161 int av_get_extended_channel_layout(const char *name, uint64_t* channel_layout, int* nb_channels) in av_get_extended_channel_layout() argument 168 *channel_layout = layout; in av_get_extended_channel_layout() 175 *channel_layout = 0; in av_get_extended_channel_layout() 184 int nb_channels, uint64_t channel_layout) in av_bprint_channel_layout() argument 189 nb_channels = av_get_channel_layout_nb_channels(channel_layout); in av_bprint_channel_layout() 193 channel_layout == channel_layout_map[i].layout) { in av_bprint_channel_layout() 199 if (channel_layout) { in av_bprint_channel_layout() 203 if ((channel_layout & (UINT64_C(1) << i))) { in av_bprint_channel_layout() 218 int nb_channels, uint64_t channel_layout) in av_get_channel_layout_string() argument 223 av_bprint_channel_layout(&bp, nb_channels, channel_layout); in av_get_channel_layout_string() [all …]
|
D | channel_layout.h | 162 int av_get_extended_channel_layout(const char *name, uint64_t* channel_layout, int* nb_channels); 171 void av_get_channel_layout_string(char *buf, int buf_size, int nb_channels, uint64_t channel_layout… 177 void av_bprint_channel_layout(struct AVBPrint *bp, int nb_channels, uint64_t channel_layout); 182 int av_get_channel_layout_nb_channels(uint64_t channel_layout); 198 int av_get_channel_layout_channel_index(uint64_t channel_layout, 204 uint64_t av_channel_layout_extract_channel(uint64_t channel_layout, int index);
|
/third_party/ffmpeg/libavformat/ |
D | flacenc_header.c | 50 int ff_flac_is_native_layout(uint64_t channel_layout) in ff_flac_is_native_layout() argument 52 if (channel_layout == AV_CH_LAYOUT_MONO || in ff_flac_is_native_layout() 53 channel_layout == AV_CH_LAYOUT_STEREO || in ff_flac_is_native_layout() 54 channel_layout == AV_CH_LAYOUT_SURROUND || in ff_flac_is_native_layout() 55 channel_layout == AV_CH_LAYOUT_QUAD || in ff_flac_is_native_layout() 56 channel_layout == AV_CH_LAYOUT_5POINT0 || in ff_flac_is_native_layout() 57 channel_layout == AV_CH_LAYOUT_5POINT1 || in ff_flac_is_native_layout() 58 channel_layout == AV_CH_LAYOUT_6POINT1 || in ff_flac_is_native_layout() 59 channel_layout == AV_CH_LAYOUT_7POINT1) in ff_flac_is_native_layout()
|
D | eacdata.c | 54 int64_t channel_layout = 0; in cdata_read_header() local 60 case 0x040C: cdata->channels = 4; channel_layout = AV_CH_LAYOUT_QUAD; break; in cdata_read_header() 61 case 0x0414: cdata->channels = 6; channel_layout = AV_CH_LAYOUT_5POINT1_BACK; break; in cdata_read_header() 77 st->codecpar->channel_layout = channel_layout; in cdata_read_header()
|
D | isom.c | 392 int64_t channel_layout; member 422 void ff_mov_write_chan(AVIOContext *pb, int64_t channel_layout) in ff_mov_write_chan() argument 427 for (layouts = mov_channel_layout; layouts->channel_layout; layouts++) in ff_mov_write_chan() 428 if (channel_layout == layouts->channel_layout) { in ff_mov_write_chan() 438 avio_wb32(pb, channel_layout); in ff_mov_write_chan()
|
D | mov_chan.c | 495 uint64_t channel_layout, in ff_mov_get_channel_layout_tag() argument 515 channels = av_get_channel_layout_nb_channels(channel_layout); in ff_mov_get_channel_layout_tag() 526 layout_map[j].layout == channel_layout) in ff_mov_get_channel_layout_tag() 536 if (tag == 0 && channel_layout > 0 && channel_layout < 0x40000) { in ff_mov_get_channel_layout_tag() 538 *bitmap = (uint32_t)channel_layout; in ff_mov_get_channel_layout_tag() 592 st->codecpar->channel_layout = label_mask; in ff_mov_read_chan() 594 st->codecpar->channel_layout = ff_mov_get_channel_layout(layout_tag, bitmap); in ff_mov_read_chan()
|
/third_party/ffmpeg/tests/ref/fate/ |
D | flcl1905 | 2 …0.510839|pkt_pos=56|pkt_size=4092|sample_fmt=fltp|nb_samples=2048|channels=2|channel_layout=unknown 3 …0.510839|pkt_pos=56|pkt_size=3720|sample_fmt=fltp|nb_samples=2048|channels=2|channel_layout=unknown 4 …0.510839|pkt_pos=56|pkt_size=3348|sample_fmt=fltp|nb_samples=2048|channels=2|channel_layout=unknown 5 …0.510839|pkt_pos=56|pkt_size=2976|sample_fmt=fltp|nb_samples=2048|channels=2|channel_layout=unknown 6 …0.510839|pkt_pos=56|pkt_size=2604|sample_fmt=fltp|nb_samples=2048|channels=2|channel_layout=unknown 7 …0.510839|pkt_pos=56|pkt_size=2232|sample_fmt=fltp|nb_samples=2048|channels=2|channel_layout=unknown 8 …0.510839|pkt_pos=56|pkt_size=1860|sample_fmt=fltp|nb_samples=2048|channels=2|channel_layout=unknown 9 …0.510839|pkt_pos=56|pkt_size=1488|sample_fmt=fltp|nb_samples=2048|channels=2|channel_layout=unknown 10 …0.510839|pkt_pos=56|pkt_size=1116|sample_fmt=fltp|nb_samples=2048|channels=2|channel_layout=unknown 11 …=0.510839|pkt_pos=56|pkt_size=744|sample_fmt=fltp|nb_samples=2048|channels=2|channel_layout=unknown [all …]
|
D | exif-image-embedded | 50 channel_layout=stereo 69 channel_layout=stereo 88 channel_layout=stereo 107 channel_layout=stereo 126 channel_layout=stereo 145 channel_layout=stereo 164 channel_layout=stereo 183 channel_layout=stereo 202 channel_layout=stereo 221 channel_layout=stereo [all …]
|
D | matroska-flac-extradata-update | 10 #channel_layout 0: 3f 16 #channel_layout 1: 60f 22 #channel_layout 2: 3f
|
/third_party/ffmpeg/libavfilter/ |
D | af_channelsplit.c | 39 uint64_t channel_layout; member 60 uint64_t channel_layout; in init() local 64 if (!(s->channel_layout = av_get_channel_layout(s->channel_layout_str))) { in init() 73 nb_channels = av_get_channel_layout_nb_channels(s->channel_layout); in init() 74 channel_layout = s->channel_layout; in init() 77 … if ((ret = av_get_extended_channel_layout(s->channels_str, &channel_layout, &nb_channels)) < 0) in init() 82 uint64_t channel = av_channel_layout_extract_channel(channel_layout, i); in init() 91 if ((ret = av_get_channel_layout_channel_index(s->channel_layout, channel)) < 0) { in init() 119 if ((ret = ff_add_channel_layout(&in_layouts, s->channel_layout)) < 0 || in query_formats() 125 uint64_t channel = av_channel_layout_extract_channel(s->channel_layout, s->map[i]); in query_formats() [all …]
|
D | buffersrc.c | 64 uint64_t channel_layout; member 79 c->channel_layout != ch_layout || c->channels != ch_count) {\ 81 … av_get_sample_fmt_name(c->sample_fmt), c->sample_rate, c->channel_layout, c->channels,\ 131 if (param->channel_layout) in av_buffersrc_parameters_set() 132 s->channel_layout = param->channel_layout; in av_buffersrc_parameters_set() 172 if (frame && frame->channel_layout && in av_buffersrc_add_frame_flags() 173 av_get_channel_layout_nb_channels(frame->channel_layout) != frame->channels) { in av_buffersrc_add_frame_flags() 196 if (!frame->channel_layout) in av_buffersrc_add_frame_flags() 197 frame->channel_layout = s->channel_layout; in av_buffersrc_add_frame_flags() 198 CHECK_AUDIO_PARAM_CHANGE(ctx, s, frame->sample_rate, frame->channel_layout, in av_buffersrc_add_frame_flags() [all …]
|
D | af_join.c | 52 uint64_t channel_layout; member 119 if (!(out_channel & s->channel_layout)) { in parse_maps() 125 out_ch_idx = av_get_channel_layout_channel_index(s->channel_layout, in parse_maps() 167 if (!(s->channel_layout = av_get_channel_layout(s->channel_layout_str))) { in join_init() 173 s->nb_channels = av_get_channel_layout_nb_channels(s->channel_layout); in join_init() 181 s->channels[i].out_channel = av_channel_layout_extract_channel(s->channel_layout, i); in join_init() 229 if ((ret = ff_add_channel_layout(&layouts, s->channel_layout)) < 0 || in join_query_formats() 254 if (ch->out_channel & link->channel_layout && in guess_map_matching() 272 if ((inputs[i] & link->channel_layout) != link->channel_layout) { in guess_map_any() 273 uint64_t unused = link->channel_layout & ~inputs[i]; in guess_map_any() [all …]
|
D | af_aresample.c | 148 … outlink->channel_layout, outlink->format, outlink->sample_rate, in config_output() 149 inlink->channel_layout, inlink->format, inlink->sample_rate, in config_output() 153 if (!inlink->channel_layout) in config_output() 155 if (!outlink->channel_layout) in config_output() 168 av_assert0(outlink->channel_layout == out_layout || !outlink->channel_layout); in config_output() 173 …_channel_layout_string(inchl_buf, sizeof(inchl_buf), inlink ->channels, inlink ->channel_layout); in config_output() 174 …_channel_layout_string(outchl_buf, sizeof(outchl_buf), outlink->channels, outlink->channel_layout); in config_output() 206 outsamplesref->channel_layout = outlink->channel_layout; in filter_frame()
|
D | audio.c | 43 …v_get_channel_layout_nb_channels(link->channel_layout) || !av_get_channel_layout_nb_channels(link-… in ff_default_get_audio_buffer() 78 frame->channel_layout = link->channel_layout; in ff_default_get_audio_buffer()
|
D | af_resample.c | 131 if (inlink->channel_layout == outlink->channel_layout && in config_output() 134 (av_get_channel_layout_nb_channels(inlink->channel_layout) == 1 && in config_output() 135 av_get_channel_layout_nb_channels(outlink->channel_layout) == 1 && in config_output() 154 av_opt_set_int(s->avr, "in_channel_layout", inlink ->channel_layout, 0); in config_output() 155 av_opt_set_int(s->avr, "out_channel_layout", outlink->channel_layout, 0); in config_output() 175 -1, inlink ->channel_layout); in config_output() 177 -1, outlink->channel_layout); in config_output()
|
/third_party/ffmpeg/libavcodec/ |
D | atrac9tab.h | 36 uint64_t channel_layout; member 44 .channel_layout = AV_CH_LAYOUT_MONO, 49 .channel_layout = AV_CH_LAYOUT_STEREO, 56 .channel_layout = AV_CH_LAYOUT_STEREO, 62 .channel_layout = AV_CH_LAYOUT_5POINT1, 71 .channel_layout = AV_CH_LAYOUT_7POINT1, 81 .channel_layout = AV_CH_LAYOUT_QUAD,
|
D | av3a_parser.c | 58 uint64_t channel_layout; member 72 uint64_t channel_layout; member 220 uint64_t channel_layout = 0; in read_av3a_frame_header() local 272 channel_layout = AV_CH_LAYOUT_MONO; in read_av3a_frame_header() 276 channel_layout = AV_CH_LAYOUT_STEREO; in read_av3a_frame_header() 283 channel_layout = AVS3P3_CH_LAYOUT_5POINT1; in read_av3a_frame_header() 287 channel_layout = AV_CH_LAYOUT_7POINT1; in read_av3a_frame_header() 303 channel_layout = AV_CH_LAYOUT_22POINT2; in read_av3a_frame_header() 430 hdf->channel_layout = channel_layout; in read_av3a_frame_header() 440 hdf->channel_layout = channel_layout; in read_av3a_frame_header() [all …]
|
D | audiotoolboxenc.c | 260 AudioChannelLayout *channel_layout = av_malloc(layout_size); in ffat_init_encoder() local 262 if (!channel_layout) in ffat_init_encoder() 275 av_free(channel_layout); in ffat_init_encoder() 279 if (!avctx->channel_layout) in ffat_init_encoder() 280 avctx->channel_layout = av_get_default_channel_layout(avctx->channels); in ffat_init_encoder() 282 if ((status = remap_layout(channel_layout, avctx->channel_layout, avctx->channels)) < 0) { in ffat_init_encoder() 284 av_free(channel_layout); in ffat_init_encoder() 289 layout_size, channel_layout)) { in ffat_init_encoder() 291 av_free(channel_layout); in ffat_init_encoder() 295 int tag = get_aac_tag(avctx->channel_layout); in ffat_init_encoder() [all …]
|
D | libvorbisenc.c | 143 avctx->channel_layout != (AV_CH_LAYOUT_STEREO|AV_CH_FRONT_CENTER) || in libvorbis_setup() 145 avctx->channel_layout != AV_CH_LAYOUT_2_2 && in libvorbis_setup() 146 avctx->channel_layout != AV_CH_LAYOUT_QUAD || in libvorbis_setup() 148 avctx->channel_layout != AV_CH_LAYOUT_5POINT0 && in libvorbis_setup() 149 avctx->channel_layout != AV_CH_LAYOUT_5POINT0_BACK || in libvorbis_setup() 151 avctx->channel_layout != AV_CH_LAYOUT_5POINT1 && in libvorbis_setup() 152 avctx->channel_layout != AV_CH_LAYOUT_5POINT1_BACK || in libvorbis_setup() 154 avctx->channel_layout != (AV_CH_LAYOUT_5POINT1|AV_CH_BACK_CENTER) || in libvorbis_setup() 156 avctx->channel_layout != AV_CH_LAYOUT_7POINT1) { in libvorbis_setup() 157 if (avctx->channel_layout) { in libvorbis_setup() [all …]
|
D | dolby_e_parser.c | 43 avctx->channel_layout = AV_CH_LAYOUT_4POINT0; in dolby_e_parse() 46 avctx->channel_layout = AV_CH_LAYOUT_5POINT1; in dolby_e_parse() 49 avctx->channel_layout = AV_CH_LAYOUT_7POINT1; in dolby_e_parse()
|
D | pcm-bluray.c | 66 uint8_t channel_layout = header[2] >> 4; in pcm_bluray_parse_header() local 107 avctx->channel_layout = channel_layouts[channel_layout]; in pcm_bluray_parse_header() 108 avctx->channels = channels[channel_layout]; in pcm_bluray_parse_header() 111 channel_layout); in pcm_bluray_parse_header() 164 switch (avctx->channel_layout) { in pcm_bluray_decode_frame()
|
D | atrac3plusdec.c | 90 if (avctx->channel_layout != AV_CH_FRONT_LEFT) in set_channel_params() 91 avctx->channel_layout = AV_CH_LAYOUT_MONO; in set_channel_params() 97 avctx->channel_layout = AV_CH_LAYOUT_STEREO; in set_channel_params() 102 avctx->channel_layout = AV_CH_LAYOUT_SURROUND; in set_channel_params() 108 avctx->channel_layout = AV_CH_LAYOUT_4POINT0; in set_channel_params() 115 avctx->channel_layout = AV_CH_LAYOUT_5POINT1_BACK; in set_channel_params() 123 avctx->channel_layout = AV_CH_LAYOUT_6POINT1_BACK; in set_channel_params() 132 avctx->channel_layout = AV_CH_LAYOUT_7POINT1; in set_channel_params() 176 ctx->my_channel_layout = avctx->channel_layout; in atrac3p_decode_init()
|
/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 358 if (channel_layout & AV_CH_FRONT_LEFT) in pulse_map_channels_to_pulse() 360 if (channel_layout & AV_CH_FRONT_RIGHT) in pulse_map_channels_to_pulse() 362 if (channel_layout & AV_CH_FRONT_CENTER) in pulse_map_channels_to_pulse() 364 if (channel_layout & AV_CH_LOW_FREQUENCY) in pulse_map_channels_to_pulse() 366 if (channel_layout & AV_CH_BACK_LEFT) in pulse_map_channels_to_pulse() 368 if (channel_layout & AV_CH_BACK_RIGHT) in pulse_map_channels_to_pulse() 370 if (channel_layout & AV_CH_FRONT_LEFT_OF_CENTER) in pulse_map_channels_to_pulse() 372 if (channel_layout & AV_CH_FRONT_RIGHT_OF_CENTER) in pulse_map_channels_to_pulse() 374 if (channel_layout & AV_CH_BACK_CENTER) in pulse_map_channels_to_pulse() [all …]
|
/third_party/ffmpeg/libswresample/ |
D | swresample_frame.c | 31 if (av_opt_set_int(s, "icl", in->channel_layout, 0) < 0) in swr_config_frame() 40 if (av_opt_set_int(s, "ocl", out->channel_layout, 0) < 0) in swr_config_frame() 60 if (s->in_ch_layout != in->channel_layout || in config_changed() 68 if (s->out_ch_layout != out->channel_layout || in config_changed() 118 int channels = av_get_channel_layout_nb_channels(out->channel_layout); in available_samples()
|
/third_party/ffmpeg/tests/api/ |
D | api-flac-test.c | 69 ctx->channel_layout = ch_layout; in init_encoder() 96 ctx->channel_layout = ch_layout; in init_decoder() 133 in_frame->channel_layout = enc_ctx->channel_layout; in run_test() 211 if (in_frame->channel_layout != out_frame->channel_layout) { in run_test()
|