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 | 2013-xx-xx - lavfi 3.8.0 | 16 | 2013-xx-xx - lavfi 3.8.0 |
| 17 | Move all content from avfiltergraph.h to avfilter.h. Deprecate | 17 | Move all content from avfiltergraph.h to avfilter.h. Deprecate |
| 18 | avfilterhraph.h, user applications should include just avfilter.h | 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 | 2013-xx-xx - lavfi 3.7.0 - avfilter.h | 22 | 2013-xx-xx - lavfi 3.7.0 - avfilter.h |
| 22 | Add AVFilter.priv_class for exporting filter options through the AVOptions API | 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 | AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, char *name); | 751 | AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, char *name); |
| 752 | 752 | ||
| 753 | #if FF_API_AVFILTER_OPEN | ||
| 753 | /** | 754 | /** |
| 754 | * Add an existing filter instance to a filter graph. | 755 | * Add an existing filter instance to a filter graph. |
| 755 | * | 756 | * |
| 756 | * @param graphctx the filter graph | 757 | * @param graphctx the filter graph |
| 757 | * @param filter the filter to be added | 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 | int avfilter_graph_add_filter(AVFilterGraph *graphctx, AVFilterContext *filter); | 764 | int avfilter_graph_add_filter(AVFilterGraph *graphctx, AVFilterContext *filter); |
| 765 | #endif | ||
| 760 | 766 | ||
| 761 | /** | 767 | /** |
| 762 | * Create and add a filter instance into an existing graph. | 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 | av_freep(graph); | 58 | av_freep(graph); |
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | #if FF_API_AVFILTER_OPEN | ||
| 61 | int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter) | 62 | int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter) |
| 62 | { | 63 | { |
| 63 | AVFilterContext **filters = av_realloc(graph->filters, | 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 | return 0; | 76 | return 0; |
| 76 | } | 77 | } |
| 78 | #endif | ||
| 77 | 79 | ||
| 78 | int avfilter_graph_create_filter(AVFilterContext **filt_ctx, AVFilter *filt, | 80 | int avfilter_graph_create_filter(AVFilterContext **filt_ctx, AVFilter *filt, |
| 79 | const char *name, const char *args, void *opaque, | 81 | const char *name, const char *args, void *opaque, |