They are not used outside of avfiltergraph.c
Showing the changes to libavfilter/avfiltergraph.c (1 of 2 files). Show all
Unified · Split
| @@ -93,7 +93,15 @@ fail: · 92 unmodified lines | ||
| 93 | 93 | return ret; |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | −int ff_avfilter_graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx) | |
| 96 | +/** | |
| 97 | + * Check for the validity of graph. | |
| 98 | + * | |
| 99 | + * A graph is considered valid if all its input and output pads are | |
| 100 | + * connected. | |
| 101 | + * | |
| 102 | + * @return 0 in case of success, a negative value otherwise | |
| 103 | + */ | |
| 104 | +static int graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx) | |
| 97 | 105 | { |
| 98 | 106 | AVFilterContext *filt; |
| 99 | 107 | int i, j; |
| @@ -123,7 +131,12 @@ int ff_avfilter_graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx) · 23 unmodified lines | ||
| 123 | 131 | return 0; |
| 124 | 132 | } |
| 125 | 133 | |
| 126 | −int ff_avfilter_graph_config_links(AVFilterGraph *graph, AVClass *log_ctx) | |
| 134 | +/** | |
| 135 | + * Configure all the links of graphctx. | |
| 136 | + * | |
| 137 | + * @return 0 in case of success, a negative value otherwise | |
| 138 | + */ | |
| 139 | +static int graph_config_links(AVFilterGraph *graph, AVClass *log_ctx) | |
| 127 | 140 | { |
| 128 | 141 | AVFilterContext *filt; |
| 129 | 142 | int i, ret; |
| @@ -546,7 +559,10 @@ static int pick_formats(AVFilterGraph *graph) · 416 unmodified lines | ||
| 546 | 559 | return 0; |
| 547 | 560 | } |
| 548 | 561 | |
| 549 | −int ff_avfilter_graph_config_formats(AVFilterGraph *graph, AVClass *log_ctx) | |
| 562 | +/** | |
| 563 | + * Configure the formats of all the links in the graph. | |
| 564 | + */ | |
| 565 | +static int graph_config_formats(AVFilterGraph *graph, AVClass *log_ctx) | |
| 550 | 566 | { |
| 551 | 567 | int ret; |
| 552 | 568 | |
| @@ -575,11 +591,11 @@ int avfilter_graph_config(AVFilterGraph *graphctx, void *log_ctx) · 22 unmodified lines | ||
| 575 | 591 | { |
| 576 | 592 | int ret; |
| 577 | 593 | |
| 578 | − if ((ret = ff_avfilter_graph_check_validity(graphctx, log_ctx))) | |
| 594 | + if ((ret = graph_check_validity(graphctx, log_ctx))) | |
| 579 | 595 | return ret; |
| 580 | − if ((ret = ff_avfilter_graph_config_formats(graphctx, log_ctx))) | |
| 596 | + if ((ret = graph_config_formats(graphctx, log_ctx))) | |
| 581 | 597 | return ret; |
| 582 | − if ((ret = ff_avfilter_graph_config_links(graphctx, log_ctx))) | |
| 598 | + if ((ret = graph_config_links(graphctx, log_ctx))) | |
| 583 | 599 | return ret; |
| 584 | 600 | |
| 585 | 601 | return 0; |