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
2bde38c0
Commit
2bde38c0
authored
May 14, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_lut2: add timeline support to tlut2 filter
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
a27cab9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
vf_lut2.c
libavfilter/vf_lut2.c
+18
-9
No files found.
libavfilter/vf_lut2.c
View file @
2bde38c0
...
...
@@ -401,18 +401,26 @@ static av_cold int init(AVFilterContext *ctx)
static
int
tlut2_filter_frame
(
AVFilterLink
*
inlink
,
AVFrame
*
frame
)
{
LUT2Context
*
s
=
inlink
->
dst
->
priv
;
AVFilterLink
*
outlink
=
inlink
->
dst
->
outputs
[
0
];
AVFilterContext
*
ctx
=
inlink
->
dst
;
LUT2Context
*
s
=
ctx
->
priv
;
AVFilterLink
*
outlink
=
ctx
->
outputs
[
0
];
if
(
s
->
prev_frame
)
{
AVFrame
*
out
=
ff_get_video_buffer
(
outlink
,
outlink
->
w
,
outlink
->
h
);
if
(
!
out
)
{
av_frame_free
(
&
s
->
prev_frame
);
s
->
prev_frame
=
frame
;
return
AVERROR
(
ENOMEM
);
AVFrame
*
out
;
if
(
ctx
->
is_disabled
)
{
out
=
av_frame_clone
(
frame
);
}
else
{
out
=
ff_get_video_buffer
(
outlink
,
outlink
->
w
,
outlink
->
h
);
if
(
!
out
)
{
av_frame_free
(
&
s
->
prev_frame
);
s
->
prev_frame
=
frame
;
return
AVERROR
(
ENOMEM
);
}
av_frame_copy_props
(
out
,
frame
);
s
->
lut2
(
s
,
out
,
frame
,
s
->
prev_frame
);
}
av_frame_copy_props
(
out
,
frame
);
s
->
lut2
(
s
,
out
,
frame
,
s
->
prev_frame
);
av_frame_free
(
&
s
->
prev_frame
);
s
->
prev_frame
=
frame
;
return
ff_filter_frame
(
outlink
,
out
);
...
...
@@ -454,6 +462,7 @@ AVFilter ff_vf_tlut2 = {
.
uninit
=
uninit
,
.
inputs
=
tlut2_inputs
,
.
outputs
=
tlut2_outputs
,
.
flags
=
AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
,
};
#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