summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_ratectrl.c
diff options
context:
space:
mode:
authorJerome Jiang <jianj@google.com>2018-06-06 23:02:26 -0700
committerJerome Jiang <jianj@google.com>2018-06-07 14:09:50 -0700
commite32f0bf2399bfba4cda1f04f56bc2b05a2d34354 (patch)
treeb40bc6aab45210f83d590b558894e31ef4a8b847 /vp9/encoder/vp9_ratectrl.c
parent76cc69f884a5261880396a3d93664455a1dff3ff (diff)
downloadlibvpx-e32f0bf2399bfba4cda1f04f56bc2b05a2d34354.tar
libvpx-e32f0bf2399bfba4cda1f04f56bc2b05a2d34354.tar.gz
libvpx-e32f0bf2399bfba4cda1f04f56bc2b05a2d34354.tar.bz2
libvpx-e32f0bf2399bfba4cda1f04f56bc2b05a2d34354.zip
vp9 svc: add control to set using second temporal ref.
Bump up ABI version. Change-Id: I4498d7ea4ed72994c5f847aa98e75b0150dd7f82
Diffstat (limited to 'vp9/encoder/vp9_ratectrl.c')
-rw-r--r--vp9/encoder/vp9_ratectrl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vp9/encoder/vp9_ratectrl.c b/vp9/encoder/vp9_ratectrl.c
index e3d1b3713..4b30ca7a8 100644
--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -1599,7 +1599,7 @@ void vp9_rc_postencode_update(VP9_COMP *cpi, uint64_t bytes_used) {
// If second (long term) temporal reference is used for SVC,
// update the golden frame counter, only for base temporal layer.
- if (cpi->use_svc && cpi->svc.use_longterm_ref_current_layer &&
+ if (cpi->use_svc && cpi->svc.use_gf_temporal_ref_current_layer &&
cpi->svc.temporal_layer_id == 0) {
if (cpi->refresh_golden_frame)
rc->frames_since_golden = 0;
@@ -1875,7 +1875,7 @@ void vp9_rc_get_svc_params(VP9_COMP *cpi) {
// If long term termporal feature is enabled, set the period of the update.
// The update/refresh of this reference frame is always on base temporal
// layer frame.
- if (svc->use_longterm_ref_current_layer && svc->temporal_layer_id == 0) {
+ if (svc->use_gf_temporal_ref_current_layer && svc->temporal_layer_id == 0) {
if (svc->layer_context[svc->temporal_layer_id].is_key_frame) {
// On key frame we update the buffer index used for long term reference.
// Use the alt_ref since it is not used or updated on key frames.
@@ -1883,7 +1883,7 @@ void vp9_rc_get_svc_params(VP9_COMP *cpi) {
cpi->ext_refresh_alt_ref_frame = 1;
if (svc->number_spatial_layers == 3) index = svc->spatial_layer_id - 1;
assert(index >= 0);
- cpi->alt_fb_idx = svc->buffer_longterm_ref[index].idx;
+ cpi->alt_fb_idx = svc->buffer_gf_temporal_ref[index].idx;
} else if (rc->frames_till_gf_update_due == 0) {
// Set perdiod of next update. Make it a multiple of 10, as the cyclic
// refresh is typically ~10%, and we'd like the update to happen after
@@ -1895,7 +1895,7 @@ void vp9_rc_get_svc_params(VP9_COMP *cpi) {
cpi->ext_refresh_golden_frame = 1;
rc->gfu_boost = DEFAULT_GF_BOOST;
}
- } else if (!svc->use_longterm_ref) {
+ } else if (!svc->use_gf_temporal_ref) {
rc->frames_till_gf_update_due = INT_MAX;
rc->baseline_gf_interval = INT_MAX;
}