]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/avfiltergraph.h
Avoid using reserved __names.
[ffmpeg] / libavfilter / avfiltergraph.h
index 9b0783d277d685fbea09a83e50ce4dacdae4bcaa..dbfad4fcc7d6ebdfe891b7d5a971a9ea446522ca 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef FFMPEG_AVFILTER_GRAPH_H
-#define FFMPEG_AVFILTER_GRAPH_H
+#ifndef FFMPEG_AVFILTERGRAPH_H
+#define FFMPEG_AVFILTERGRAPH_H
 
 #include "avfilter.h"
 
+typedef struct AVFilterGraph {
+    unsigned filter_count;
+    AVFilterContext **filters;
+} AVFilterGraph;
+
+/**
+ * Get a pointer to a graph by instance name
+ */
+AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, char *name);
+
 /**
  * Add an existing filter instance to a filter graph.
  * @param graph  The filter graph
  * @param filter The filter to be added
  */
-void avfilter_graph_add_filter(AVFilterContext *graphctx, AVFilterContext *filter);
+int avfilter_graph_add_filter(AVFilterGraph *graphctx, AVFilterContext *filter);
+
+/**
+ * Configure the formats of all the links in the graph.
+ */
+int avfilter_graph_config_formats(AVFilterGraph *graphctx);
+
+/**
+ * Free a graph and destroy its links.
+ */
+void avfilter_destroy_graph(AVFilterGraph *graph);
 
-#endif  /* FFMPEG_AVFILTER_H */
+#endif  /* FFMPEG_AVFILTERGRAPH_H */