Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
libvpx
Commits
e943db04
Commit
e943db04
authored
Jun 30, 2015
by
Yaowu Xu
Committed by
Gerrit Code Review
Jun 30, 2015
Browse files
Merge "Fixed a variance calculation"
parents
fc3c4560
9f14bbfd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
vp9/encoder/vp9_firstpass.c
vp9/encoder/vp9_firstpass.c
+4
-2
No files found.
vp9/encoder/vp9_firstpass.c
View file @
e943db04
...
@@ -1031,8 +1031,10 @@ void vp9_first_pass(VP9_COMP *cpi, const struct lookahead_entry *source) {
...
@@ -1031,8 +1031,10 @@ void vp9_first_pass(VP9_COMP *cpi, const struct lookahead_entry *source) {
fps
.
mvr_abs
=
(
double
)
sum_mvr_abs
/
mvcount
;
fps
.
mvr_abs
=
(
double
)
sum_mvr_abs
/
mvcount
;
fps
.
MVc
=
(
double
)
sum_mvc
/
mvcount
;
fps
.
MVc
=
(
double
)
sum_mvc
/
mvcount
;
fps
.
mvc_abs
=
(
double
)
sum_mvc_abs
/
mvcount
;
fps
.
mvc_abs
=
(
double
)
sum_mvc_abs
/
mvcount
;
fps
.
MVrv
=
((
double
)
sum_mvrs
-
(
fps
.
MVr
*
fps
.
MVr
/
mvcount
))
/
mvcount
;
fps
.
MVrv
=
((
double
)
sum_mvrs
-
fps
.
MVcv
=
((
double
)
sum_mvcs
-
(
fps
.
MVc
*
fps
.
MVc
/
mvcount
))
/
mvcount
;
((
double
)
sum_mvr
*
sum_mvr
/
mvcount
))
/
mvcount
;
fps
.
MVcv
=
((
double
)
sum_mvcs
-
((
double
)
sum_mvc
*
sum_mvc
/
mvcount
))
/
mvcount
;
fps
.
mv_in_out_count
=
(
double
)
sum_in_vectors
/
(
mvcount
*
2
);
fps
.
mv_in_out_count
=
(
double
)
sum_in_vectors
/
(
mvcount
*
2
);
fps
.
new_mv_count
=
new_mv_count
;
fps
.
new_mv_count
=
new_mv_count
;
fps
.
pcnt_motion
=
(
double
)
mvcount
/
num_mbs
;
fps
.
pcnt_motion
=
(
double
)
mvcount
/
num_mbs
;
...
...
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