shithub: libvpx

Download patch

ref: b47f9c58022ea352caac479de54be2395df61e13
parent: 4ebdb4a1b977717fbec7c9037ce8be8dd600460a
parent: 83e2c62aba3a427e283c87900ba1ab0806766bef
author: Jingning Han <jingning@google.com>
date: Tue Dec 16 04:26:51 EST 2014

Merge "Use right shift to replace division in vp9_pick_inter_mode"

--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -537,9 +537,9 @@
   // Reduce the intra cost penalty for small blocks (<=16x16).
   const int reduction_fac =
       (cpi->sf.partition_search_type == VAR_BASED_PARTITION &&
-       bsize <= BLOCK_16X16) ? 4 : 1;
+       bsize <= BLOCK_16X16) ? 2 : 0;
   const int intra_cost_penalty = vp9_get_intra_cost_penalty(
-      cm->base_qindex, cm->y_dc_delta_q, cm->bit_depth) / reduction_fac;
+      cm->base_qindex, cm->y_dc_delta_q, cm->bit_depth) >> reduction_fac;
   const int64_t inter_mode_thresh = RDCOST(x->rdmult, x->rddiv,
                                            intra_cost_penalty, 0);
   const int8_t segment_id = mbmi->segment_id;