History

avfiltergraph: make some functions static.

They are not used outside of avfiltergraph.c

Anton Khirnov committed 14 years ago

Commit 8eb9bf01 parent 19dfbf12 files · +22 −29Browse files

Showing the changes to libavfilter (2 of 2 files). Show all

Unified · Split

2 files
  1. libavfilter/avfiltergraph.c +22 −6
  2. libavfilter/internal.h +0 −23
libavfilter/avfiltergraph.c+22−6
@@ -93,7 +93,15 @@ fail: · 92 unmodified lines
9393 return ret;
9494 }
9595
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)
97105 {
98106 AVFilterContext *filt;
99107 int i, j;
@@ -123,7 +131,12 @@ int ff_avfilter_graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx) · 23 unmodified lines
123131 return 0;
124132 }
125133
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)
127140 {
128141 AVFilterContext *filt;
129142 int i, ret;
@@ -546,7 +559,10 @@ static int pick_formats(AVFilterGraph *graph) · 416 unmodified lines
546559 return 0;
547560 }
548561
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)
550566 {
551567 int ret;
552568
@@ -575,11 +591,11 @@ int avfilter_graph_config(AVFilterGraph *graphctx, void *log_ctx) · 22 unmodified lines
575591 {
576592 int ret;
577593
578− if ((ret = ff_avfilter_graph_check_validity(graphctx, log_ctx)))
594+ if ((ret = graph_check_validity(graphctx, log_ctx)))
579595 return ret;
580− if ((ret = ff_avfilter_graph_config_formats(graphctx, log_ctx)))
596+ if ((ret = graph_config_formats(graphctx, log_ctx)))
581597 return ret;
582− if ((ret = ff_avfilter_graph_config_links(graphctx, log_ctx)))
598+ if ((ret = graph_config_links(graphctx, log_ctx)))
583599 return ret;
584600
585601 return 0;
libavfilter/internal.h+0−23
@@ -25,29 +25,6 @@ · 24 unmodified lines
2525 */
2626
2727 #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);
5128
5229 /** default handler for freeing audio/video buffer when there are no references left */
5330 void ff_avfilter_default_free_buffer(AVFilterBuffer *buf);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t