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
b1e04f7e
Commit
b1e04f7e
authored
Mar 31, 2017
by
Steinar Midtskogen
Committed by
Jean-Marc Valin
Apr 02, 2017
Browse files
Improve high bitdepth CLPF by using newly added v128_ssub_u16
Change-Id: I392b801f61b0d3bcd1cd6157ab783f76ea8c9e5e
parent
9b8444a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
av1/common/clpf_simd.h
View file @
b1e04f7e
...
...
@@ -256,10 +256,8 @@ SIMD_INLINE v128 constrain_hbd(v128 a, v128 b, unsigned int strength,
v128
diff
=
v128_sub_16
(
a
,
b
);
const
v128
sign
=
v128_shr_n_s16
(
diff
,
15
);
diff
=
v128_abs_s16
(
diff
);
const
v128
zero
=
v128_zero
();
const
v128
s
=
v128_max_s16
(
zero
,
v128_sub_16
(
v128_dup_16
(
strength
),
v128_shr_u16
(
diff
,
dmp
-
get_msb
(
strength
))));
const
v128
s
=
v128_ssub_u16
(
v128_dup_16
(
strength
),
v128_shr_u16
(
diff
,
dmp
-
get_msb
(
strength
)));
return
v128_sub_16
(
v128_xor
(
sign
,
v128_min_s16
(
diff
,
s
)),
sign
);
}
...
...
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