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
Showing the changes to libavfilter/avfiltergraph.h (1 of 5 files). Show all
Unified · Split
| @@ -52,33 +52,12 @@ AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, char *name); · 51 unmodified lines | |||
| 52 | */ | 52 | */ |
| 53 | int avfilter_graph_add_filter(AVFilterGraph *graphctx, AVFilterContext *filter); | 53 | int avfilter_graph_add_filter(AVFilterGraph *graphctx, AVFilterContext *filter); |
| 54 | 54 | ||
| 55 | /** | ||
| 56 | * Check for the validity of graph. | ||
| 57 | * | ||
| 58 | * A graph is considered valid if all its input and output pads are | ||
| 59 | * connected. | ||
| 60 | * | ||
| 61 | * @return 0 in case of success, a negative value otherwise | ||
| 62 | */ | ||
| 63 | int avfilter_graph_check_validity(AVFilterGraph *graphctx, AVClass *log_ctx); | ||
| 64 | |||
| 65 | /** | ||
| 66 | * Configure all the links of graphctx. | ||
| 67 | * | ||
| 68 | * @return 0 in case of success, a negative value otherwise | ||
| 69 | */ | ||
| 70 | int avfilter_graph_config_links(AVFilterGraph *graphctx, AVClass *log_ctx); | ||
| 71 | |||
| 72 | /** | ||
| 73 | * Configure the formats of all the links in the graph. | ||
| 74 | */ | ||
| 75 | int avfilter_graph_config_formats(AVFilterGraph *graphctx, AVClass *log_ctx); | ||
| 76 | |||
| 77 | /** | 55 | /** |
| 78 | * Check validity and configure all the links and formats in the graph. | 56 | * Check validity and configure all the links and formats in the graph. |
| 79 | * | 57 | * |
| 80 | * @see avfilter_graph_check_validity(), avfilter_graph_config_links(), | 58 | * @param graphctx the filter graph |
| 81 | * avfilter_graph_config_formats() | 59 | * @param log_ctx context used for logging |
| 60 | * @return 0 in case of success, a negative AVERROR code otherwise | ||
| 82 | */ | 61 | */ |
| 83 | int avfilter_graph_config(AVFilterGraph *graphctx, AVClass *log_ctx); | 62 | int avfilter_graph_config(AVFilterGraph *graphctx, AVClass *log_ctx); |
| 84 | 63 | ||