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
55ca21d5
Commit
55ca21d5
authored
Nov 21, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_amplify: add timeline support
parent
103effeb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
vf_amplify.c
libavfilter/vf_amplify.c
+16
-9
No files found.
libavfilter/vf_amplify.c
View file @
55ca21d5
...
...
@@ -259,14 +259,21 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
s
->
frames
[
s
->
nb_inputs
-
1
]
=
in
;
}
out
=
ff_get_video_buffer
(
outlink
,
outlink
->
w
,
outlink
->
h
);
if
(
!
out
)
return
AVERROR
(
ENOMEM
);
out
->
pts
=
s
->
frames
[
0
]
->
pts
;
td
.
out
=
out
;
td
.
in
=
s
->
frames
;
ctx
->
internal
->
execute
(
ctx
,
amplify_frame
,
&
td
,
NULL
,
FFMIN
(
s
->
height
[
1
],
ff_filter_get_nb_threads
(
ctx
)));
if
(
!
ctx
->
is_disabled
)
{
out
=
ff_get_video_buffer
(
outlink
,
outlink
->
w
,
outlink
->
h
);
if
(
!
out
)
return
AVERROR
(
ENOMEM
);
av_frame_copy_props
(
out
,
s
->
frames
[
0
]);
td
.
out
=
out
;
td
.
in
=
s
->
frames
;
ctx
->
internal
->
execute
(
ctx
,
amplify_frame
,
&
td
,
NULL
,
FFMIN
(
s
->
height
[
1
],
ff_filter_get_nb_threads
(
ctx
)));
}
else
{
out
=
av_frame_clone
(
s
->
frames
[
s
->
radius
]);
if
(
!
out
)
return
AVERROR
(
ENOMEM
);
out
->
pts
=
s
->
frames
[
0
]
->
pts
;
}
return
ff_filter_frame
(
outlink
,
out
);
}
...
...
@@ -316,6 +323,6 @@ AVFilter ff_vf_amplify = {
.
inputs
=
inputs
,
.
init
=
init
,
.
uninit
=
uninit
,
.
flags
=
AVFILTER_FLAG_SLICE_THREADS
,
.
flags
=
AVFILTER_FLAG_S
UPPORT_TIMELINE_INTERNAL
|
AVFILTER_FLAG_S
LICE_THREADS
,
.
process_command
=
ff_filter_process_command
,
};
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