]> granicus.if.org Git - libvpx/commitdiff
Deleted repeated code block
authorAdrian Grange <agrange@google.com>
Tue, 1 Nov 2011 15:41:43 +0000 (08:41 -0700)
committerAdrian Grange <agrange@google.com>
Tue, 1 Nov 2011 15:41:43 +0000 (08:41 -0700)
The block of code skipped testing the current mode if the
reference frame is AltRef, the mv is not (0,0) and
ARNR filtering is disabled.

This block of code has already been tested above if the
macro CONFIG_SEGFEATURES is set to 0.

Change-Id: I3f5710bb8270caad06c9a0eee59fa0daf1f70776

vp8/encoder/pickinter.c

index 404a5bf6735c67841901154899f3c6b5a46ade84..cb7a4859bedee30861609cde84323eae76ccdc7d 100644 (file)
@@ -600,17 +600,6 @@ void vp8_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset,
             memcpy(mdcounts, MDCounts[x->e_mbd.mode_info_context->mbmi.ref_frame], sizeof(mdcounts));
         }
 
-#if !CONFIG_SEGFEATURES
-        // Only consider ZEROMV/ALTREF_FRAME for alt ref frame,
-        // unless ARNR filtering is enabled in which case we want
-        // an unfiltered alternative
-        if (cpi->is_src_frame_alt_ref && (cpi->oxcf.arnr_max_frames == 0))
-        {
-            if (this_mode != ZEROMV || x->e_mbd.mode_info_context->mbmi.ref_frame != ALTREF_FRAME)
-                continue;
-        }
-#endif
-
         switch (this_mode)
         {
         case B_PRED: