History

lavfi: deprecate avfilter_graph_add_filter().

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.

Anton Khirnov committed 13 years ago

Commit c2c98011 parent bc1a9853 files · +10 −1Browse files

Unified · Split

3 files
  1. doc/APIchanges +2 −1
  2. libavfilter/avfilter.h +6 −0
  3. libavfilter/avfiltergraph.c +2 −0
doc/APIchanges+2−1
@@ -16,7 +16,8 @@ API changes, most recent first: · 15 unmodified lines
162013-xx-xx - lavfi 3.8.0162013-xx-xx - lavfi 3.8.0
17 Move all content from avfiltergraph.h to avfilter.h. Deprecate17 Move all content from avfiltergraph.h to avfilter.h. Deprecate
18 avfilterhraph.h, user applications should include just avfilter.h18 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
212013-xx-xx - lavfi 3.7.0 - avfilter.h222013-xx-xx - lavfi 3.7.0 - avfilter.h
22 Add AVFilter.priv_class for exporting filter options through the AVOptions API23 Add AVFilter.priv_class for exporting filter options through the AVOptions API
libavfilter/avfilter.h+6−0
@@ -750,13 +750,19 @@ AVFilterContext *avfilter_graph_alloc_filter(AVFilterGraph *graph, · 749 unmodified lines
750 */750 */
751AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, char *name);751AVFilterContext *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 graph757 * @param graphctx the filter graph
757 * @param filter the filter to be added758 * @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 */
763attribute_deprecated
759int avfilter_graph_add_filter(AVFilterGraph *graphctx, AVFilterContext *filter);764int 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.
libavfilter/avfiltergraph.c+2−0
@@ -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
61int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter)62int 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
78int avfilter_graph_create_filter(AVFilterContext **filt_ctx, AVFilter *filt,80int 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,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t