diff options
author | Marco Paniconi <marpan@google.com> | 2018-06-24 22:00:58 -0700 |
---|---|---|
committer | Marco Paniconi <marpan@google.com> | 2018-06-25 09:56:10 -0700 |
commit | 60f9cf29204bb798654939ae497d16c5376e5fb9 (patch) | |
tree | dd9542ee82196ea01891fa4ba2679e978379a95b /vp9/encoder/vp9_aq_cyclicrefresh.c | |
parent | bd6b274dc04b75289ae3403564f03c2717b878d1 (diff) | |
download | libvpx-60f9cf29204bb798654939ae497d16c5376e5fb9.tar libvpx-60f9cf29204bb798654939ae497d16c5376e5fb9.tar.gz libvpx-60f9cf29204bb798654939ae497d16c5376e5fb9.tar.bz2 libvpx-60f9cf29204bb798654939ae497d16c5376e5fb9.zip |
vp9: Fixes for lossless mode for real-time mode.
Fixes to nonrd coding mode for lossless mode: keep
skip_txfm to 0 (no skip) and disable the encoder breakout.
This makes the encoding lossless when that mode is selected
for real-time (nonrd pickmode).
Also the disable the cyclic refresh for lossless mode.
Change-Id: I20a11ef6df08accec472d26fabebd14d51f4d337
Diffstat (limited to 'vp9/encoder/vp9_aq_cyclicrefresh.c')
-rw-r--r-- | vp9/encoder/vp9_aq_cyclicrefresh.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vp9/encoder/vp9_aq_cyclicrefresh.c b/vp9/encoder/vp9_aq_cyclicrefresh.c index aadedba39..f47da2fa4 100644 --- a/vp9/encoder/vp9_aq_cyclicrefresh.c +++ b/vp9/encoder/vp9_aq_cyclicrefresh.c @@ -429,6 +429,7 @@ void vp9_cyclic_refresh_update_parameters(VP9_COMP *const cpi) { int thresh_low_motion = (cm->width < 720) ? 55 : 20; cr->apply_cyclic_refresh = 1; if (cm->frame_type == KEY_FRAME || cpi->svc.temporal_layer_id > 0 || + is_lossless_requested(&cpi->oxcf) || (cpi->use_svc && cpi->svc.layer_context[cpi->svc.temporal_layer_id].is_key_frame) || (!cpi->use_svc && rc->avg_frame_low_motion < thresh_low_motion && |