From f16b186b8ead1ff7ddac7d3d00b3bab2f829c946 Mon Sep 17 00:00:00 2001 From: Dmitry Kovalev Date: Thu, 2 Jan 2014 18:29:56 -0800 Subject: [PATCH] Reusing vp9_get_skip_context() function in encoder. Change-Id: Ic0345622115941f49b6a568c7b8154ba892cbf0d --- vp9/encoder/vp9_encodeframe.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/vp9/encoder/vp9_encodeframe.c b/vp9/encoder/vp9_encodeframe.c index 3deaa0810..dd81993dc 100644 --- a/vp9/encoder/vp9_encodeframe.c +++ b/vp9/encoder/vp9_encodeframe.c @@ -2606,12 +2606,9 @@ static void encode_superblock(VP9_COMP *cpi, TOKENEXTRA **t, int output_enabled, vp9_encode_sb(x, MAX(bsize, BLOCK_8X8)); vp9_tokenize_sb(cpi, t, !output_enabled, MAX(bsize, BLOCK_8X8)); } else { - int mb_skip_context = xd->left_available ? mi_8x8[-1]->mbmi.skip_coeff : 0; - mb_skip_context += mi_8x8[-mis] ? mi_8x8[-mis]->mbmi.skip_coeff : 0; - mbmi->skip_coeff = 1; if (output_enabled) - cm->counts.mbskip[mb_skip_context][1]++; + cm->counts.mbskip[vp9_get_skip_context(xd)][1]++; reset_skip_context(xd, MAX(bsize, BLOCK_8X8)); }