]> granicus.if.org Git - libvpx/commitdiff
Allow full RD TX size search for GF/ALT at speed 2
authorYaowu Xu <yaowu@google.com>
Mon, 21 Apr 2014 19:04:59 +0000 (12:04 -0700)
committerYaowu Xu <yaowu@google.com>
Mon, 21 Apr 2014 19:31:46 +0000 (12:31 -0700)
For speed 3 and above, such search is only allowed at speed 3.
The change helped cif and stdhd set by 1.2% and .7% in compression,
but increased the encoding time by around 5%.

Change-Id: Ifa4832327f1c1bef3decb032ceb769cbf50e059f

vp9/encoder/vp9_speed_features.c

index 86ab7dcad50cb0e6f05c47a8e0501f44b0a4caf7..bfde37065ce8eff2583e69123fb2df92040b38a0 100644 (file)
@@ -80,9 +80,6 @@ static void set_good_speed_feature(VP9_COMP *cpi, VP9_COMMON *cm,
   }
 
   if (speed >= 2) {
-    sf->tx_size_search_method = frame_is_intra_only(cm) ? USE_FULL_RD
-                                                        : USE_LARGESTALL;
-
     if (MIN(cm->width, cm->height) >= 720)
       sf->disable_split_mask = cm->show_frame ? DISABLE_ALL_SPLIT
                                               : DISABLE_ALL_INTER_SPLIT;
@@ -104,6 +101,8 @@ static void set_good_speed_feature(VP9_COMP *cpi, VP9_COMMON *cm,
   }
 
   if (speed >= 3) {
+    sf->tx_size_search_method = frame_is_intra_only(cm) ? USE_FULL_RD
+                                                        : USE_LARGESTALL;
     if (MIN(cm->width, cm->height) >= 720)
       sf->disable_split_mask = DISABLE_ALL_SPLIT;
     else