From 043e0f9dad1106b60ba3e58dfc4075ed261080dc Mon Sep 17 00:00:00 2001 From: Jingning Han Date: Mon, 15 Jul 2013 11:28:46 -0700 Subject: [PATCH] Skip inter-coded block reconstruction in rd loop Skip the inverse transform and reconstruction of inter-mode coded blocks in the rate-distortion optimization loop, when skip_encode_sb feature is turned on. This provides about 1% speed-up at speed 0, and 1.5% speed-up at speed 1. No performance change in both settings. Change-Id: I2932718bf4d007163702b61b16b6ff100cf9d007 --- vp9/encoder/vp9_encodemb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vp9/encoder/vp9_encodemb.c b/vp9/encoder/vp9_encodemb.c index 6ca8e6eb2..24f1f42ec 100644 --- a/vp9/encoder/vp9_encodemb.c +++ b/vp9/encoder/vp9_encodemb.c @@ -493,6 +493,9 @@ static void encode_block(int plane, int block, BLOCK_SIZE_TYPE bsize, if (x->optimize) vp9_optimize_b(plane, block, bsize, ss_txfrm_size, args->cm, x, args->ctx); + if (x->skip_encode) + return; + switch (ss_txfrm_size / 2) { case TX_32X32: vp9_short_idct32x32_add(dqcoeff, dst, pd->dst.stride);