summaryrefslogtreecommitdiff
path: root/libavfilter/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/internal.h')
-rw-r--r--libavfilter/internal.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavfilter/internal.h b/libavfilter/internal.h
index 62eff729af..5ff150aee4 100644
--- a/libavfilter/internal.h
+++ b/libavfilter/internal.h
@@ -196,4 +196,14 @@ int ff_request_frame(AVFilterLink *link);
*/
int ff_filter_frame(AVFilterLink *link, AVFrame *frame);
+/**
+ * Allocate a new filter context and return it.
+ *
+ * @param filter what filter to create an instance of
+ * @param inst_name name to give to the new filter context
+ *
+ * @return newly created filter context or NULL on failure
+ */
+AVFilterContext *ff_filter_alloc(const AVFilter *filter, const char *inst_name);
+
#endif /* AVFILTER_INTERNAL_H */