summaryrefslogtreecommitdiff
path: root/vp9/encoder
diff options
context:
space:
mode:
authorMarco Paniconi <marpan@google.com>2019-02-01 01:42:34 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-02-01 01:42:34 +0000
commita7ccc91e3a4e0d1f706407e54bd90b728bd59cf7 (patch)
treeeeb4d0033bba0e11a438475da0a2cfeb864fe4a5 /vp9/encoder
parentbdb1ac08221833d9942f78ebe74b51879a95b7fa (diff)
parent63ceb97c0e4c0f23bd79f560bb703b698cf5899e (diff)
downloadlibvpx-a7ccc91e3a4e0d1f706407e54bd90b728bd59cf7.tar
libvpx-a7ccc91e3a4e0d1f706407e54bd90b728bd59cf7.tar.gz
libvpx-a7ccc91e3a4e0d1f706407e54bd90b728bd59cf7.tar.bz2
libvpx-a7ccc91e3a4e0d1f706407e54bd90b728bd59cf7.zip
Merge "vp9: Tune qp_thresh to disable cyclic refresh for screen"
Diffstat (limited to 'vp9/encoder')
-rw-r--r--vp9/encoder/vp9_aq_cyclicrefresh.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_aq_cyclicrefresh.c b/vp9/encoder/vp9_aq_cyclicrefresh.c
index a2a742493..ef8cd46b4 100644
--- a/vp9/encoder/vp9_aq_cyclicrefresh.c
+++ b/vp9/encoder/vp9_aq_cyclicrefresh.c
@@ -479,7 +479,8 @@ void vp9_cyclic_refresh_update_parameters(VP9_COMP *const cpi) {
double weight_segment_target = 0;
double weight_segment = 0;
int thresh_low_motion = (cm->width < 720) ? 55 : 20;
- int qp_thresh = VPXMIN(20, rc->best_quality << 1);
+ int qp_thresh = VPXMIN((cpi->oxcf.content == VP9E_CONTENT_SCREEN) ? 35 : 20,
+ rc->best_quality << 1);
cr->apply_cyclic_refresh = 1;
if (frame_is_intra_only(cm) || cpi->svc.temporal_layer_id > 0 ||
is_lossless_requested(&cpi->oxcf) ||