From: hui su Date: Thu, 24 Mar 2016 23:38:04 +0000 (-0700) Subject: Speed up ext-intra X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c85a68123f63f7fedc195eaceb996074752e91c6;p=libvpx Speed up ext-intra 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 --- diff --git a/vp10/encoder/rdopt.c b/vp10/encoder/rdopt.c index e7f4358cf..b97b66152 100644 --- a/vp10/encoder/rdopt.c +++ b/vp10/encoder/rdopt.c @@ -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