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
Raphael Zumer
aom-rav1e
Commits
df14d9f4
Commit
df14d9f4
authored
Aug 04, 2015
by
Yunqing Wang
Committed by
Gerrit Code Review
Aug 04, 2015
Browse files
Merge "Minor adjustment in diagonal sub-pixel point checking"
parents
f4656961
726d1b84
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_mcomp.c
View file @
df14d9f4
...
...
@@ -703,8 +703,8 @@ int vp9_find_best_sub_pixel_tree(const MACROBLOCK *x,
}
// Check diagonal sub-pixel position
tc
=
bc
+
(
cost_array
[
0
]
<
cost_array
[
1
]
?
-
hstep
:
hstep
);
tr
=
br
+
(
cost_array
[
2
]
<
cost_array
[
3
]
?
-
hstep
:
hstep
);
tc
=
bc
+
(
cost_array
[
0
]
<
=
cost_array
[
1
]
?
-
hstep
:
hstep
);
tr
=
br
+
(
cost_array
[
2
]
<
=
cost_array
[
3
]
?
-
hstep
:
hstep
);
if
(
tc
>=
minc
&&
tc
<=
maxc
&&
tr
>=
minr
&&
tr
<=
maxr
)
{
const
uint8_t
*
const
pre_address
=
y
+
(
tr
>>
3
)
*
y_stride
+
(
tc
>>
3
);
MV
this_mv
=
{
tr
,
tc
};
...
...
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