They are not used outside of avfiltergraph.c
Showing the changes to libavfilter (2 of 2 files). Show all
Unified · Split
| @@ -93,7 +93,15 @@ fail: · 92 unmodified lines | |||
| 93 | return ret; | 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 | AVFilterContext *filt; | 106 | AVFilterContext *filt; |
| 99 | int i, j; | 107 | int i, j; |
| @@ -123,7 +131,12 @@ int ff_avfilter_graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx) · 23 unmodified lines | |||
| 123 | return 0; | 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 | AVFilterContext *filt; | 141 | AVFilterContext *filt; |
| 129 | int i, ret; | 142 | int i, ret; |
| @@ -546,7 +559,10 @@ static int pick_formats(AVFilterGraph *graph) · 416 unmodified lines | |||
| 546 | return 0; | 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 | int ret; | 567 | int ret; |
| 552 | 568 | ||
| @@ -575,11 +591,11 @@ int avfilter_graph_config(AVFilterGraph *graphctx, void *log_ctx) · 22 unmodified lines | |||
| 575 | { | 591 | { |
| 576 | int ret; | 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 | return ret; | 595 | return ret; |
| 580 | if ((ret = ff_avfilter_graph_config_formats(graphctx, log_ctx))) | 596 | if ((ret = graph_config_formats(graphctx, log_ctx))) |
| 581 | return ret; | 597 | return ret; |
| 582 | if ((ret = ff_avfilter_graph_config_links(graphctx, log_ctx))) | 598 | if ((ret = graph_config_links(graphctx, log_ctx))) |
| 583 | return ret; | 599 | return ret; |
| 584 | 600 | ||
| 585 | return 0; | 601 | return 0; |
| @@ -25,29 +25,6 @@ · 24 unmodified lines | |||
| 25 | */ | 25 | */ |
| 26 | 26 | ||
| 27 | #include "avfilter.h" | 27 | #include "avfilter.h" |
| 28 | #include "avfiltergraph.h" | ||
| 29 | |||
| 30 | /** | ||
| 31 | * Check for the validity of graph. | ||
| 32 | * | ||
| 33 | * A graph is considered valid if all its input and output pads are | ||
| 34 | * connected. | ||
| 35 | * | ||
| 36 | * @return 0 in case of success, a negative value otherwise | ||
| 37 | */ | ||
| 38 | int ff_avfilter_graph_check_validity(AVFilterGraph *graphctx, AVClass *log_ctx); | ||
| 39 | |||
| 40 | /** | ||
| 41 | * Configure all the links of graphctx. | ||
| 42 | * | ||
| 43 | * @return 0 in case of success, a negative value otherwise | ||
| 44 | */ | ||
| 45 | int ff_avfilter_graph_config_links(AVFilterGraph *graphctx, AVClass *log_ctx); | ||
| 46 | |||
| 47 | /** | ||
| 48 | * Configure the formats of all the links in the graph. | ||
| 49 | */ | ||
| 50 | int ff_avfilter_graph_config_formats(AVFilterGraph *graphctx, AVClass *log_ctx); | ||
| 51 | 28 | ||
| 52 | /** default handler for freeing audio/video buffer when there are no references left */ | 29 | /** default handler for freeing audio/video buffer when there are no references left */ |
| 53 | void ff_avfilter_default_free_buffer(AVFilterBuffer *buf); | 30 | void ff_avfilter_default_free_buffer(AVFilterBuffer *buf); |