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
Xiph.Org
aom-rav1e
Commits
779840c9
Commit
779840c9
authored
Apr 26, 2016
by
Paul Wilkins
Committed by
Gerrit Code Review
Apr 26, 2016
Browse files
Merge "Resolve a couple of TODOs in firstpass.c"
parents
7a4c2c76
015c43f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_firstpass.c
View file @
779840c9
...
@@ -1124,7 +1124,8 @@ void vp9_first_pass(VP9_COMP *cpi, const struct lookahead_entry *source) {
...
@@ -1124,7 +1124,8 @@ void vp9_first_pass(VP9_COMP *cpi, const struct lookahead_entry *source) {
fps
.
intra_skip_pct
=
(
double
)
intra_skip_count
/
num_mbs
;
fps
.
intra_skip_pct
=
(
double
)
intra_skip_count
/
num_mbs
;
fps
.
intra_smooth_pct
=
(
double
)
intra_smooth_count
/
num_mbs
;
fps
.
intra_smooth_pct
=
(
double
)
intra_smooth_count
/
num_mbs
;
fps
.
inactive_zone_rows
=
(
double
)
image_data_start_row
;
fps
.
inactive_zone_rows
=
(
double
)
image_data_start_row
;
fps
.
inactive_zone_cols
=
(
double
)
0
;
// TODO(paulwilkins): fix
// Currently set to 0 as most issues relate to letter boxing.
fps
.
inactive_zone_cols
=
(
double
)
0
;
if
(
mvcount
>
0
)
{
if
(
mvcount
>
0
)
{
fps
.
MVr
=
(
double
)
sum_mvr
/
mvcount
;
fps
.
MVr
=
(
double
)
sum_mvr
/
mvcount
;
...
@@ -1150,10 +1151,9 @@ void vp9_first_pass(VP9_COMP *cpi, const struct lookahead_entry *source) {
...
@@ -1150,10 +1151,9 @@ void vp9_first_pass(VP9_COMP *cpi, const struct lookahead_entry *source) {
fps
.
pcnt_motion
=
0
.
0
;
fps
.
pcnt_motion
=
0
.
0
;
}
}
// TODO(paulwilkins): Handle the case when duration is set to 0, or
// Dont allow a value of 0 for duration.
// something less than the full time between subsequent values of
// (Section duration is also defaulted to minimum of 1.0).
// cpi->source_time_stamp.
fps
.
duration
=
VPXMAX
(
1
.
0
,
(
double
)(
source
->
ts_end
-
source
->
ts_start
));
fps
.
duration
=
(
double
)(
source
->
ts_end
-
source
->
ts_start
);
// Don't want to do output stats with a stack variable!
// Don't want to do output stats with a stack variable!
twopass
->
this_frame_stats
=
fps
;
twopass
->
this_frame_stats
=
fps
;
...
...
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