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
bb8b7525
Commit
bb8b7525
authored
Sep 04, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
postproc: use FFMIN/FFMAX where appropriate
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
17ad5fbb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
postprocess.c
libpostproc/postprocess.c
+8
-8
postprocess_template.c
libpostproc/postprocess_template.c
+4
-4
No files found.
libpostproc/postprocess.c
View file @
bb8b7525
...
...
@@ -318,13 +318,13 @@ static inline void doHorizDefFilter_C(uint8_t dst[], int stride, const PPContext
if
(
q
>
0
)
{
d
=
d
<
0
?
0
:
d
;
d
=
d
>
q
?
q
:
d
;
d
=
FFMAX
(
d
,
0
)
;
d
=
FFMIN
(
d
,
q
)
;
}
else
{
d
=
d
>
0
?
0
:
d
;
d
=
d
<
q
?
q
:
d
;
d
=
FFMIN
(
d
,
0
)
;
d
=
FFMAX
(
d
,
q
)
;
}
dst
[
3
]
-=
d
;
...
...
@@ -515,11 +515,11 @@ static av_always_inline void do_a_deblock_C(uint8_t *src, int step,
d
*=
FFSIGN
(
-
middleEnergy
);
if
(
q
>
0
){
d
=
d
<
0
?
0
:
d
;
d
=
d
>
q
?
q
:
d
;
d
=
FFMAX
(
d
,
0
)
;
d
=
FFMIN
(
d
,
q
)
;
}
else
{
d
=
d
>
0
?
0
:
d
;
d
=
d
<
q
?
q
:
d
;
d
=
FFMIN
(
d
,
0
)
;
d
=
FFMAX
(
d
,
q
)
;
}
src
[
3
*
step
]
-=
d
;
...
...
libpostproc/postprocess_template.c
View file @
bb8b7525
...
...
@@ -1073,11 +1073,11 @@ static inline void RENAME(doVertDefFilter)(uint8_t src[], int stride, PPContext
d
*=
FFSIGN
(
-
middleEnergy
);
if
(
q
>
0
){
d
=
d
<
0
?
0
:
d
;
d
=
d
>
q
?
q
:
d
;
d
=
FFMAX
(
d
,
0
)
;
d
=
FFMIN
(
d
,
q
)
;
}
else
{
d
=
d
>
0
?
0
:
d
;
d
=
d
<
q
?
q
:
d
;
d
=
FFMIN
(
d
,
0
)
;
d
=
FFMAX
(
d
,
q
)
;
}
src
[
l4
]
-=
d
;
...
...
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