mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user