shithub: libvpx

Download patch

ref: 33176fef872c5d812d7ce8f9875d5166de460c5d
parent: 6b649a0db9727f3dd1d77af7046ecf3b31e18099
author: Jingning Han <[email protected]>
date: Tue Sep 2 06:57:10 EDT 2014

Skip comp inter mode tests for arf coding

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

--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -2779,6 +2779,10 @@
 
     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)