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
3af10603
Commit
3af10603
authored
Sep 18, 2017
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/tinterlace: Simplify checks for lowpass filtering flags
parent
4492237e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
vf_tinterlace.c
libavfilter/vf_tinterlace.c
+4
-8
No files found.
libavfilter/vf_tinterlace.c
View file @
3af10603
...
...
@@ -172,14 +172,12 @@ static int config_out_props(AVFilterLink *outlink)
tinterlace
->
black_linesize
[
i
]
*
h
);
}
}
if
((
tinterlace
->
flags
&
TINTERLACE_FLAG_VLPF
||
tinterlace
->
flags
&
TINTERLACE_FLAG_CVLPF
)
if
(
tinterlace
->
flags
&
(
TINTERLACE_FLAG_VLPF
|
TINTERLACE_FLAG_CVLPF
)
&&
!
(
tinterlace
->
mode
==
MODE_INTERLEAVE_TOP
||
tinterlace
->
mode
==
MODE_INTERLEAVE_BOTTOM
))
{
av_log
(
ctx
,
AV_LOG_WARNING
,
"low_pass_filter flags ignored with mode %d
\n
"
,
tinterlace
->
mode
);
tinterlace
->
flags
&=
~
TINTERLACE_FLAG_VLPF
;
tinterlace
->
flags
&=
~
TINTERLACE_FLAG_CVLPF
;
tinterlace
->
flags
&=
~
(
TINTERLACE_FLAG_VLPF
|
TINTERLACE_FLAG_CVLPF
);
}
tinterlace
->
preout_time_base
=
inlink
->
time_base
;
if
(
tinterlace
->
mode
==
MODE_INTERLACEX2
)
{
...
...
@@ -263,10 +261,8 @@ void copy_picture_field(TInterlaceContext *tinterlace,
// Low-pass filtering is required when creating an interlaced destination from
// a progressive source which contains high-frequency vertical detail.
// Filtering will reduce interlace 'twitter' and Moire patterning.
if
(
flags
&
TINTERLACE_FLAG_VLPF
||
flags
&
TINTERLACE_FLAG_CVLPF
)
{
int
x
=
0
;
if
(
flags
&
TINTERLACE_FLAG_CVLPF
)
x
=
1
;
if
(
flags
&
(
TINTERLACE_FLAG_VLPF
|
TINTERLACE_FLAG_CVLPF
))
{
int
x
=
!!
(
flags
&
TINTERLACE_FLAG_CVLPF
);
for
(
h
=
lines
;
h
>
0
;
h
--
)
{
ptrdiff_t
pref
=
src_linesize
[
plane
];
ptrdiff_t
mref
=
-
pref
;
...
...
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