diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-28 23:51:03 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-10-17 20:05:38 +0400 |
commit | 8fe0c527f33fe6d2e89d62a23ae912553572452b (patch) | |
tree | d955208bfcffbad28d1aedce78b758effe17e8b6 /libavfilter/formats.c | |
parent | 85afbb1d00d58812df5d634e946b2fcf653bcd8e (diff) |
lavfi: add LUT (LookUp Table) generic filters
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavfilter/formats.c')
-rw-r--r-- | libavfilter/formats.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavfilter/formats.c b/libavfilter/formats.c index ae916cf16c..848b2ee119 100644 --- a/libavfilter/formats.c +++ b/libavfilter/formats.c @@ -21,6 +21,7 @@ #include "libavutil/pixdesc.h" #include "avfilter.h" +#include "internal.h" /** * Add all refs from a to ret and destroy a. @@ -70,6 +71,17 @@ AVFilterFormats *avfilter_merge_formats(AVFilterFormats *a, AVFilterFormats *b) return ret; } +int ff_fmt_is_in(int fmt, const int *fmts) +{ + const int *p; + + for (p = fmts; *p != PIX_FMT_NONE; p++) { + if (fmt == *p) + return 1; + } + return 0; +} + AVFilterFormats *avfilter_make_format_list(const int *fmts) { AVFilterFormats *formats; |