Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
8362114e
Commit
8362114e
authored
Apr 01, 2017
by
Jean-Marc Valin
Committed by
Steinar Midtskogen
Apr 01, 2017
Browse files
Fix constrain() broken in
19f76635
Change-Id: Icd0313d12025b9dcf84f203dbfb1e0756d220dbc
parent
8a4de218
Changes
1
Hide whitespace changes
Inline
Side-by-side
av1/common/clpf.c
View file @
8362114e
...
...
@@ -17,7 +17,8 @@
static
int
sign
(
int
i
)
{
return
i
<
0
?
-
1
:
1
;
}
static
int
constrain
(
int
x
,
int
s
,
unsigned
int
damping
)
{
return
sign
(
x
)
*
AOMMIN
(
abs
(
x
),
s
-
(
abs
(
x
)
>>
(
damping
-
get_msb
(
s
))));
return
sign
(
x
)
*
AOMMIN
(
abs
(
x
),
AOMMAX
(
0
,
s
-
(
abs
(
x
)
>>
(
damping
-
get_msb
(
s
)))));
}
int
av1_clpf_sample
(
int
X
,
int
A
,
int
B
,
int
C
,
int
D
,
int
E
,
int
F
,
int
G
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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