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
Raphael Zumer
aom-rav1e
Commits
f1ecf63f
Commit
f1ecf63f
authored
Aug 05, 2015
by
Marco Paniconi
Committed by
Gerrit Code Review
Aug 05, 2015
Browse files
Merge "Bugfix for svc."
parents
23591322
f6255dbb
Changes
3
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_encodeframe.c
View file @
f1ecf63f
...
...
@@ -3925,7 +3925,9 @@ static void encode_frame_internal(VP9_COMP *cpi) {
}
vp9_zero
(
x
->
zcoeff_blk
);
if
(
cm
->
frame_type
!=
KEY_FRAME
&&
cpi
->
rc
.
frames_since_golden
==
0
)
if
(
cm
->
frame_type
!=
KEY_FRAME
&&
cpi
->
rc
.
frames_since_golden
==
0
&&
!
cpi
->
use_svc
)
cpi
->
ref_frame_flags
&=
(
~
VP9_GOLD_FLAG
);
if
(
sf
->
partition_search_type
==
SOURCE_VAR_BASED_PARTITION
)
...
...
vp9/encoder/vp9_pickmode.c
View file @
f1ecf63f
...
...
@@ -1157,12 +1157,11 @@ void vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
vp9_denoiser_reset_frame_stats
(
ctx
);
#endif
if
(
cpi
->
rc
.
frames_since_golden
==
0
)
{
if
(
cpi
->
rc
.
frames_since_golden
==
0
&&
!
cpi
->
use_svc
)
{
usable_ref_frame
=
LAST_FRAME
;
}
else
{
usable_ref_frame
=
GOLDEN_FRAME
;
}
for
(
ref_frame
=
LAST_FRAME
;
ref_frame
<=
usable_ref_frame
;
++
ref_frame
)
{
const
YV12_BUFFER_CONFIG
*
yv12
=
get_ref_frame_buffer
(
cpi
,
ref_frame
);
...
...
vp9/encoder/vp9_ratectrl.c
View file @
f1ecf63f
...
...
@@ -1339,13 +1339,15 @@ void vp9_rc_postencode_update(VP9_COMP *cpi, uint64_t bytes_used) {
rc
->
total_target_vs_actual
=
rc
->
total_actual_bits
-
rc
->
total_target_bits
;
if
(
is_altref_enabled
(
cpi
)
&&
cpi
->
refresh_alt_ref_frame
&&
(
cm
->
frame_type
!=
KEY_FRAME
))
// Update the alternate reference frame stats as appropriate.
update_alt_ref_frame_stats
(
cpi
);
else
// Update the Golden frame stats as appropriate.
update_golden_frame_stats
(
cpi
);
if
(
!
cpi
->
use_svc
)
{
if
(
is_altref_enabled
(
cpi
)
&&
cpi
->
refresh_alt_ref_frame
&&
(
cm
->
frame_type
!=
KEY_FRAME
))
// Update the alternate reference frame stats as appropriate.
update_alt_ref_frame_stats
(
cpi
);
else
// Update the Golden frame stats as appropriate.
update_golden_frame_stats
(
cpi
);
}
if
(
cm
->
frame_type
==
KEY_FRAME
)
rc
->
frames_since_key
=
0
;
...
...
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