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
0d793e35
Commit
0d793e35
authored
Sep 13, 2017
by
Hui Su
Browse files
motion-var: simplify code
Change-Id: I620fab24173eef846510a74f4186c315f6623052
parent
f289f9f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
av1/common/reconinter.c
View file @
0d793e35
...
...
@@ -1269,27 +1269,20 @@ static INLINE void build_inter_predictors(
const
int
ss_x
=
pd
->
subsampling_x
;
const
int
ss_y
=
pd
->
subsampling_y
;
int
sub8x8_inter
=
bsize
<
BLOCK_8X8
&&
(
ss_x
||
ss_y
);
#if CONFIG_MOTION_VAR
sub8x8_inter
=
sub8x8_inter
&&
!
build_for_obmc
;
#endif // CONFIG_MOTION_VAR
const
int
row_start
=
(
block_size_high
[
bsize
]
==
4
)
&&
ss_y
?
-
1
:
0
;
const
int
col_start
=
(
block_size_wide
[
bsize
]
==
4
)
&&
ss_x
?
-
1
:
0
;
#if CONFIG_MOTION_VAR
if
(
!
build_for_obmc
&&
sub8x8_inter
)
#else
if
(
sub8x8_inter
)
#endif // CONFIG_MOTION_VAR
{
if
(
sub8x8_inter
)
{
for
(
int
row
=
row_start
;
row
<=
0
&&
sub8x8_inter
;
++
row
)
for
(
int
col
=
col_start
;
col
<=
0
;
++
col
)
if
(
!
is_inter_block
(
&
xd
->
mi
[
row
*
xd
->
mi_stride
+
col
]
->
mbmi
))
sub8x8_inter
=
0
;
}
#if CONFIG_MOTION_VAR
if
(
!
build_for_obmc
&&
sub8x8_inter
)
#else
if
(
sub8x8_inter
)
#endif // CONFIG_MOTION_VAR
{
if
(
sub8x8_inter
)
{
// block size
const
int
b4_w
=
block_size_wide
[
bsize
]
>>
ss_x
;
const
int
b4_h
=
block_size_high
[
bsize
]
>>
ss_y
;
...
...
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