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
b447b9d9
Commit
b447b9d9
authored
Jun 06, 2014
by
Adrian Grange
Committed by
Gerrit Code Review
Jun 06, 2014
Browse files
Merge "Revert "Removing this_frame_stats member from TWO_PASS struct.""
parents
5f72de91
a4f74792
Changes
2
Show whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_firstpass.c
View file @
b447b9d9
...
...
@@ -460,7 +460,6 @@ void vp9_first_pass(VP9_COMP *cpi) {
TWO_PASS
*
twopass
=
&
cpi
->
twopass
;
const
MV
zero_mv
=
{
0
,
0
};
const
YV12_BUFFER_CONFIG
*
first_ref_buf
=
lst_yv12
;
FIRSTPASS_STATS
fps
;
vp9_clear_system_state
();
...
...
@@ -758,6 +757,8 @@ void vp9_first_pass(VP9_COMP *cpi) {
vp9_clear_system_state
();
{
FIRSTPASS_STATS
fps
;
fps
.
frame
=
cm
->
current_video_frame
;
fps
.
spatial_layer_id
=
cpi
->
svc
.
spatial_layer_id
;
fps
.
intra_error
=
(
double
)(
intra_error
>>
8
);
...
...
@@ -796,7 +797,8 @@ void vp9_first_pass(VP9_COMP *cpi) {
fps
.
duration
=
(
double
)(
cpi
->
source
->
ts_end
-
cpi
->
source
->
ts_start
);
// Don't want to do output stats with a stack variable!
output_stats
(
&
fps
,
cpi
->
output_pkt_list
);
twopass
->
this_frame_stats
=
fps
;
output_stats
(
&
twopass
->
this_frame_stats
,
cpi
->
output_pkt_list
);
accumulate_stats
(
&
twopass
->
total_stats
,
&
fps
);
}
...
...
@@ -804,9 +806,9 @@ void vp9_first_pass(VP9_COMP *cpi) {
// the prediction is good enough... but also don't allow it to lag too far.
if
((
twopass
->
sr_update_lag
>
3
)
||
((
cm
->
current_video_frame
>
0
)
&&
(
fp
s
.
pcnt_inter
>
0
.
20
)
&&
((
fp
s
.
intra_error
/
DOUBLE_DIVIDE_CHECK
(
fp
s
.
coded_error
))
>
2
.
0
)))
{
(
twopass
->
this_frame_stat
s
.
pcnt_inter
>
0
.
20
)
&&
((
twopass
->
this_frame_stat
s
.
intra_error
/
DOUBLE_DIVIDE_CHECK
(
twopass
->
this_frame_stat
s
.
coded_error
))
>
2
.
0
)))
{
if
(
gld_yv12
!=
NULL
)
{
vp8_yv12_copy_frame
(
lst_yv12
,
gld_yv12
);
}
...
...
vp9/encoder/vp9_firstpass.h
View file @
b447b9d9
...
...
@@ -44,6 +44,7 @@ typedef struct {
unsigned
int
section_intra_rating
;
unsigned
int
next_iiratio
;
FIRSTPASS_STATS
total_stats
;
FIRSTPASS_STATS
this_frame_stats
;
const
FIRSTPASS_STATS
*
stats_in
;
const
FIRSTPASS_STATS
*
stats_in_start
;
const
FIRSTPASS_STATS
*
stats_in_end
;
...
...
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