diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-04-04 20:04:55 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-04-04 20:04:55 +0000 |
commit | f8c77c823cc03b76946c5b97e87e81304d421166 (patch) | |
tree | 3b051578b561067a0d8f4014862bf42490c9204b /libavfilter/avfiltergraph.h | |
parent | ffcaef348580ba32c57a85e115c0809e5b857d95 (diff) | |
download | ffmpeg-f8c77c823cc03b76946c5b97e87e81304d421166.tar.gz |
Move simple filter chain loading code over to the filter graph.
Commited in SoC by Bobby Bingham on 2007-07-14 22:26:37
Originally committed as revision 12688 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/avfiltergraph.h')
-rw-r--r-- | libavfilter/avfiltergraph.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libavfilter/avfiltergraph.h b/libavfilter/avfiltergraph.h index 0bfb683d5e..942b10685a 100644 --- a/libavfilter/avfiltergraph.h +++ b/libavfilter/avfiltergraph.h @@ -44,4 +44,17 @@ void avfilter_destroy_graph(AVFilterGraph *graph); */ void avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter); +/** + * Loads the filter graph with a simple chain described by filters. + * @param graph The filter graph to load filters into + * @param count The number of filters to be created + * @param filters_list An array of strings describing the filters to be created. + * The format of each string is "name=params". + * @param first If non-NULL, will be set to the first filter in the chain. + * @param last If non-NULL, will be set to the last filter in the chain. + * @return 0 on success. -1 on error. + */ +int avfilter_graph_load_chain(AVFilterGraph *graph, + unsigned count, char **filter_list, + AVFilterContext **first, AVFilterContext **last); #endif /* FFMPEG_AVFILTER_H */ |