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
54f843c8
Commit
54f843c8
authored
Apr 18, 2013
by
Dmitry Kovalev
Committed by
Gerrit Code Review
Apr 18, 2013
Browse files
Merge "Fixing rounding inside vp9_mv_bit_cost function." into experimental
parents
b27edc67
3e01ca6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_mcomp.c
View file @
54f843c8
...
...
@@ -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
.
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