summaryrefslogtreecommitdiff
path: root/libavfilter/avfiltergraph.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-13 00:21:28 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-13 00:21:28 +0000
commit4fcbb2af330943468513362b34b345f84666409d (patch)
treeccc34a5f9b7be0ee5fda2cacb90537d7d448d3d5 /libavfilter/avfiltergraph.c
parentbbf07bf9b8305f75eada100b766b8bd8237cc9c2 (diff)
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
Diffstat (limited to 'libavfilter/avfiltergraph.c')
-rw-r--r--libavfilter/avfiltergraph.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index 16c0355dd8..b138e693fe 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -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;