History

Prefix with "ff_" the functions: ff_avfilter_graph_check_validity() ff_avfilter_graph_config_links() ff_avfilter_graph_config_formats()

and move their declaration to internal.h. These functions are never used in application code, so it is better to consider them internal functions, this can be changed later if necessary. Simplify API. Originally committed as revision 25737 to svn://svn.ffmpeg.org/ffmpeg/trunk

Stefano Sabatini committed 16 years ago

Commit 4fcbb2a1 parent bbf07bf5 files · +42 −31Browse files

Showing the changes to libavfilter/avfiltergraph.c (1 of 5 files). Show all

Unified · Split

libavfilter/avfiltergraph.c+7−6
@@ -25,6 +25,7 @@ · 24 unmodified lines
2525
2626 #include "avfilter.h"
2727 #include "avfiltergraph.h"
28+#include "internal.h"
2829
2930 AVFilterGraph *avfilter_graph_alloc(void)
3031 {
@@ -52,7 +53,7 @@ int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter) · 21 unmodified lines
5253 return 0;
5354 }
5455
55−int avfilter_graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx)
56+int ff_avfilter_graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx)
5657 {
5758 AVFilterContext *filt;
5859 int i, j;
@@ -82,7 +83,7 @@ int avfilter_graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx) · 23 unmodified lines
8283 return 0;
8384 }
8485
85−int avfilter_graph_config_links(AVFilterGraph *graph, AVClass *log_ctx)
86+int ff_avfilter_graph_config_links(AVFilterGraph *graph, AVClass *log_ctx)
8687 {
8788 AVFilterContext *filt;
8889 int i, ret;
@@ -194,7 +195,7 @@ static void pick_formats(AVFilterGraph *graph) · 105 unmodified lines
194195 }
195196 }
196197
197−int avfilter_graph_config_formats(AVFilterGraph *graph, AVClass *log_ctx)
198+int ff_avfilter_graph_config_formats(AVFilterGraph *graph, AVClass *log_ctx)
198199 {
199200 /* find supported formats from sub-filters, and merge along links */
200201 if(query_formats(graph, log_ctx))
@@ -211,11 +212,11 @@ int avfilter_graph_config(AVFilterGraph *graphctx, AVClass *log_ctx) · 10 unmodified lines
211212 {
212213 int ret;
213214
214− if ((ret = avfilter_graph_check_validity(graphctx, log_ctx)))
215+ if ((ret = ff_avfilter_graph_check_validity(graphctx, log_ctx)))
215216 return ret;
216− if ((ret = avfilter_graph_config_formats(graphctx, log_ctx)))
217+ if ((ret = ff_avfilter_graph_config_formats(graphctx, log_ctx)))
217218 return ret;
218− if ((ret = avfilter_graph_config_links(graphctx, log_ctx)))
219+ if ((ret = ff_avfilter_graph_config_links(graphctx, log_ctx)))
219220 return ret;
220221
221222 return 0;

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