Skip to content
GitLab
Menu
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
3c038b6c
Commit
3c038b6c
authored
Oct 23, 2013
by
James Zern
Browse files
vp9/extend_for_intra: avoid crossing tile boundary
Change-Id: I0d8a71778aa3c73b8b1673e14053074bb866548b
parent
34d6077c
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/common/vp9_blockd.h
View file @
3c038b6c
...
...
@@ -439,16 +439,19 @@ static void extend_for_intra(MACROBLOCKD* const xd, BLOCK_SIZE plane_bsize,
}
if
(
xd
->
mb_to_bottom_edge
<
0
)
{
const
int
bh
=
4
<<
b_height_log2
(
plane_bsize
);
const
int
umv_border_start
=
bh
+
(
xd
->
mb_to_bottom_edge
>>
(
3
+
pd
->
subsampling_y
));
int
i
;
const
uint8_t
c
=
buf
[(
umv_border_start
-
1
)
*
stride
+
x
];
uint8_t
*
d
=
&
buf
[
umv_border_start
*
stride
+
x
];
if
(
y
+
bh
>
umv_border_start
)
for
(
i
=
0
;
i
<
bh
;
++
i
,
d
+=
stride
)
*
d
=
c
;
if
(
xd
->
left_available
||
x
>=
0
)
{
const
int
bh
=
4
<<
b_height_log2
(
plane_bsize
);
const
int
umv_border_start
=
bh
+
(
xd
->
mb_to_bottom_edge
>>
(
3
+
pd
->
subsampling_y
));
if
(
y
+
bh
>
umv_border_start
)
{
const
uint8_t
c
=
buf
[(
umv_border_start
-
1
)
*
stride
+
x
];
uint8_t
*
d
=
&
buf
[
umv_border_start
*
stride
+
x
];
int
i
;
for
(
i
=
0
;
i
<
bh
;
++
i
,
d
+=
stride
)
*
d
=
c
;
}
}
}
}
static
void
set_contexts_on_border
(
MACROBLOCKD
*
xd
,
...
...
Write
Preview
Supports
Markdown
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