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
This commit is contained in:
Stefano Sabatini
2010-11-13 00:21:28 +00:00
parent bbf07bf9b8
commit 4fcbb2af33
5 changed files with 42 additions and 31 deletions
+7 -6
View File
@@ -25,6 +25,7 @@
#include "avfilter.h"
#include "avfiltergraph.h"
#include "internal.h"
AVFilterGraph *avfilter_graph_alloc(void)
{
@@ -52,7 +53,7 @@ int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter)
return 0;
}
int avfilter_graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx)
int ff_avfilter_graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx)
{
AVFilterContext *filt;
int i, j;
@@ -82,7 +83,7 @@ int avfilter_graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx)
return 0;
}
int avfilter_graph_config_links(AVFilterGraph *graph, AVClass *log_ctx)
int ff_avfilter_graph_config_links(AVFilterGraph *graph, AVClass *log_ctx)
{
AVFilterContext *filt;
int i, ret;
@@ -194,7 +195,7 @@ static void pick_formats(AVFilterGraph *graph)
}
}
int avfilter_graph_config_formats(AVFilterGraph *graph, AVClass *log_ctx)
int ff_avfilter_graph_config_formats(AVFilterGraph *graph, AVClass *log_ctx)
{
/* find supported formats from sub-filters, and merge along links */
if(query_formats(graph, log_ctx))
@@ -211,11 +212,11 @@ int avfilter_graph_config(AVFilterGraph *graphctx, AVClass *log_ctx)
{
int ret;
if ((ret = avfilter_graph_check_validity(graphctx, log_ctx)))
if ((ret = ff_avfilter_graph_check_validity(graphctx, log_ctx)))
return ret;
if ((ret = avfilter_graph_config_formats(graphctx, log_ctx)))
if ((ret = ff_avfilter_graph_config_formats(graphctx, log_ctx)))
return ret;
if ((ret = avfilter_graph_config_links(graphctx, log_ctx)))
if ((ret = ff_avfilter_graph_config_links(graphctx, log_ctx)))
return ret;
return 0;