Lines Matching defs:fmts
37 #define MERGE_REF(ret, a, fmts, type, fail) \
53 av_freep(&a->fmts); \
61 #define MERGE_FORMATS(ret, a, b, fmts, nb, type, fail) \
69 if (!(ret->fmts = av_malloc_array(count, sizeof(*ret->fmts)))) \
73 if (a->fmts[i] == b->fmts[j]) { \
76 av_free(ret->fmts); \
80 ret->fmts[k++] = a->fmts[i]; \
88 MERGE_REF(ret, a, fmts, type, fail); \
89 MERGE_REF(ret, b, fmts, type, fail); \
254 int ff_fmt_is_in(int fmt, const int *fmts)
258 for (p = fmts; *p != -1; p++) {
280 if (fmts) \
281 for (count = 0; fmts[count] != -1; count++) \
294 AVFilterFormats *ff_make_format_list(const int *fmts)
298 formats->formats[count] = fmts[count];
303 AVFilterChannelLayouts *avfilter_make_format64_list(const int64_t *fmts)
308 memcpy(formats->channel_layouts, fmts,
316 type *fmts; \
321 fmts = av_realloc((*f)->list, \
323 if (!fmts) \
326 (*f)->list = fmts; \
492 #define SET_COMMON_FORMATS(ctx, fmts, in_fmts, out_fmts, ref, list) \
498 ref(fmts, &ctx->inputs[i]->out_fmts); \
504 ref(fmts, &ctx->outputs[i]->in_fmts); \
510 av_freep(&fmts->list); \
511 av_freep(&fmts->refs); \
512 av_freep(&fmts); \