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
3e01ca6a
Commit
3e01ca6a
authored
Apr 18, 2013
by
Dmitry Kovalev
Browse files
Fixing rounding inside vp9_mv_bit_cost function.
Change-Id: I7209a05919162a8155520bc543658ddb69ba12ce
parent
2d150439
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_mcomp.c
View file @
3e01ca6a
...
...
@@ -56,9 +56,9 @@ int vp9_mv_bit_cost(int_mv *mv, int_mv *ref, int *mvjcost, int *mvcost[2],
MV
v
;
v
.
row
=
mv
->
as_mv
.
row
-
ref
->
as_mv
.
row
;
v
.
col
=
mv
->
as_mv
.
col
-
ref
->
as_mv
.
col
;
return
((
mvjcost
[
vp9_get_mv_joint
(
&
v
)]
+
mvcost
[
0
][
v
.
row
]
+
mvcost
[
1
][
v
.
col
])
*
weight
)
>>
7
;
return
ROUND_POWER_OF_TWO
((
mvjcost
[
vp9_get_mv_joint
(
&
v
)]
+
mvcost
[
0
][
v
.
row
]
+
mvcost
[
1
][
v
.
col
])
*
weight
,
7
)
;
}
static
int
mv_err_cost
(
int_mv
*
mv
,
int_mv
*
ref
,
int
*
mvjcost
,
int
*
mvcost
[
2
],
...
...
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