Replacing is_inter_mode with is_inter_block.
It should be only a check based on the block type (inter vs intra), not on the mode value. Change-Id: I0378cb4ba7c9a1631c1e870a537187b8650fa30a
This commit is contained in:
		@@ -35,14 +35,14 @@ unsigned char vp9_get_pred_context_switchable_interp(const MACROBLOCKD *xd) {
 | 
				
			|||||||
  // left of the entries correpsonding to real macroblocks.
 | 
					  // left of the entries correpsonding to real macroblocks.
 | 
				
			||||||
  // The prediction flags in these dummy entries are initialised to 0.
 | 
					  // The prediction flags in these dummy entries are initialised to 0.
 | 
				
			||||||
  // left
 | 
					  // left
 | 
				
			||||||
  const int left_mv_pred = left_in_image ? is_inter_mode(left_mi->mbmi.mode)
 | 
					  const int left_mv_pred = left_in_image ? is_inter_block(&left_mi->mbmi)
 | 
				
			||||||
                                         : 0;
 | 
					                                         : 0;
 | 
				
			||||||
  const int left_interp = left_in_image && left_mv_pred
 | 
					  const int left_interp = left_in_image && left_mv_pred
 | 
				
			||||||
                              ? left_mi->mbmi.interp_filter
 | 
					                              ? left_mi->mbmi.interp_filter
 | 
				
			||||||
                              : SWITCHABLE_FILTERS;
 | 
					                              : SWITCHABLE_FILTERS;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // above
 | 
					  // above
 | 
				
			||||||
  const int above_mv_pred = above_in_image ? is_inter_mode(above_mi->mbmi.mode)
 | 
					  const int above_mv_pred = above_in_image ? is_inter_block(&above_mi->mbmi)
 | 
				
			||||||
                                           : 0;
 | 
					                                           : 0;
 | 
				
			||||||
  const int above_interp = above_in_image && above_mv_pred
 | 
					  const int above_interp = above_in_image && above_mv_pred
 | 
				
			||||||
                               ? above_mi->mbmi.interp_filter
 | 
					                               ? above_mi->mbmi.interp_filter
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user