X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fgraphparser.h;h=510b4b3357d638fcec388c41c9cc98c1aae2a078;hb=801ab9808863415a80a576b26c45cb06187cc239;hp=410179e4236137fe56f709462726f76588e92724;hpb=6a0c770b216098c5fa9c8cc3b2330d3c5121199c;p=ffmpeg diff --git a/libavfilter/graphparser.h b/libavfilter/graphparser.h index 410179e4236..510b4b3357d 100644 --- a/libavfilter/graphparser.h +++ b/libavfilter/graphparser.h @@ -19,23 +19,17 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef FFMPEG_GRAPHPARSER_H -#define FFMPEG_GRAPHPARSER_H +#ifndef AVFILTER_GRAPHPARSER_H +#define AVFILTER_GRAPHPARSER_H #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; + char *name; AVFilterContext *filter; int pad_idx; @@ -43,16 +37,16 @@ typedef struct AVFilterInOut { } AVFilterInOut; /** - * Add to a graph a graph described by a string. + * Add a graph described by a string to a graph. + * * @param graph the filter graph where to link the parsed graph context * @param filters string to be parsed - * @param in input to the graph to be parsed (TODO: allow several) - * @param inpad pad index of the input - * @param out output to the graph to be parsed (TODO: allow several) - * @param outpad pad index of the output + * @param inputs linked list to the inputs of the graph + * @param outputs linked list to the outputs of the graph * @return zero on success, -1 on error */ -int avfilter_parse_graph(AVFilterGraph *graph, const char *filters, - AVFilterInOut *inouts, AVClass *log_ctx); +int avfilter_graph_parse(AVFilterGraph *graph, const char *filters, + AVFilterInOut *inputs, AVFilterInOut *outputs, + AVClass *log_ctx); -#endif /* FFMPEG_GRAPHPARSER_H */ +#endif /* AVFILTER_GRAPHPARSER_H */