]> granicus.if.org Git - libvpx/commitdiff
Adjust motion threshold to limit cyclic refresh.
authorMarco <marpan@google.com>
Thu, 12 Nov 2015 02:21:20 +0000 (18:21 -0800)
committerMarco <marpan@google.com>
Thu, 12 Nov 2015 02:22:21 +0000 (18:22 -0800)
Change-Id: Icfca27a567eb8929c312c6315856ee130d982a04

vp9/encoder/vp9_aq_cyclicrefresh.c

index f221cb3cbee91c966eb31f7505aec3d7c24bf463..0def2cf1fa11e34a923c25c0992aa3e617ce5601 100644 (file)
@@ -412,8 +412,11 @@ static void cyclic_refresh_update_map(VP9_COMP *const cpi) {
   assert(cr->sb_index < sbs_in_frame);
   i = cr->sb_index;
   cr->target_num_seg_blocks = 0;
-  if (cpi->oxcf.content != VP9E_CONTENT_SCREEN)
+  if (cpi->oxcf.content != VP9E_CONTENT_SCREEN) {
     consec_zero_mv_thresh = 100;
+   if (cpi->noise_estimate.enabled && cpi->noise_estimate.level >= kMedium)
+     consec_zero_mv_thresh = 80;
+  }
   qindex_thresh =
       cpi->oxcf.content == VP9E_CONTENT_SCREEN
       ? vp9_get_qindex(&cm->seg, CR_SEGMENT_ID_BOOST2, cm->base_qindex)