diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 21:36:46 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 21:36:46 +0000 |
commit | e6f560bbaa4f8e5ad560ceeceda15fdb79c8411c (patch) | |
tree | 0886a5c1591b67a8bacc9bfba694144528c25730 /libavfilter/avfilter.c | |
parent | 2350e69ceef1d296d50ba799ecfe2c33110981ab (diff) |
Split filter graphs out into their own source & header files.
Commited in SoC by Bobby Bingham on 2007-07-14 21:20:21
Originally committed as revision 11990 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r-- | libavfilter/avfilter.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index eaee0220cb..f897f1acb3 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -31,33 +31,6 @@ static int filter_count = 0; static AVFilter **filters = NULL; -struct AVFilterGraph { - unsigned filter_count; - AVFilterContext **filters; -}; - -AVFilterGraph *avfilter_create_graph(void) -{ - return av_mallocz(sizeof(AVFilterGraph)); -} - -void avfilter_destroy_graph(AVFilterGraph *graph) -{ - unsigned i; - - for(i = 0; i < graph->filter_count; i ++) - avfilter_destroy(graph->filters[i]); - av_free(graph->filters); - av_free(graph); -} - -void avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter) -{ - graph->filters = av_realloc(graph->filters, - sizeof(AVFilterContext*) * ++graph->filter_count); - graph->filters[graph->filter_count - 1] = filter; -} - /* TODO: buffer pool. see comment for avfilter_default_get_video_buffer() */ void avfilter_default_free_video_buffer(AVFilterPic *pic) { |