Home
last modified time | relevance | path

Searched refs:channel_layouts (Results 1 – 25 of 88) sorted by relevance

1234

/third_party/ffmpeg/libavfilter/
Dformats.c172 uint64_t *channel_layouts; in ff_merge_channel_layouts() local
190 if (KNOWN(b->channel_layouts[i])) in ff_merge_channel_layouts()
191 b->channel_layouts[j++] = b->channel_layouts[i]; in ff_merge_channel_layouts()
198 MERGE_REF(b, a, channel_layouts, AVFilterChannelLayouts, return AVERROR(ENOMEM);); in ff_merge_channel_layouts()
203 if (!(channel_layouts = av_malloc_array(ret_max, sizeof(*channel_layouts)))) in ff_merge_channel_layouts()
208 if (!KNOWN(a->channel_layouts[i])) in ff_merge_channel_layouts()
211 if (a->channel_layouts[i] == b->channel_layouts[j]) { in ff_merge_channel_layouts()
212 channel_layouts[ret_nb++] = a->channel_layouts[i]; in ff_merge_channel_layouts()
213 a->channel_layouts[i] = b->channel_layouts[j] = 0; in ff_merge_channel_layouts()
222 uint64_t fmt = a->channel_layouts[i], bfmt; in ff_merge_channel_layouts()
[all …]
Davfiltergraph.c330 (ret = ff_formats_check_channel_layouts(log, cfg->channel_layouts)) < 0) in filter_link_check_formats()
384 sanitize_channel_layouts(ctx, ctx->inputs[i]->outcfg.channel_layouts); in filter_query_formats()
386 sanitize_channel_layouts(ctx, ctx->outputs[i]->incfg.channel_layouts); in filter_query_formats()
411 f->inputs[i]->outcfg.channel_layouts)) in formats_declared()
419 f->outputs[i]->incfg.channel_layouts)) in formats_declared()
498 MERGE_DISPATCH(channel_layouts, link->incfg.channel_layouts, in query_formats()
499 link->outcfg.channel_layouts) in query_formats()
573 av_assert0( inlink-> incfg.channel_layouts->refcount > 0); in query_formats()
574 av_assert0( inlink->outcfg.channel_layouts->refcount > 0); in query_formats()
575 av_assert0(outlink-> incfg.channel_layouts->refcount > 0); in query_formats()
[all …]
Dbuffersink.c52 int64_t *channel_layouts; ///< list of accepted channel layouts, terminated by -1 member
68 int nb_layouts = NB_ITEMS(buf->channel_layouts); in cleanup_redundant_layouts()
77 n = av_get_channel_layout_nb_channels(buf->channel_layouts[i]); in cleanup_redundant_layouts()
81 buf->channel_layouts[i], n); in cleanup_redundant_layouts()
83 buf->channel_layouts[lc++] = buf->channel_layouts[i]; in cleanup_redundant_layouts()
85 buf->channel_layouts_size = lc * sizeof(*buf->channel_layouts); in cleanup_redundant_layouts()
266 CHECK_LIST_SIZE(channel_layouts) in asink_query_formats()
280 for (i = 0; i < NB_ITEMS(buf->channel_layouts); i++) in asink_query_formats()
281 if ((ret = ff_add_channel_layout(&layouts, buf->channel_layouts[i])) < 0) in asink_query_formats()
320 …{ "channel_layouts", "set the supported channel layouts", OFFSET(channel_layouts), AV_OPT_TYPE_BIN…
Daf_aformat.c41 AVFilterChannelLayouts *channel_layouts; member
107 PARSE_FORMATS(s->channel_layouts_str, uint64_t, s->channel_layouts, in init()
120 ff_channel_layouts_unref(&s->channel_layouts); in uninit()
138 ret = ff_set_common_channel_layouts(ctx, s->channel_layouts ? s->channel_layouts : in query_formats()
140 s->channel_layouts = NULL; in query_formats()
Daf_amerge.c84 if (!ctx->inputs[i]->incfg.channel_layouts || in query_formats()
85 !ctx->inputs[i]->incfg.channel_layouts->nb_channel_layouts) { in query_formats()
90 inlayout[i] = ctx->inputs[i]->incfg.channel_layouts->channel_layouts[0]; in query_formats()
91 if (ctx->inputs[i]->incfg.channel_layouts->nb_channel_layouts > 1) { in query_formats()
139 if ((ret = ff_channel_layouts_ref(layouts, &ctx->inputs[i]->outcfg.channel_layouts)) < 0) in query_formats()
145 if ((ret = ff_channel_layouts_ref(layouts, &ctx->outputs[0]->incfg.channel_layouts)) < 0) in query_formats()
Daf_agate.c358 if (!ctx->inputs[0]->incfg.channel_layouts || in scquery_formats()
359 !ctx->inputs[0]->incfg.channel_layouts->nb_channel_layouts) { in scquery_formats()
365 …ret = ff_add_channel_layout(&layouts, ctx->inputs[0]->incfg.channel_layouts->channel_layouts[0])) … in scquery_formats()
366 (ret = ff_channel_layouts_ref(layouts, &ctx->outputs[0]->incfg.channel_layouts)) < 0) in scquery_formats()
371 if ((ret = ff_channel_layouts_ref(layouts, &ctx->inputs[i]->outcfg.channel_layouts)) < 0) in scquery_formats()
Daf_channelmap.c283 AVFilterChannelLayouts *channel_layouts = NULL; in channelmap_query_formats() local
288 (ret = ff_add_channel_layout(&channel_layouts, s->output_layout)) < 0 || in channelmap_query_formats()
289 (ret = ff_channel_layouts_ref(channel_layouts, in channelmap_query_formats()
290 &ctx->outputs[0]->incfg.channel_layouts)) < 0) in channelmap_query_formats()
294 &ctx->inputs[0]->outcfg.channel_layouts); in channelmap_query_formats()
Daf_sidechaincompress.c309 if (!ctx->inputs[0]->incfg.channel_layouts || in query_formats()
310 !ctx->inputs[0]->incfg.channel_layouts->nb_channel_layouts) { in query_formats()
316 …ret = ff_add_channel_layout(&layouts, ctx->inputs[0]->incfg.channel_layouts->channel_layouts[0])) … in query_formats()
317 (ret = ff_channel_layouts_ref(layouts, &ctx->outputs[0]->incfg.channel_layouts)) < 0) in query_formats()
322 if ((ret = ff_channel_layouts_ref(layouts, &ctx->inputs[i]->outcfg.channel_layouts)) < 0) in query_formats()
Daf_channelsplit.c120 (ret = ff_channel_layouts_ref(in_layouts, &ctx->inputs[0]->outcfg.channel_layouts)) < 0) in query_formats()
128 … (ret = ff_channel_layouts_ref(out_layouts, &ctx->outputs[i]->incfg.channel_layouts)) < 0) in query_formats()
Dbuffersrc.c360 AVFilterChannelLayouts *channel_layouts = NULL; in query_formats() local
378 if ((ret = ff_add_channel_layout(&channel_layouts, in query_formats()
382 if ((ret = ff_set_common_channel_layouts(ctx, channel_layouts)) < 0) in query_formats()
Dbuffersink.h119 const int64_t *channel_layouts; ///< list of allowed channel layouts, terminated by -1 member
/third_party/ffmpeg/tests/api/
Dapi-flac-test.c249 …uint64_t channel_layouts[] = {AV_CH_LAYOUT_STEREO, AV_CH_LAYOUT_5POINT1_BACK, AV_CH_LAYOUT_SURROUN… in main() local
265 for (cl = 0; cl < FF_ARRAY_ELEMS(channel_layouts); cl++) { in main()
267 if (init_encoder(enc, &enc_ctx, channel_layouts[cl], sample_rates[sr]) != 0) in main()
269 if (init_decoder(dec, &dec_ctx, channel_layouts[cl]) != 0) in main()
/third_party/ffmpeg/libavcodec/
Dlibgsmenc.c132 .channel_layouts= (const uint64_t[]) { AV_CH_LAYOUT_MONO, 0 },
148 .channel_layouts= (const uint64_t[]) { AV_CH_LAYOUT_MONO, 0 },
Dlibcodec2.c195 .channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_MONO, 0 },
211 .channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_MONO, 0 },
Daptxdec.c183 .channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_STEREO, 0},
200 .channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_STEREO, 0},
Dmpegaudioenc_fixed.c37 .channel_layouts = (const uint64_t[]){ AV_CH_LAYOUT_MONO,
Dmpegaudioenc_float.c38 .channel_layouts = (const uint64_t[]){ AV_CH_LAYOUT_MONO,
Dpcm-bluray.c57 static const uint32_t channel_layouts[16] = { in pcm_bluray_parse_header() local
107 avctx->channel_layout = channel_layouts[channel_layout]; in pcm_bluray_parse_header()
Dencode.c598 if (avctx->codec->channel_layouts) { in ff_encode_preinit()
602 for (i = 0; avctx->codec->channel_layouts[i] != 0; i++) in ff_encode_preinit()
603 if (avctx->channel_layout == avctx->codec->channel_layouts[i]) in ff_encode_preinit()
605 if (avctx->codec->channel_layouts[i] == 0) { in ff_encode_preinit()
/third_party/ffmpeg/libavfilter/tests/
Dfiltfmts.c59 layouts = filter_ctx->inout##puts[i]->outin##cfg.channel_layouts; \ in print_formats()
63 layouts->channel_layouts[j]); \ in print_formats()
/third_party/ffmpeg/doc/examples/
Dencode_audio.c79 if (!codec->channel_layouts) in select_channel_layout()
82 p = codec->channel_layouts; in select_channel_layout()
Dmuxing.c166 if ((*codec)->channel_layouts) { in add_stream()
167 c->channel_layout = (*codec)->channel_layouts[0]; in add_stream()
168 for (i = 0; (*codec)->channel_layouts[i]; i++) { in add_stream()
169 if ((*codec)->channel_layouts[i] == AV_CH_LAYOUT_STEREO) in add_stream()
/third_party/ffmpeg/fftools/
Dffmpeg_filter.c173 DEF_CHOOSE_FORMAT(channel_layouts, uint64_t, channel_layout, channel_layouts, 0, in DEF_CHOOSE_FORMAT()
534 char *sample_fmts, *sample_rates, *channel_layouts; in configure_output_audio_filter() local
585 channel_layouts = choose_channel_layouts(ofilter); in configure_output_audio_filter()
586 if (sample_fmts || sample_rates || channel_layouts) { in configure_output_audio_filter()
597 if (channel_layouts) in configure_output_audio_filter()
599 channel_layouts); in configure_output_audio_filter()
603 av_freep(&channel_layouts); in configure_output_audio_filter()
/third_party/ffmpeg/tests/filtergraphs/
Dlavr_mix_output_zero1 atrim=end_sample=1024,channelmap=channel_layout=FL|FR|LFE|BC,aformat=channel_layouts=3.0
/third_party/gstreamer/gstplugins_bad/ext/fdkaac/
Dgstfdkaac.h35 extern const GstFdkAacChannelLayout channel_layouts[];

1234