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
d491d6a0
Commit
d491d6a0
authored
Sep 19, 2017
by
Thomas Mundt
Committed by
Carl Eugen Hoyos
Sep 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/interlace: rename two variables for consistency
Signed-off-by:
Thomas Mundt
<
tmundt75@gmail.com
>
parent
5d072755
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
vf_interlace.c
libavfilter/vf_interlace.c
+5
-5
vf_tinterlace.c
libavfilter/vf_tinterlace.c
+5
-5
No files found.
libavfilter/vf_interlace.c
View file @
d491d6a0
...
...
@@ -102,19 +102,19 @@ static void lowpass_line_complex_c(uint8_t *dstp, ptrdiff_t linesize,
const
uint8_t
*
srcp_below
=
srcp
+
pref
;
const
uint8_t
*
srcp_above2
=
srcp
+
mref
*
2
;
const
uint8_t
*
srcp_below2
=
srcp
+
pref
*
2
;
int
i
,
src
p_x
,
srcp
_ab
;
int
i
,
src
_x
,
src
_ab
;
for
(
i
=
0
;
i
<
linesize
;
i
++
)
{
// this calculation is an integer representation of
// '0.75 * current + 0.25 * above + 0.25 * below - 0.125 * above2 - 0.125 * below2'
// '4 +' is for rounding.
src
p_x
=
srcp
[
i
]
<<
1
;
src
p_ab
=
srcp_above
[
i
]
+
srcp_below
[
i
];
dstp
[
i
]
=
av_clip_uint8
((
4
+
((
srcp
[
i
]
+
src
p_x
+
srcp
_ab
)
<<
1
)
src
_x
=
srcp
[
i
]
<<
1
;
src
_ab
=
srcp_above
[
i
]
+
srcp_below
[
i
];
dstp
[
i
]
=
av_clip_uint8
((
4
+
((
srcp
[
i
]
+
src
_x
+
src
_ab
)
<<
1
)
-
srcp_above2
[
i
]
-
srcp_below2
[
i
])
>>
3
);
// Prevent over-sharpening:
// dst must not exceed src when the average of above and below
// is less than src. And the other way around.
if
(
src
p_ab
>
srcp
_x
)
{
if
(
src
_ab
>
src
_x
)
{
if
(
dstp
[
i
]
<
srcp
[
i
])
dstp
[
i
]
=
srcp
[
i
];
}
else
if
(
dstp
[
i
]
>
srcp
[
i
])
...
...
libavfilter/vf_tinterlace.c
View file @
d491d6a0
...
...
@@ -133,19 +133,19 @@ static void lowpass_line_complex_c(uint8_t *dstp, ptrdiff_t width, const uint8_t
const
uint8_t
*
srcp_below
=
srcp
+
pref
;
const
uint8_t
*
srcp_above2
=
srcp
+
mref
*
2
;
const
uint8_t
*
srcp_below2
=
srcp
+
pref
*
2
;
int
i
,
src
p_x
,
srcp
_ab
;
int
i
,
src
_x
,
src
_ab
;
for
(
i
=
0
;
i
<
width
;
i
++
)
{
// this calculation is an integer representation of
// '0.75 * current + 0.25 * above + 0.25 * below - 0.125 * above2 - 0.125 * below2'
// '4 +' is for rounding.
src
p_x
=
srcp
[
i
]
<<
1
;
src
p_ab
=
srcp_above
[
i
]
+
srcp_below
[
i
];
dstp
[
i
]
=
av_clip_uint8
((
4
+
((
srcp
[
i
]
+
src
p_x
+
srcp
_ab
)
<<
1
)
src
_x
=
srcp
[
i
]
<<
1
;
src
_ab
=
srcp_above
[
i
]
+
srcp_below
[
i
];
dstp
[
i
]
=
av_clip_uint8
((
4
+
((
srcp
[
i
]
+
src
_x
+
src
_ab
)
<<
1
)
-
srcp_above2
[
i
]
-
srcp_below2
[
i
])
>>
3
);
// Prevent over-sharpening:
// dst must not exceed src when the average of above and below
// is less than src. And the other way around.
if
(
src
p_ab
>
srcp
_x
)
{
if
(
src
_ab
>
src
_x
)
{
if
(
dstp
[
i
]
<
srcp
[
i
])
dstp
[
i
]
=
srcp
[
i
];
}
else
if
(
dstp
[
i
]
>
srcp
[
i
])
...
...
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