summaryrefslogtreecommitdiff
path: root/libavfilter/internal.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-06-30 09:51:17 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-07-01 12:14:16 +0200
commit7464a53aaa5a241858ffbcb0194d3fc44a7aa441 (patch)
treedd17645623fb10135a6ded42bdb262a41841e53c /libavfilter/internal.h
parent518d8d436566e6260d73346cd999ff69eeb94e49 (diff)
lavfi: make pix_fmt_is_in() in vf_lut.c an internal function
Also generalize it, making it accept ints rather than pixel formats. Allow factorization.
Diffstat (limited to 'libavfilter/internal.h')
-rw-r--r--libavfilter/internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/internal.h b/libavfilter/internal.h
index be1e9b08f2..7537565768 100644
--- a/libavfilter/internal.h
+++ b/libavfilter/internal.h
@@ -58,4 +58,7 @@ int ff_avfilter_graph_config_formats(AVFilterGraph *graphctx, AVClass *log_ctx);
/** default handler for freeing audio/video buffer when there are no references left */
void ff_avfilter_default_free_buffer(AVFilterBuffer *buf);
+/** Tell is a format is contained in the provided list terminated by -1. */
+int ff_fmt_is_in(int fmt, const int *fmts);
+
#endif /* AVFILTER_INTERNAL_H */