Since this function adds a standalone filter to a filter graph and we do not support creating such filters, there is no reason for this function to exist.
Unified · Split
| @@ -16,7 +16,8 @@ API changes, most recent first: · 15 unmodified lines | ||
| 16 | 16 | 2013-xx-xx - lavfi 3.8.0 |
| 17 | 17 | Move all content from avfiltergraph.h to avfilter.h. Deprecate |
| 18 | 18 | avfilterhraph.h, user applications should include just avfilter.h |
| 19 | − Add avfilter_graph_alloc_filter(), deprecate avfilter_open(). | |
| 19 | + Add avfilter_graph_alloc_filter(), deprecate avfilter_open() and | |
| 20 | + avfilter_graph_add_filter(). | |
| 20 | 21 | |
| 21 | 22 | 2013-xx-xx - lavfi 3.7.0 - avfilter.h |
| 22 | 23 | Add AVFilter.priv_class for exporting filter options through the AVOptions API |
| @@ -750,13 +750,19 @@ AVFilterContext *avfilter_graph_alloc_filter(AVFilterGraph *graph, · 749 unmodified lines | ||
| 750 | 750 | */ |
| 751 | 751 | AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, char *name); |
| 752 | 752 | |
| 753 | +#if FF_API_AVFILTER_OPEN | |
| 753 | 754 | /** |
| 754 | 755 | * Add an existing filter instance to a filter graph. |
| 755 | 756 | * |
| 756 | 757 | * @param graphctx the filter graph |
| 757 | 758 | * @param filter the filter to be added |
| 759 | + * | |
| 760 | + * @deprecated use avfilter_graph_alloc_filter() to allocate a filter in a | |
| 761 | + * filter graph | |
| 758 | 762 | */ |
| 763 | +attribute_deprecated | |
| 759 | 764 | int avfilter_graph_add_filter(AVFilterGraph *graphctx, AVFilterContext *filter); |
| 765 | +#endif | |
| 760 | 766 | |
| 761 | 767 | /** |
| 762 | 768 | * Create and add a filter instance into an existing graph. |
| @@ -58,6 +58,7 @@ void avfilter_graph_free(AVFilterGraph **graph) · 57 unmodified lines | ||
| 58 | 58 | av_freep(graph); |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | +#if FF_API_AVFILTER_OPEN | |
| 61 | 62 | int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter) |
| 62 | 63 | { |
| 63 | 64 | AVFilterContext **filters = av_realloc(graph->filters, |
| @@ -74,6 +75,7 @@ int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter) · 10 unmodified lines | ||
| 74 | 75 | |
| 75 | 76 | return 0; |
| 76 | 77 | } |
| 78 | +#endif | |
| 77 | 79 | |
| 78 | 80 | int avfilter_graph_create_filter(AVFilterContext **filt_ctx, AVFilter *filt, |
| 79 | 81 | const char *name, const char *args, void *opaque, |