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
f1639a1e
Commit
f1639a1e
authored
Oct 21, 2017
by
Jingning Han
Browse files
Fix mfmv reference region check
Change-Id: Ie740120e44f123c5011df99c2915a4c9ddb9f974
parent
f5f5c849
Changes
1
Hide whitespace changes
Inline
Side-by-side
av1/common/mvref_common.c
View file @
f1639a1e
...
...
@@ -1407,7 +1407,7 @@ static void get_mv_projection(MV *output, MV ref, int num, int den) {
}
#define MAX_OFFSET_WIDTH 64
#define MAX_OFFSET_HEIGHT
32
#define MAX_OFFSET_HEIGHT
0
static
int
get_block_position
(
AV1_COMMON
*
cm
,
int
*
mi_r
,
int
*
mi_c
,
int
blk_row
,
int
blk_col
,
MV
mv
,
int
sign_bias
)
{
...
...
@@ -1423,9 +1423,10 @@ static int get_block_position(AV1_COMMON *cm, int *mi_r, int *mi_c, int blk_row,
col
>=
(
cm
->
mi_cols
>>
1
))
return
0
;
if
(
row
<
base_blk_row
||
row
>
base_blk_row
+
7
||
if
(
row
<=
base_blk_row
-
(
MAX_OFFSET_HEIGHT
>>
3
)
||
row
>=
base_blk_row
+
8
+
(
MAX_OFFSET_HEIGHT
>>
3
)
||
col
<=
base_blk_col
-
(
MAX_OFFSET_WIDTH
>>
3
)
||
col
>=
base_blk_col
+
(
MAX_OFFSET_WIDTH
>>
3
))
col
>=
base_blk_col
+
8
+
(
MAX_OFFSET_WIDTH
>>
3
))
return
0
;
*
mi_r
=
row
;
...
...
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