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
0122300c
Commit
0122300c
authored
May 08, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/hqdn3d: restore timeline feature.
parent
06521118
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
vf_hqdn3d.c
libavfilter/vf_hqdn3d.c
+10
-3
No files found.
libavfilter/vf_hqdn3d.c
View file @
0122300c
...
@@ -274,13 +274,14 @@ static int config_input(AVFilterLink *inlink)
...
@@ -274,13 +274,14 @@ static int config_input(AVFilterLink *inlink)
static
int
filter_frame
(
AVFilterLink
*
inlink
,
AVFrame
*
in
)
static
int
filter_frame
(
AVFilterLink
*
inlink
,
AVFrame
*
in
)
{
{
HQDN3DContext
*
hqdn3d
=
inlink
->
dst
->
priv
;
AVFilterContext
*
ctx
=
inlink
->
dst
;
AVFilterLink
*
outlink
=
inlink
->
dst
->
outputs
[
0
];
HQDN3DContext
*
hqdn3d
=
ctx
->
priv
;
AVFilterLink
*
outlink
=
ctx
->
outputs
[
0
];
AVFrame
*
out
;
AVFrame
*
out
;
int
direct
,
c
;
int
direct
,
c
;
if
(
av_frame_is_writable
(
in
))
{
if
(
av_frame_is_writable
(
in
)
&&
!
ctx
->
is_disabled
)
{
direct
=
1
;
direct
=
1
;
out
=
in
;
out
=
in
;
}
else
{
}
else
{
...
@@ -304,6 +305,11 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
...
@@ -304,6 +305,11 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
hqdn3d
->
coefs
[
c
?
CHROMA_TMP
:
LUMA_TMP
]);
hqdn3d
->
coefs
[
c
?
CHROMA_TMP
:
LUMA_TMP
]);
}
}
if
(
ctx
->
is_disabled
)
{
av_frame_free
(
&
out
);
return
ff_filter_frame
(
outlink
,
in
);
}
if
(
!
direct
)
if
(
!
direct
)
av_frame_free
(
&
in
);
av_frame_free
(
&
in
);
...
@@ -358,4 +364,5 @@ AVFilter avfilter_vf_hqdn3d = {
...
@@ -358,4 +364,5 @@ AVFilter avfilter_vf_hqdn3d = {
.
inputs
=
avfilter_vf_hqdn3d_inputs
,
.
inputs
=
avfilter_vf_hqdn3d_inputs
,
.
outputs
=
avfilter_vf_hqdn3d_outputs
,
.
outputs
=
avfilter_vf_hqdn3d_outputs
,
.
flags
=
AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
,
};
};
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