]> granicus.if.org Git - libvpx/commitdiff
Remove reset mode_info array per frame
authorJingning Han <jingning@google.com>
Tue, 16 Dec 2014 17:21:22 +0000 (09:21 -0800)
committerJingning Han <jingning@google.com>
Tue, 16 Dec 2014 23:54:24 +0000 (15:54 -0800)
The mode_info array was unnecessarily reset to zero every frame
when error resilient mode turned on, given that the mode info
values per block will be assigned during mode search stage.

This commit removes this reset operation. It reduces the runtime
cost on memset operation to 1/3. The overall speed -6 runtime is
reduced by 2%.

Change-Id: I32ecb73338d8995cc0c5147de09357364f13d45b

vp9/common/vp9_entropymode.c

index 0edc4f9bae6689bca75ef23c211da2963a6fa08a..4557e19bf4976512955472522ff1ddaca94c6ce9 100644 (file)
@@ -470,8 +470,6 @@ void vp9_setup_past_independence(VP9_COMMON *cm) {
     vpx_memset(cm->prev_mip, 0, cm->mi_stride * (cm->mi_rows + 1) *
                                     sizeof(*cm->prev_mip));
 
-  vpx_memset(cm->mip, 0, cm->mi_stride * (cm->mi_rows + 1) * sizeof(*cm->mip));
-
   vp9_zero(cm->ref_frame_sign_bias);
 
   cm->frame_context_idx = 0;