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
91bdb244
Commit
91bdb244
authored
Jan 04, 2015
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libavfilter/vf_blend: do not unconditionally compile both filters
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
99750884
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
12 deletions
+20
-12
vf_blend.c
libavfilter/vf_blend.c
+20
-12
No files found.
libavfilter/vf_blend.c
View file @
91bdb244
...
...
@@ -373,6 +373,20 @@ static int query_formats(AVFilterContext *ctx)
return
0
;
}
static
av_cold
void
uninit
(
AVFilterContext
*
ctx
)
{
BlendContext
*
b
=
ctx
->
priv
;
int
i
;
ff_dualinput_uninit
(
&
b
->
dinput
);
av_freep
(
&
b
->
prev_frame
);
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
b
->
params
);
i
++
)
av_expr_free
(
b
->
params
[
i
].
e
);
}
#if CONFIG_BLEND_FILTER
static
int
config_output
(
AVFilterLink
*
outlink
)
{
AVFilterContext
*
ctx
=
outlink
->
src
;
...
...
@@ -418,18 +432,6 @@ static int config_output(AVFilterLink *outlink)
return
0
;
}
static
av_cold
void
uninit
(
AVFilterContext
*
ctx
)
{
BlendContext
*
b
=
ctx
->
priv
;
int
i
;
ff_dualinput_uninit
(
&
b
->
dinput
);
av_freep
(
&
b
->
prev_frame
);
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
b
->
params
);
i
++
)
av_expr_free
(
b
->
params
[
i
].
e
);
}
static
int
request_frame
(
AVFilterLink
*
outlink
)
{
BlendContext
*
b
=
outlink
->
src
->
priv
;
...
...
@@ -478,6 +480,10 @@ AVFilter ff_vf_blend = {
.
flags
=
AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
|
AVFILTER_FLAG_SLICE_THREADS
,
};
#endif
#if CONFIG_TBLEND_FILTER
static
int
tblend_config_output
(
AVFilterLink
*
outlink
)
{
AVFilterContext
*
ctx
=
outlink
->
src
;
...
...
@@ -545,3 +551,5 @@ AVFilter ff_vf_tblend = {
.
outputs
=
tblend_outputs
,
.
flags
=
AVFILTER_FLAG_SLICE_THREADS
,
};
#endif
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