summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_ratectrl.c
diff options
context:
space:
mode:
authorMarco <marpan@google.com>2017-01-06 15:28:21 -0800
committerMarco <marpan@google.com>2017-01-06 15:37:10 -0800
commitf1909d26f8bfcbf2726a4977151715c4c628b83b (patch)
tree84084769d4458dc15d02499cf60ecc90d9a50cf2 /vp9/encoder/vp9_ratectrl.c
parent90f889a56d14b9335d6710af9d4034c101927b3b (diff)
downloadlibvpx-f1909d26f8bfcbf2726a4977151715c4c628b83b.tar
libvpx-f1909d26f8bfcbf2726a4977151715c4c628b83b.tar.gz
libvpx-f1909d26f8bfcbf2726a4977151715c4c628b83b.tar.bz2
libvpx-f1909d26f8bfcbf2726a4977151715c4c628b83b.zip
vp9: 1 pass cbr mode: increase threshold for gf_cbr_boost_pct usage.
Increase the boost threshold below which GOLDEN update will use same rate correction factor as INTER_NORMAL. Improves performance when gf_cbr_boost_pct is set (between 0 and 100) in CBR mode. Change-Id: I9f54cc18664786a100b13a416b7137ae03bd0cab
Diffstat (limited to 'vp9/encoder/vp9_ratectrl.c')
-rw-r--r--vp9/encoder/vp9_ratectrl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vp9/encoder/vp9_ratectrl.c b/vp9/encoder/vp9_ratectrl.c
index 34ee11548..c8b38e3d7 100644
--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -414,7 +414,7 @@ static double get_rate_correction_factor(const VP9_COMP *cpi) {
} else {
if ((cpi->refresh_alt_ref_frame || cpi->refresh_golden_frame) &&
!rc->is_src_frame_alt_ref && !cpi->use_svc &&
- (cpi->oxcf.rc_mode != VPX_CBR || cpi->oxcf.gf_cbr_boost_pct > 20))
+ (cpi->oxcf.rc_mode != VPX_CBR || cpi->oxcf.gf_cbr_boost_pct > 100))
rcf = rc->rate_correction_factors[GF_ARF_STD];
else
rcf = rc->rate_correction_factors[INTER_NORMAL];
@@ -440,7 +440,7 @@ static void set_rate_correction_factor(VP9_COMP *cpi, double factor) {
} else {
if ((cpi->refresh_alt_ref_frame || cpi->refresh_golden_frame) &&
!rc->is_src_frame_alt_ref && !cpi->use_svc &&
- (cpi->oxcf.rc_mode != VPX_CBR || cpi->oxcf.gf_cbr_boost_pct > 20))
+ (cpi->oxcf.rc_mode != VPX_CBR || cpi->oxcf.gf_cbr_boost_pct > 100))
rc->rate_correction_factors[GF_ARF_STD] = factor;
else
rc->rate_correction_factors[INTER_NORMAL] = factor;