diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-11-13 00:21:28 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-11-13 00:21:28 +0000 |
commit | 4fcbb2af330943468513362b34b345f84666409d (patch) | |
tree | ccc34a5f9b7be0ee5fda2cacb90537d7d448d3d5 /libavfilter/internal.h | |
parent | bbf07bf9b8305f75eada100b766b8bd8237cc9c2 (diff) | |
download | ffmpeg-4fcbb2af330943468513362b34b345f84666409d.tar.gz |
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/internal.h')
-rw-r--r-- | libavfilter/internal.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libavfilter/internal.h b/libavfilter/internal.h index 2f0dde125d..37d085da52 100644 --- a/libavfilter/internal.h +++ b/libavfilter/internal.h @@ -25,6 +25,7 @@ */ #include "avfilter.h" +#include "avfiltergraph.h" void ff_dprintf_ref(void *ctx, AVFilterBufferRef *ref, int end); @@ -34,4 +35,26 @@ void ff_dprintf_link(void *ctx, AVFilterLink *link, int end); #define FF_DPRINTF_START(ctx, func) dprintf(NULL, "%-16s: ", #func) +/** + * Check for the validity of graph. + * + * A graph is considered valid if all its input and output pads are + * connected. + * + * @return 0 in case of success, a negative value otherwise + */ +int ff_avfilter_graph_check_validity(AVFilterGraph *graphctx, AVClass *log_ctx); + +/** + * Configure all the links of graphctx. + * + * @return 0 in case of success, a negative value otherwise + */ +int ff_avfilter_graph_config_links(AVFilterGraph *graphctx, AVClass *log_ctx); + +/** + * Configure the formats of all the links in the graph. + */ +int ff_avfilter_graph_config_formats(AVFilterGraph *graphctx, AVClass *log_ctx); + #endif /* AVFILTER_INTERNAL_H */ |