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
69583bd3
Commit
69583bd3
authored
Dec 23, 2012
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: Refactor unconditional filter registration
parent
5ad2f0bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
24 deletions
+12
-24
allfilters.c
libavfilter/allfilters.c
+12
-24
No files found.
libavfilter/allfilters.c
View file @
69583bd3
...
...
@@ -27,6 +27,12 @@
extern AVFilter avfilter_##y##_##x ; \
if(CONFIG_##X##_FILTER ) avfilter_register(&avfilter_##y##_##x ); }
#define REGISTER_FILTER_UNCONDITIONAL(x) \
{ \
extern AVFilter avfilter_##x; \
avfilter_register(&avfilter_##x); \
}
void
avfilter_register_all
(
void
)
{
static
int
initialized
;
...
...
@@ -101,28 +107,10 @@ void avfilter_register_all(void)
/* those filters are part of public or internal API => registered
* unconditionally */
{
extern
AVFilter
avfilter_vsrc_buffer
;
avfilter_register
(
&
avfilter_vsrc_buffer
);
}
{
extern
AVFilter
avfilter_asrc_abuffer
;
avfilter_register
(
&
avfilter_asrc_abuffer
);
}
{
extern
AVFilter
avfilter_vsink_buffer
;
avfilter_register
(
&
avfilter_vsink_buffer
);
}
{
extern
AVFilter
avfilter_asink_abuffer
;
avfilter_register
(
&
avfilter_asink_abuffer
);
}
{
extern
AVFilter
avfilter_af_afifo
;
avfilter_register
(
&
avfilter_af_afifo
);
}
{
extern
AVFilter
avfilter_vf_fifo
;
avfilter_register
(
&
avfilter_vf_fifo
);
}
REGISTER_FILTER_UNCONDITIONAL
(
asrc_abuffer
);
REGISTER_FILTER_UNCONDITIONAL
(
vsrc_buffer
);
REGISTER_FILTER_UNCONDITIONAL
(
asink_abuffer
);
REGISTER_FILTER_UNCONDITIONAL
(
vsink_buffer
);
REGISTER_FILTER_UNCONDITIONAL
(
af_afifo
);
REGISTER_FILTER_UNCONDITIONAL
(
vf_fifo
);
}
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