shithub: libvpx

Download patch

ref: c36d502e923d4225771e7ec61d2f276146886e29
parent: df5731273f0fdfe32f02477217d7ea4362a66631
author: Jim Bankoski <[email protected]>
date: Tue Jul 9 04:52:30 EDT 2013

decoder speedup - get-segment-id only if segmentation enabled

Change-Id: I9355f8446660aeb7dfdbc5ee56635c791ac35e95

--- a/vp9/decoder/vp9_decodemv.c
+++ b/vp9/decoder/vp9_decodemv.c
@@ -367,13 +367,14 @@
   VP9_COMMON *const cm = &pbi->common;
   MACROBLOCKD *const xd = &pbi->mb;
   const BLOCK_SIZE_TYPE bsize = xd->mode_info_context->mbmi.sb_type;
-  const int pred_segment_id = vp9_get_segment_id(cm, cm->last_frame_seg_map,
-                                                 bsize, mi_row, mi_col);
+  int pred_segment_id;
   int segment_id;
 
   if (!xd->segmentation_enabled)
     return 0;  // Default for disabled segmentation
 
+  pred_segment_id = vp9_get_segment_id(cm, cm->last_frame_seg_map,
+                                                   bsize, mi_row, mi_col);
   if (!xd->update_mb_segmentation_map)
     return pred_segment_id;