diff options
author | Jerome Jiang <jianj@google.com> | 2021-08-24 14:30:54 -0700 |
---|---|---|
committer | Jerome Jiang <jianj@google.com> | 2021-08-24 16:09:40 -0700 |
commit | 59c9e1d87ef33bc82fca82cfcf5202d4b86c92e7 (patch) | |
tree | d6752fc17f447e41c7b788fb1615b980dda2a0a4 /vp9/ratectrl_rtc.cc | |
parent | 15a75b45304248f746634b43763c496322bf8968 (diff) | |
download | libvpx-59c9e1d87ef33bc82fca82cfcf5202d4b86c92e7.tar.gz |
vp9 rc lib: Allow aq 3 to work for SVC with unit test
Also use round to cast float to int with more accurate calculation to
avoid error accumulation which causes qp to be different after ~290
frames.
Change-Id: Iff65a8fdc67401814fd253dbf148afe9887df97f
Diffstat (limited to 'vp9/ratectrl_rtc.cc')
-rw-r--r-- | vp9/ratectrl_rtc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vp9/ratectrl_rtc.cc b/vp9/ratectrl_rtc.cc index 6446120f5..76ff367c0 100644 --- a/vp9/ratectrl_rtc.cc +++ b/vp9/ratectrl_rtc.cc @@ -105,7 +105,7 @@ void VP9RateControlRTC::UpdateRateControl( cpi_->framerate = rc_cfg.framerate; cpi_->svc.number_spatial_layers = rc_cfg.ss_number_layers; cpi_->svc.number_temporal_layers = rc_cfg.ts_number_layers; - + vp9_set_mb_mi(cm, cm->width, cm->height); for (int sl = 0; sl < cpi_->svc.number_spatial_layers; ++sl) { for (int tl = 0; tl < cpi_->svc.number_temporal_layers; ++tl) { const int layer = |