Skip comp inter mode tests for arf coding
authorJingning Han <jingning@google.com>
Tue, 2 Sep 2014 17:57:10 +0000 (10:57 -0700)
committerJingning Han <jingning@google.com>
Tue, 2 Sep 2014 18:23:47 +0000 (11:23 -0700)
This commit skips the compound inter mode prediction check in the
rate-distortion optimization loop for ARF coding. It reduces the
runtime for certain test clips at speed 3, at no compression
performance change:

bus CIF 1000 kbps, 8260 ms -> 8090 ms, 1.8% speed-up
stockholm 720p 1000 kbps, 74453 ms -> 71826 ms, 2.9% speed-up

No visible speed-up for pedestrian area 1080p at 2000 kbps.

Change-Id: Ic68aa56837159b726563b784e2e3729e846465ad

vp9/encoder/vp9_rdopt.c

index 65684e7..7aaa903 100644 (file)
@@ -2779,6 +2779,10 @@ int64_t vp9_rd_pick_inter_mode_sb(VP9_COMP *cpi, MACROBLOCK *x,
 
     comp_pred = second_ref_frame > INTRA_FRAME;
     if (comp_pred) {
+      if (cpi->sf.alt_ref_search_fp)
+        if (!cm->show_frame)
+          continue;
+
       if ((mode_search_skip_flags & FLAG_SKIP_COMP_BESTINTRA) &&
           best_mode_index >=0 &&
           vp9_mode_order[best_mode_index].ref_frame[0] == INTRA_FRAME)