X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Finternal.h;h=fbe935667fa344948c279aa70666187fdd6c4fda;hb=f04ec05f0ed0c45174c10621bee9e00f62f78f03;hp=0b28422f1f10e7fa88b76e3dd6ad78ab64ca0e9f;hpb=828044aca289f12356e1bdcda232430d8ed22e2d;p=ffmpeg diff --git a/libavfilter/internal.h b/libavfilter/internal.h index 0b28422f1f1..fbe935667fa 100644 --- a/libavfilter/internal.h +++ b/libavfilter/internal.h @@ -339,4 +339,19 @@ enum { }; +/** + * 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); + +/** + * Remove a filter from a graph; + */ +void ff_filter_graph_remove_filter(AVFilterGraph *graph, AVFilterContext *filter); + #endif /* AVFILTER_INTERNAL_H */