Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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
Options
Browse Files
Download
Plain Diff
Merge "Fixing rounding inside vp9_mv_bit_cost function." into experimental
parents
b27edc67
3e01ca6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vp9/encoder/vp9_mcomp.c
vp9/encoder/vp9_mcomp.c
+3
-3
No files found.
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
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