]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/avfiltergraph.h
unrolling encoding loops
[ffmpeg] / libavfilter / avfiltergraph.h
index 0558de3ac1208b2fb5dd95896ca867c54c3d4380..716d9199f1c5e85d01dc738db6953ac10a5fe42b 100644 (file)
@@ -30,7 +30,10 @@ typedef struct AVFilterGraph {
 } AVFilterGraph;
 
 /**
- * Get a pointer to a graph by instance name
+ * Get from \p graph a filter instance with name \p name.
+ *
+ * @return the pointer to the found filter instance or NULL if it
+ * cannot be found.
  */
 AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, char *name);
 
@@ -41,6 +44,16 @@ AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, char *name);
  */
 int avfilter_graph_add_filter(AVFilterGraph *graphctx, AVFilterContext *filter);
 
+/**
+ * Check for the validity of \p graph.
+ *
+ * A graph is considered valid if all its input and output pads are
+ * connected.
+ *
+ * @return 0 in case of success, a negative value otherwise
+ */
+int avfilter_graph_check_validity(AVFilterGraph *graphctx, AVClass *log_ctx);
+
 /**
  * Configure the formats of all the links in the graph.
  */