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
24aa59cc
Commit
24aa59cc
authored
Oct 06, 2016
by
Alex Converse
Browse files
Fix left shift of negative integer in hbd directional predictors
Change-Id: Id78139ae2dfa2d521bd50618b4a81cf24e09e391
parent
29804479
Changes
1
Hide whitespace changes
Inline
Side-by-side
av1/common/reconintra.c
View file @
24aa59cc
...
...
@@ -868,7 +868,7 @@ static void highbd_dr_prediction_z1(uint16_t *dst, ptrdiff_t stride, int bs,
for
(
c
=
0
;
c
<
bs
;
++
c
)
{
x
=
(
c
<<
8
)
-
y
*
dx
;
base
=
x
>>
8
;
shift
=
x
-
(
base
<<
8
)
;
shift
=
x
&
0xFF
;
if
(
base
<
2
*
bs
-
1
)
{
val
=
highbd_intra_subpel_interp
(
base
,
shift
,
above
,
0
,
2
*
bs
-
1
,
filter_type
);
...
...
@@ -897,7 +897,7 @@ static void highbd_dr_prediction_z2(uint16_t *dst, ptrdiff_t stride, int bs,
x
=
(
c
<<
8
)
-
y
*
dx
;
base
=
x
>>
8
;
if
(
base
>=
-
1
)
{
shift
=
x
-
(
base
<<
8
)
;
shift
=
x
&
0xFF
;
val
=
highbd_intra_subpel_interp
(
base
,
shift
,
above
,
-
1
,
bs
-
1
,
filter_type
);
}
else
{
...
...
@@ -905,7 +905,7 @@ static void highbd_dr_prediction_z2(uint16_t *dst, ptrdiff_t stride, int bs,
y
=
(
r
<<
8
)
-
x
*
dy
;
base
=
y
>>
8
;
if
(
base
>=
0
)
{
shift
=
y
-
(
base
<<
8
)
;
shift
=
y
&
0xFF
;
val
=
highbd_intra_subpel_interp
(
base
,
shift
,
left
,
0
,
bs
-
1
,
filter_type
);
}
else
{
...
...
@@ -935,7 +935,7 @@ static void highbd_dr_prediction_z3(uint16_t *dst, ptrdiff_t stride, int bs,
x
=
c
+
1
;
y
=
(
r
<<
8
)
-
x
*
dy
;
base
=
y
>>
8
;
shift
=
y
-
(
base
<<
8
)
;
shift
=
y
&
0xFF
;
if
(
base
<
2
*
bs
-
1
)
{
val
=
highbd_intra_subpel_interp
(
base
,
shift
,
left
,
0
,
2
*
bs
-
1
,
filter_type
);
...
...
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