AVFilterFormats *avfilter_make_format64_list(const int64_t *fmts) { MAKE_FORMAT_LIST(); if (count) memcpy(formats->formats, fmts, sizeof(*formats->formats) * count); return formats; }
AVFilterFormats *avfilter_make_format_list(const int *fmts) { MAKE_FORMAT_LIST(); while (count--) formats->formats[count] = fmts[count]; return formats; }
AVFilterChannelLayouts *avfilter_make_format64_list(const int64_t *fmts) { MAKE_FORMAT_LIST(AVFilterChannelLayouts, channel_layouts, nb_channel_layouts); if (count) memcpy(formats->channel_layouts, fmts, sizeof(*formats->channel_layouts) * count); return formats; }