diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-03-31 08:28:11 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-04-11 20:34:14 +0200 |
commit | bc1a985ba030e9861d24965d42792850b43a43ea (patch) | |
tree | 5bfe8c12dcb58b6560a0028a03da63bfc36cde80 /libavfilter/internal.h | |
parent | 38f0c0781a6e099f11c0acec07f9b8be742190c4 (diff) | |
download | ffmpeg-bc1a985ba030e9861d24965d42792850b43a43ea.tar.gz |
lavfi: replace avfilter_open() with avfilter_graph_alloc_filter().
Since we do not support "standalone" filters not attached to an
AVFilterGraph, we should not have a public function to create such
filters. In addition that function is horribly named, the action it does
cannot be possibly described as "opening" a filter.
Diffstat (limited to 'libavfilter/internal.h')
-rw-r--r-- | libavfilter/internal.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libavfilter/internal.h b/libavfilter/internal.h index 62eff729af..5ff150aee4 100644 --- a/libavfilter/internal.h +++ b/libavfilter/internal.h @@ -196,4 +196,14 @@ int ff_request_frame(AVFilterLink *link); */ int ff_filter_frame(AVFilterLink *link, AVFrame *frame); +/** + * Allocate a new filter context and return it. + * + * @param filter what filter to create an instance of + * @param inst_name name to give to the new filter context + * + * @return newly created filter context or NULL on failure + */ +AVFilterContext *ff_filter_alloc(const AVFilter *filter, const char *inst_name); + #endif /* AVFILTER_INTERNAL_H */ |