]> granicus.if.org Git - libvpx/commitdiff
Add more checking to using_small_partition_info
authorYunqing Wang <yunqingwang@google.com>
Thu, 1 Aug 2013 18:37:41 +0000 (11:37 -0700)
committerYunqing Wang <yunqingwang@google.com>
Thu, 1 Aug 2013 18:37:41 +0000 (11:37 -0700)
If the partition is out of partition size range, we don't
need to process small partition information.

Change-Id: Ice9bfbbdebe1f2ef79271a3aee17de0ed4608376

vp9/encoder/vp9_encodeframe.c

index f6521740b357787376507c7511b14e333e9907f9..15dc64e03c0d0e91876598a47c43e86e07e82e22 100644 (file)
@@ -1555,13 +1555,16 @@ static void rd_pick_partition(VP9_COMP *cpi, TOKENEXTRA **tp, int mi_row,
     }
   }
 
+  // Use 4 subblocks' motion estimation results to speed up current
+  // partition's checking.
   x->fast_ms = 0;
   x->pred_mv.as_int = 0;
   x->subblock_ref = 0;
 
-  // Use 4 subblocks' motion estimation results to speed up current
-  // partition's checking.
-  if (cpi->sf.using_small_partition_info) {
+  if (cpi->sf.using_small_partition_info &&
+      (!cpi->sf.auto_min_max_partition_size ||
+      (bsize <= cpi->sf.max_partition_size &&
+      bsize >= cpi->sf.min_partition_size))) {
     // Only use 8x8 result for non HD videos.
     // int use_8x8 = (MIN(cpi->common.width, cpi->common.height) < 720) ? 1 : 0;
     int use_8x8 = 1;