Originally committed as revision 12734 to svn://svn.ffmpeg.org/ffmpeg/trunk
Showing the changes to libavfilter/avfiltergraph.h (1 of 2 files). Show all
Unified · Split
| @@ -66,7 +66,10 @@ typedef struct · 65 unmodified lines | ||
| 66 | 66 | AVFilterGraphDescExport *outputs; ///< outputs to export |
| 67 | 67 | } AVFilterGraphDesc; |
| 68 | 68 | |
| 69 | −extern AVFilter avfilter_vf_graph; | |
| 69 | +typedef struct AVFilterGraph { | |
| 70 | + unsigned filter_count; | |
| 71 | + AVFilterContext **filters; | |
| 72 | +} GraphContext; | |
| 70 | 73 | |
| 71 | 74 | /** |
| 72 | 75 | * Parse a graph composed of a simple chain of filters which is described by |
| @@ -87,20 +90,20 @@ void avfilter_graph_free_desc(AVFilterGraphDesc *desc); · 14 unmodified lines | ||
| 87 | 90 | * @param graph The filter graph |
| 88 | 91 | * @param filter The filter to be added |
| 89 | 92 | */ |
| 90 | −void avfilter_graph_add_filter(AVFilterContext *graphctx, AVFilterContext *filter); | |
| 93 | +void avfilter_graph_add_filter(GraphContext *graphctx, AVFilterContext *filter); | |
| 91 | 94 | |
| 92 | 95 | /** |
| 93 | 96 | * Configure the formats of all the links in the graph. |
| 94 | 97 | */ |
| 95 | −int avfilter_graph_config_formats(AVFilterContext *graphctx); | |
| 98 | +int avfilter_graph_config_formats(GraphContext *graphctx); | |
| 96 | 99 | |
| 97 | 100 | /** |
| 98 | 101 | * Configure the parameters (resolution, etc) of all links in the graph. |
| 99 | 102 | */ |
| 100 | −int avfilter_graph_config_links(AVFilterContext *graphctx); | |
| 103 | +int avfilter_graph_config_links(GraphContext *graphctx); | |
| 101 | 104 | |
| 102 | 105 | |
| 103 | −int graph_load_from_desc3(AVFilterContext *ctx, AVFilterGraphDesc *desc, | |
| 106 | +int graph_load_from_desc3(GraphContext *ctx, AVFilterGraphDesc *desc, | |
| 104 | 107 | AVFilterContext *in, int inpad, |
| 105 | 108 | AVFilterContext *out, int outpad); |
| 106 | 109 | |