Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
607ed425
Commit
607ed425
authored
Nov 10, 2016
by
Yaowu Xu
Browse files
Correct corner case intra prediction
BUG=aomedia:81 Change-Id: Ia9c853b38463aa88e1d6c1df49a5930f78add77d
parent
9dcf5602
Changes
1
Show whitespace changes
Inline
Side-by-side
av1/common/reconintra.c
View file @
607ed425
...
...
@@ -1247,7 +1247,7 @@ static void build_intra_predictors_high(
assert
(
n_bottomleft_px
>=
0
);
if
((
!
need_above
&&
n_left_px
==
0
)
||
(
!
need_left
&&
n_top_px
==
0
))
{
const
int
val
=
(
n_left
_px
==
0
)
?
base
+
1
:
base
-
1
;
const
int
val
=
n
eed
_left
?
base
+
1
:
base
-
1
;
for
(
i
=
0
;
i
<
bs
;
++
i
)
{
aom_memset16
(
dst
,
val
,
bs
);
dst
+=
dst_stride
;
...
...
@@ -1409,7 +1409,7 @@ static void build_intra_predictors(const MACROBLOCKD *xd, const uint8_t *ref,
assert
(
n_bottomleft_px
>=
0
);
if
((
!
need_above
&&
n_left_px
==
0
)
||
(
!
need_left
&&
n_top_px
==
0
))
{
const
int
val
=
(
n_left
_px
==
0
)
?
129
:
127
;
const
int
val
=
n
eed
_left
?
129
:
127
;
for
(
i
=
0
;
i
<
bs
;
++
i
)
{
memset
(
dst
,
val
,
bs
);
dst
+=
dst_stride
;
...
...
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