/third_party/ffmpeg/libavfilter/ |
H A D | formats.c | 216 AVChannelLayout *channel_layouts; in merge_channel_layouts() local 234 if (KNOWN(&b->channel_layouts[i]) && i != j++) in merge_channel_layouts() 235 av_channel_layout_copy(&b->channel_layouts[j], &b->channel_layouts[i]); in merge_channel_layouts() 242 MERGE_REF(b, a, channel_layouts, AVFilterChannelLayouts, return AVERROR(ENOMEM);); in merge_channel_layouts() 247 if (!(channel_layouts = av_calloc(ret_max, sizeof(*channel_layouts)))) in merge_channel_layouts() 252 if (!KNOWN(&a->channel_layouts[i])) in merge_channel_layouts() 255 if (!av_channel_layout_compare(&a->channel_layouts[i], &b->channel_layouts[ in merge_channel_layouts() 709 ff_set_common_channel_layouts(AVFilterContext *ctx, AVFilterChannelLayouts *channel_layouts) ff_set_common_channel_layouts() argument [all...] |
H A D | af_aformat.c | 41 AVFilterChannelLayouts *channel_layouts; member 56 { "channel_layouts", "A '|'-separated list of channel layouts.", OFFSET(channel_layouts_str), AV_OPT_TYPE_STRING, .flags = A|F }, 122 ret = ff_add_channel_layout(&s->channel_layouts, &fmt); in parse_channel_layouts() 155 ff_channel_layouts_unref(&s->channel_layouts); in uninit() 173 ret = ff_set_common_channel_layouts(ctx, s->channel_layouts ? s->channel_layouts : in query_formats() 175 s->channel_layouts = NULL; in query_formats()
|
H A D | buffersink.c | 54 int64_t *channel_layouts; ///< list of accepted channel layouts member 73 int nb_layouts = NB_ITEMS(buf->channel_layouts); in cleanup_redundant_layouts() 82 n = av_popcount64(buf->channel_layouts[i]); in cleanup_redundant_layouts() 86 buf->channel_layouts[i], n); in cleanup_redundant_layouts() 88 buf->channel_layouts[lc++] = buf->channel_layouts[i]; in cleanup_redundant_layouts() 90 buf->channel_layouts_size = lc * sizeof(*buf->channel_layouts); in cleanup_redundant_layouts() 295 CHECK_LIST_SIZE(channel_layouts) in asink_query_formats() 314 for (i = 0; i < NB_ITEMS(buf->channel_layouts); i++) in asink_query_formats() 315 if ((ret = av_channel_layout_from_mask(&layout, buf->channel_layouts[ in asink_query_formats() [all...] |
H A D | avfiltergraph.c | 308 (ret = ff_formats_check_channel_layouts(log, cfg->channel_layouts)) < 0) in filter_link_check_formats() 382 f->inputs[i]->outcfg.channel_layouts)) in formats_declared() 390 f->outputs[i]->incfg.channel_layouts)) in formats_declared() 516 av_assert0( inlink-> incfg.channel_layouts->refcount > 0); in query_formats() 517 av_assert0( inlink->outcfg.channel_layouts->refcount > 0); in query_formats() 518 av_assert0(outlink-> incfg.channel_layouts->refcount > 0); in query_formats() 519 av_assert0(outlink->outcfg.channel_layouts->refcount > 0); in query_formats() 651 if (link->incfg.channel_layouts->all_layouts) { in pick_format() 655 if (!link->incfg.channel_layouts->all_counts) in pick_format() 658 "'aformat=channel_layouts in pick_format() [all...] |
H A D | af_amerge.c | 82 if (!ctx->inputs[i]->incfg.channel_layouts || in query_formats() 83 !ctx->inputs[i]->incfg.channel_layouts->nb_channel_layouts) { in query_formats() 88 inlayout[i] = &ctx->inputs[i]->incfg.channel_layouts->channel_layouts[0]; in query_formats() 89 if (ctx->inputs[i]->incfg.channel_layouts->nb_channel_layouts > 1) { in query_formats() 138 if ((ret = ff_channel_layouts_ref(layouts, &ctx->inputs[i]->outcfg.channel_layouts)) < 0) in query_formats() 144 if ((ret = ff_channel_layouts_ref(layouts, &ctx->outputs[0]->incfg.channel_layouts)) < 0) in query_formats()
|
H A D | af_channelmap.c | 298 AVFilterChannelLayouts *channel_layouts = NULL; in channelmap_query_formats() local 303 (ret = ff_add_channel_layout(&channel_layouts, &s->output_layout)) < 0 || in channelmap_query_formats() 304 (ret = ff_channel_layouts_ref(channel_layouts, in channelmap_query_formats() 305 &ctx->outputs[0]->incfg.channel_layouts)) < 0) in channelmap_query_formats() 309 &ctx->inputs[0]->outcfg.channel_layouts); in channelmap_query_formats()
|
H A D | af_virtualbass.c | 60 (ret = ff_channel_layouts_ref(in_layout, &ctx->inputs[0]->outcfg.channel_layouts)) < 0 || in query_formats() 62 (ret = ff_channel_layouts_ref(out_layout, &ctx->outputs[0]->incfg.channel_layouts)) < 0) in query_formats()
|
H A D | af_channelsplit.c | 140 (ret = ff_channel_layouts_ref(in_layouts, &ctx->inputs[0]->outcfg.channel_layouts)) < 0) in query_formats() 150 (ret = ff_channel_layouts_ref(out_layouts, &ctx->outputs[i]->incfg.channel_layouts)) < 0) in query_formats()
|
H A D | buffersink.h | 118 const int64_t *channel_layouts; ///< list of allowed channel layouts, terminated by -1 member
|
H A D | buffersrc.c | 406 AVFilterChannelLayouts *channel_layouts = NULL; in query_formats() local 424 if ((ret = ff_add_channel_layout(&channel_layouts, &c->ch_layout)) < 0) in query_formats() 426 if ((ret = ff_set_common_channel_layouts(ctx, channel_layouts)) < 0) in query_formats()
|
H A D | af_aresample.c | 93 if ((ret = ff_channel_layouts_ref(in_layouts, &inlink->outcfg.channel_layouts)) < 0) in query_formats() 122 return ff_channel_layouts_ref(out_layouts, &outlink->incfg.channel_layouts); in query_formats()
|
H A D | af_headphone.c | 608 ret = ff_channel_layouts_ref(layouts, &ctx->inputs[0]->outcfg.channel_layouts); in query_formats() 615 ret = ff_channel_layouts_ref(stereo_layout, &ctx->outputs[0]->incfg.channel_layouts); in query_formats() 623 ret = ff_channel_layouts_ref(hrir_layouts, &ctx->inputs[1]->outcfg.channel_layouts); in query_formats() 628 ret = ff_channel_layouts_ref(stereo_layout, &ctx->inputs[i]->outcfg.channel_layouts); in query_formats()
|
H A D | af_lv2.c | 520 ret = ff_channel_layouts_ref(layouts, &inlink->outcfg.channel_layouts); in query_formats() 525 ret = ff_channel_layouts_ref(layouts, &outlink->incfg.channel_layouts); in query_formats() 538 ret = ff_channel_layouts_ref(layouts, &outlink->incfg.channel_layouts); in query_formats()
|
/third_party/ffmpeg/tests/api/ |
H A D | api-flac-test.c | 250 const AVChannelLayout channel_layouts[] = { AV_CHANNEL_LAYOUT_STEREO, in main() local 269 for (cl = 0; cl < FF_ARRAY_ELEMS(channel_layouts); cl++) { in main() 271 if (init_encoder(enc, &enc_ctx, &channel_layouts[cl], sample_rates[sr]) != 0) in main() 273 if (init_decoder(dec, &dec_ctx, &channel_layouts[cl]) != 0) in main()
|
/third_party/ffmpeg/libavcodec/ |
H A D | libgsmenc.c | 131 .p.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_MONO, 0 }, 151 .p.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_MONO, 0 },
|
H A D | mpegaudioenc_float.c | 41 .p.channel_layouts = (const uint64_t[]){ AV_CH_LAYOUT_MONO,
|
H A D | mpegaudioenc_fixed.c | 40 .p.channel_layouts = (const uint64_t[]){ AV_CH_LAYOUT_MONO,
|
H A D | aptxdec.c | 188 .p.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_STEREO, 0}, 208 .p.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_STEREO, 0},
|
H A D | libcodec2.c | 193 .p.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_MONO, 0 }, 212 .p.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_MONO, 0 },
|
H A D | pcm-bluray.c | 58 static const AVChannelLayout channel_layouts[16] = { in pcm_bluray_parse_header() local 107 avctx->ch_layout = channel_layouts[channel_layout]; in pcm_bluray_parse_header()
|
H A D | codec.h | 226 const uint64_t *channel_layouts; ///< array of support channel layouts, or NULL if unknown. array is terminated by 0 member
|
H A D | aptxenc.c | 260 .p.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_STEREO, 0}, 282 .p.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_STEREO, 0},
|
H A D | ac3enc_float.c | 142 .p.channel_layouts = ff_ac3_channel_layouts,
|
H A D | ac3enc_fixed.c | 139 .p.channel_layouts = ff_ac3_channel_layouts,
|
/third_party/ffmpeg/libavfilter/tests/ |
H A D | filtfmts.c | 53 const AVFilterChannelLayouts *const layouts = cfg->channel_layouts; in print_formats_internal() 62 av_channel_layout_describe(&layouts->channel_layouts[j], buf, sizeof(buf)); in print_formats_internal()
|