Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
8eb9bf09
Commit
8eb9bf09
authored
May 16, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfiltergraph: make some functions static.
They are not used outside of avfiltergraph.c
parent
19dfbf19
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
29 deletions
+22
-29
avfiltergraph.c
libavfilter/avfiltergraph.c
+22
-6
internal.h
libavfilter/internal.h
+0
-23
No files found.
libavfilter/avfiltergraph.c
View file @
8eb9bf09
...
...
@@ -93,7 +93,15 @@ fail:
return
ret
;
}
int
ff_avfilter_graph_check_validity
(
AVFilterGraph
*
graph
,
AVClass
*
log_ctx
)
/**
* Check for the validity of graph.
*
* A graph is considered valid if all its input and output pads are
* connected.
*
* @return 0 in case of success, a negative value otherwise
*/
static
int
graph_check_validity
(
AVFilterGraph
*
graph
,
AVClass
*
log_ctx
)
{
AVFilterContext
*
filt
;
int
i
,
j
;
...
...
@@ -123,7 +131,12 @@ int ff_avfilter_graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx)
return
0
;
}
int
ff_avfilter_graph_config_links
(
AVFilterGraph
*
graph
,
AVClass
*
log_ctx
)
/**
* Configure all the links of graphctx.
*
* @return 0 in case of success, a negative value otherwise
*/
static
int
graph_config_links
(
AVFilterGraph
*
graph
,
AVClass
*
log_ctx
)
{
AVFilterContext
*
filt
;
int
i
,
ret
;
...
...
@@ -546,7 +559,10 @@ static int pick_formats(AVFilterGraph *graph)
return
0
;
}
int
ff_avfilter_graph_config_formats
(
AVFilterGraph
*
graph
,
AVClass
*
log_ctx
)
/**
* Configure the formats of all the links in the graph.
*/
static
int
graph_config_formats
(
AVFilterGraph
*
graph
,
AVClass
*
log_ctx
)
{
int
ret
;
...
...
@@ -575,11 +591,11 @@ int avfilter_graph_config(AVFilterGraph *graphctx, void *log_ctx)
{
int
ret
;
if
((
ret
=
ff_avfilter_
graph_check_validity
(
graphctx
,
log_ctx
)))
if
((
ret
=
graph_check_validity
(
graphctx
,
log_ctx
)))
return
ret
;
if
((
ret
=
ff_avfilter_
graph_config_formats
(
graphctx
,
log_ctx
)))
if
((
ret
=
graph_config_formats
(
graphctx
,
log_ctx
)))
return
ret
;
if
((
ret
=
ff_avfilter_
graph_config_links
(
graphctx
,
log_ctx
)))
if
((
ret
=
graph_config_links
(
graphctx
,
log_ctx
)))
return
ret
;
return
0
;
...
...
libavfilter/internal.h
View file @
8eb9bf09
...
...
@@ -25,29 +25,6 @@
*/
#include "avfilter.h"
#include "avfiltergraph.h"
/**
* Check for the validity of graph.
*
* A graph is considered valid if all its input and output pads are
* connected.
*
* @return 0 in case of success, a negative value otherwise
*/
int
ff_avfilter_graph_check_validity
(
AVFilterGraph
*
graphctx
,
AVClass
*
log_ctx
);
/**
* Configure all the links of graphctx.
*
* @return 0 in case of success, a negative value otherwise
*/
int
ff_avfilter_graph_config_links
(
AVFilterGraph
*
graphctx
,
AVClass
*
log_ctx
);
/**
* Configure the formats of all the links in the graph.
*/
int
ff_avfilter_graph_config_formats
(
AVFilterGraph
*
graphctx
,
AVClass
*
log_ctx
);
/** default handler for freeing audio/video buffer when there are no references left */
void
ff_avfilter_default_free_buffer
(
AVFilterBuffer
*
buf
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment