]> granicus.if.org Git - libvpx/commitdiff
Add tx type speed feature to recursive transform block partitioning
authorJingning Han <jingning@google.com>
Tue, 7 Jun 2016 16:40:17 +0000 (09:40 -0700)
committerJingning Han <jingning@google.com>
Tue, 7 Jun 2016 18:34:30 +0000 (11:34 -0700)
Change-Id: I45440a72b4287d98cbe21b72defc67138a8eb953

vp10/encoder/rdopt.c

index f701f64d7cc399138fb934f2ad92431ed92d631a..9e18e12d5bc725d38acecc171ddb9ee75a57753e 100644 (file)
@@ -3534,6 +3534,10 @@ static void select_tx_type_yrd(const VP10_COMP *cpi, MACROBLOCK *x,
         !do_tx_type_search(tx_type, prune))
       continue;
 #endif  // CONFIG_EXT_TX
+    if (is_inter && x->use_default_inter_tx_type &&
+        tx_type != get_default_tx_type(0, xd, 0, max_tx_size))
+      continue;
+
     rd = select_tx_size_fix_type(cpi, x, &this_rate, &this_dist, &this_skip,
                                  &this_sse, bsize, ref_best_rd, tx_type);