]> granicus.if.org Git - libvpx/commitdiff
Speed up ext-intra
authorhui su <huisu@google.com>
Thu, 24 Mar 2016 23:38:04 +0000 (16:38 -0700)
committerhui su <huisu@google.com>
Fri, 25 Mar 2016 04:43:18 +0000 (21:43 -0700)
Skip filtered intra modes search in inter frame when DC mode is
worse than the best mode so far.

With ext-intra enabled, the overall speed is increased by 20~40%;
performance drop is 0.03% on lowres and 0.05% on midres.

Change-Id: I75d2503b067cf5e46e3533b97fb01497e125baa7

vp10/encoder/rdopt.c

index e7f4358cffe3db6e4f275375da2492f4c0f7d3af..b97b66152c57a64ac9473506ee00d06b4ef3b629 100644 (file)
@@ -7920,6 +7920,8 @@ void vp10_rd_pick_inter_mode_sb(VP10_COMP *cpi,
         mbmi->angle_delta[0] = 0;
         super_block_yrd(cpi, x, &rate_y, &distortion_y, &skippable,
                         NULL, bsize, best_rd);
+        if (rate_y == INT_MAX)
+          continue;
       }
 
       // TODO(huisu): ext-intra is turned off in lossless mode for now to