diff options
author | Marco Paniconi <marpan@google.com> | 2018-04-27 10:38:15 -0700 |
---|---|---|
committer | Marco Paniconi <marpan@google.com> | 2018-05-14 11:21:21 -0700 |
commit | 9ebc8605dbb493d25247cf106b8760c6fccbd11d (patch) | |
tree | 8b34540b3d713609d90384d7ed407febae794bf7 /vp9 | |
parent | c85c5337bfe2f64503b8e8f4584db63d6cd64d61 (diff) | |
download | libvpx-9ebc8605dbb493d25247cf106b8760c6fccbd11d.tar libvpx-9ebc8605dbb493d25247cf106b8760c6fccbd11d.tar.gz libvpx-9ebc8605dbb493d25247cf106b8760c6fccbd11d.tar.bz2 libvpx-9ebc8605dbb493d25247cf106b8760c6fccbd11d.zip |
vp9-realtime: Enable alt_ref at speed 5, for live.
Enable alt_ref and compound prediction at speed 5.
For 1 pass VBR mode, when lag > 0.
Gain for Live set: ~3% gain on average, several
clips have gains ~5-15%.
Encoder fps decrease ~5-10%, on desktop with 4 threads.
For now enable it only for resolutions <= 1280x720.
Change-Id: I25e3d61a2244a3a01962624052c5adf4837965c7
Diffstat (limited to 'vp9')
-rw-r--r-- | vp9/encoder/vp9_speed_features.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_speed_features.c b/vp9/encoder/vp9_speed_features.c index 90da68726..47c1d43bb 100644 --- a/vp9/encoder/vp9_speed_features.c +++ b/vp9/encoder/vp9_speed_features.c @@ -537,8 +537,14 @@ static void set_rt_speed_feature_framesize_independent( if (cpi->use_svc && cpi->svc.spatial_layer_id > 0) sf->nonrd_keyframe = 1; if (cpi->oxcf.pass == 0 && cpi->oxcf.rc_mode == VPX_CBR && cm->frame_type != KEY_FRAME && cpi->resize_state == ORIG && - cpi->oxcf.content == VP9E_CONTENT_SCREEN) + cpi->oxcf.content == VP9E_CONTENT_SCREEN) { sf->re_encode_overshoot_rt = 1; + } + if (cpi->oxcf.rc_mode == VPX_VBR && cpi->oxcf.lag_in_frames > 0 && + cm->width <= 1280 && cm->height <= 720) { + sf->use_altref_onepass = 1; + sf->use_compound_nonrd_pickmode = 1; + } } if (speed >= 6) { |