]> granicus.if.org Git - libvpx/commitdiff
Merge "Refines variance based partitioning search"
authorDeb Mukherjee <debargha@google.com>
Thu, 27 Feb 2014 17:52:01 +0000 (09:52 -0800)
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>
Thu, 27 Feb 2014 17:52:01 +0000 (09:52 -0800)
1  2 
vp9/encoder/vp9_encodeframe.c

index 8710bdcb1412326f31c9730f8eac380e37bb69a7,b77af8c90ead0beb122058cb64a72107aac46690..7b15d0ab908ba9339840d6033a3c458cae4e613d
@@@ -1390,12 -1415,11 +1422,13 @@@ static void rd_use_partition(VP9_COMP *
  
    pl = partition_plane_context(cpi->above_seg_context, cpi->left_seg_context,
                                 mi_row, mi_col, bsize);
 -  if (last_part_rate < INT_MAX)
 +  if (last_part_rate < INT_MAX) {
      last_part_rate += x->partition_cost[pl][partition];
 +    last_part_rd = RDCOST(x->rdmult, x->rddiv, last_part_rate, last_part_dist);
 +  }
  
    if (cpi->sf.adjust_partitioning_from_last_frame
+       && cpi->sf.partition_search_type == SEARCH_PARTITION
        && partition != PARTITION_SPLIT && bsize > BLOCK_8X8
        && (mi_row + ms < cm->mi_rows || mi_row + (ms >> 1) == cm->mi_rows)
        && (mi_col + ms < cm->mi_cols || mi_col + (ms >> 1) == cm->mi_cols)) {