]> granicus.if.org Git - libvpx/commitdiff
vp9: Adjust minmax threshold for variance partitioning.
authorMarco <marpan@google.com>
Thu, 13 Jul 2017 23:09:11 +0000 (16:09 -0700)
committerMarco <marpan@google.com>
Fri, 14 Jul 2017 04:19:37 +0000 (21:19 -0700)
Only affects speed 7. Improvement on high motion clips.

Change-Id: Ibddb68fed9c63207df29ffd790f9205b1cecf687

vp9/encoder/vp9_encodeframe.c

index c22bf85e3f3088c29e4e85b4da8592dc82631582..948d01bc3b57c46315435c945adceb21845b9760 100644 (file)
@@ -1285,7 +1285,10 @@ static int choose_partitioning(VP9_COMP *cpi, const TileInfo *const tile,
                                           xd->cur_buf->flags,
 #endif
                                           pixels_wide, pixels_high);
-          if (minmax > cpi->vbp_threshold_minmax) {
+          int thresh_minmax = (int)cpi->vbp_threshold_minmax;
+          if (x->content_state_sb == kVeryHighSad)
+            thresh_minmax = thresh_minmax << 1;
+          if (minmax > thresh_minmax) {
             force_split[split_index] = 1;
             force_split[i + 1] = 1;
             force_split[0] = 1;