]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/avfiltergraph.h
lavfi: switch to an AVOptions-based system.
[ffmpeg] / libavfilter / avfiltergraph.h
index 0d250df614f4aa9856f05ccba04ab688e7bad91d..9859389390af4e6fbe9f089e9960731fe5fd64c2 100644 (file)
 #include "libavutil/log.h"
 
 typedef struct AVFilterGraph {
-#if FF_API_GRAPH_AVCLASS
     const AVClass *av_class;
-#endif
+#if FF_API_FOO_COUNT
+    attribute_deprecated
     unsigned filter_count;
+#endif
     AVFilterContext **filters;
+#if !FF_API_FOO_COUNT
+    unsigned nb_filters;
+#endif
 
     char *scale_sws_opts; ///< sws options to use for the auto-inserted scale filters
+    char *resample_lavr_opts;   ///< libavresample options to use for the auto-inserted resample filters
+#if FF_API_FOO_COUNT
+    unsigned nb_filters;
+#endif
 } AVFilterGraph;
 
 /**
@@ -111,6 +119,19 @@ typedef struct AVFilterInOut {
     struct AVFilterInOut *next;
 } AVFilterInOut;
 
+/**
+ * Allocate a single AVFilterInOut entry.
+ * Must be freed with avfilter_inout_free().
+ * @return allocated AVFilterInOut on success, NULL on failure.
+ */
+AVFilterInOut *avfilter_inout_alloc(void);
+
+/**
+ * Free the supplied list of AVFilterInOut and set *inout to NULL.
+ * If *inout is NULL, do nothing.
+ */
+void avfilter_inout_free(AVFilterInOut **inout);
+
 /**
  * Add a graph described by a string to a graph.
  *