Revision b9a7a65a libavfilter/avfiltergraph.h

View differences:

libavfilter/avfiltergraph.h
24 24

  
25 25
#include "avfilter.h"
26 26

  
27
typedef struct AVFilterGraph AVFilterGraph;
28

  
29
/**
30
 * Create a new filter graph
31
 */
32
AVFilterGraph *avfilter_create_graph(void);
33

  
34
/**
35
 * Destroy a filter graph, and any filters in it.
36
 * @param graph The filter graph to destroy
37
 */
38
void avfilter_destroy_graph(AVFilterGraph *graph);
39

  
40 27
/**
41 28
 * Add an existing filter instance to a filter graph.
42 29
 * @param graph  The filter graph
43 30
 * @param filter The filter to be added
44 31
 */
45
void avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter);
32
void avfilter_graph_add_filter(AVFilterContext *graphctx, AVFilterContext *filter);
46 33

  
47
/**
48
 * Loads the filter graph with a simple chain described by filters.
49
 * @param graph   The filter graph to load filters into
50
 * @param count   The number of filters to be created
51
 * @param filters_list An array of strings describing the filters to be created.
52
 *                The format of each string is "name=params".
53
 * @param first   If non-NULL, will be set to the first filter in the chain.
54
 * @param last    If non-NULL, will be set to the last filter in the chain.
55
 * @return 0 on success.  -1 on error.
56
 */
57
int avfilter_graph_load_chain(AVFilterGraph *graph,
58
                              unsigned count, char **filter_list, void **opaque,
59
                              AVFilterContext **first, AVFilterContext **last);
60 34
#endif  /* FFMPEG_AVFILTER_H */

Also available in: Unified diff