summaryrefslogtreecommitdiff
path: root/libavfilter/graphparser.h
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-05-24 20:41:27 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-05-24 20:41:27 +0000
commit6a0c770b216098c5fa9c8cc3b2330d3c5121199c (patch)
tree138ad714b52d64de2dc5c4b2ab9d05798cf67ab5 /libavfilter/graphparser.h
parentd835680e3c6aeee8998083b5d5462cf6f5308d70 (diff)
Pass the inputs and outputs of avfilter_parse_graph() with a AVFilterInOut linked list
Commited in SoC by Vitor Sessak on 2008-04-23 20:40:49 Originally committed as revision 13338 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/graphparser.h')
-rw-r--r--libavfilter/graphparser.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/libavfilter/graphparser.h b/libavfilter/graphparser.h
index c255824e27..410179e423 100644
--- a/libavfilter/graphparser.h
+++ b/libavfilter/graphparser.h
@@ -25,6 +25,23 @@
#include "avfilter.h"
#include "avfiltergraph.h"
+enum LinkType {
+ LinkTypeIn,
+ LinkTypeOut,
+};
+
+/**
+ * A linked-list of the inputs/outputs of the filter chain.
+ */
+typedef struct AVFilterInOut {
+ enum LinkType type;
+ const char *name;
+ AVFilterContext *filter;
+ int pad_idx;
+
+ struct AVFilterInOut *next;
+} AVFilterInOut;
+
/**
* Add to a graph a graph described by a string.
* @param graph the filter graph where to link the parsed graph context
@@ -36,8 +53,6 @@
* @return zero on success, -1 on error
*/
int avfilter_parse_graph(AVFilterGraph *graph, const char *filters,
- AVFilterContext *in, int inpad,
- AVFilterContext *out, int outpad,
- AVClass *log_ctx);
+ AVFilterInOut *inouts, AVClass *log_ctx);
#endif /* FFMPEG_GRAPHPARSER_H */