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

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
93 return ret;93 return ret;
94}94}
95 95
96int 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 */
104static 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
126int 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 */
139static 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
549int ff_avfilter_graph_config_formats(AVFilterGraph *graph, AVClass *log_ctx)562/**
563 * Configure the formats of all the links in the graph.
564 */
565static 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;
libavfilter/internal.h+0−23
@@ -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 */
38int 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 */
45int ff_avfilter_graph_config_links(AVFilterGraph *graphctx, AVClass *log_ctx);
46
47/**
48 * Configure the formats of all the links in the graph.
49 */
50int 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 */
53void ff_avfilter_default_free_buffer(AVFilterBuffer *buf);30void 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