Commit f1909d26 authored by Marco's avatar Marco
Browse files

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
parent 90f889a5
...@@ -414,7 +414,7 @@ static double get_rate_correction_factor(const VP9_COMP *cpi) { ...@@ -414,7 +414,7 @@ static double get_rate_correction_factor(const VP9_COMP *cpi) {
} else { } else {
if ((cpi->refresh_alt_ref_frame || cpi->refresh_golden_frame) && if ((cpi->refresh_alt_ref_frame || cpi->refresh_golden_frame) &&
!rc->is_src_frame_alt_ref && !cpi->use_svc && !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]; rcf = rc->rate_correction_factors[GF_ARF_STD];
else else
rcf = rc->rate_correction_factors[INTER_NORMAL]; rcf = rc->rate_correction_factors[INTER_NORMAL];
...@@ -440,7 +440,7 @@ static void set_rate_correction_factor(VP9_COMP *cpi, double factor) { ...@@ -440,7 +440,7 @@ static void set_rate_correction_factor(VP9_COMP *cpi, double factor) {
} else { } else {
if ((cpi->refresh_alt_ref_frame || cpi->refresh_golden_frame) && if ((cpi->refresh_alt_ref_frame || cpi->refresh_golden_frame) &&
!rc->is_src_frame_alt_ref && !cpi->use_svc && !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; rc->rate_correction_factors[GF_ARF_STD] = factor;
else else
rc->rate_correction_factors[INTER_NORMAL] = factor; rc->rate_correction_factors[INTER_NORMAL] = factor;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment