]> granicus.if.org Git - libvpx/commitdiff
vp9:aq-mode=3: Keep perc_refresh fixed for screen content mode.
authorMarco Paniconi <marpan@google.com>
Thu, 19 Apr 2018 02:59:45 +0000 (19:59 -0700)
committerMarco Paniconi <marpan@google.com>
Thu, 19 Apr 2018 03:03:54 +0000 (20:03 -0700)
Don't allow for changing the perc_refresh with screen-content
mode, as this helps reduce some overshoot for static content.

Change-Id: Idbe1849e7a14ef18fda20bee6dced809f134b7f7

vp9/encoder/vp9_aq_cyclicrefresh.c

index ef8484f988bd4c1921a59a39d20cf9b1f87860f5..b47840795e14457c59931b540ef683d8be2ce4d8 100644 (file)
@@ -413,7 +413,8 @@ static void cyclic_refresh_update_map(VP9_COMP *const cpi) {
   } while (cr->target_num_seg_blocks < block_count && i != cr->sb_index);
   cr->sb_index = i;
   cr->reduce_refresh = 0;
-  if (count_sel<(3 * count_tot)>> 2) cr->reduce_refresh = 1;
+  if (cpi->oxcf.content != VP9E_CONTENT_SCREEN)
+    if (count_sel<(3 * count_tot)>> 2) cr->reduce_refresh = 1;
 }
 
 // Set cyclic refresh parameters.