From abb2fbb10eedb9aceff845092fe54661ab0df8df Mon Sep 17 00:00:00 2001 From: Jingning Han Date: Mon, 20 Oct 2014 15:34:19 -0700 Subject: Remove deprecated constrain_copy_partitioning function Its functionality has been replaced with choose_partitioning and threshold based control on split mode check. Change-Id: Ic9bb321df06b524f5c38ea5874dc6f6a8f93c5e3 --- vp9/encoder/vp9_encodeframe.c | 53 ---------------------------------------- vp9/encoder/vp9_speed_features.c | 2 -- vp9/encoder/vp9_speed_features.h | 6 ----- 3 files changed, 61 deletions(-) (limited to 'vp9') diff --git a/vp9/encoder/vp9_encodeframe.c b/vp9/encoder/vp9_encodeframe.c index c7b99b747..b80081732 100644 --- a/vp9/encoder/vp9_encodeframe.c +++ b/vp9/encoder/vp9_encodeframe.c @@ -1182,59 +1182,6 @@ static void copy_partitioning(VP9_COMMON *cm, MODE_INFO *mi_8x8, } } -static void constrain_copy_partitioning(VP9_COMP *const cpi, - const TileInfo *const tile, - MODE_INFO *mi_8x8, - MODE_INFO *prev_mi_8x8, - int mi_row, int mi_col, - BLOCK_SIZE bsize) { - VP9_COMMON *const cm = &cpi->common; - const int mis = cm->mi_stride; - const int row8x8_remaining = tile->mi_row_end - mi_row; - const int col8x8_remaining = tile->mi_col_end - mi_col; - MODE_INFO *const mi_upper_left = cm->mi + mi_row * mis + mi_col; - const int bh = num_8x8_blocks_high_lookup[bsize]; - const int bw = num_8x8_blocks_wide_lookup[bsize]; - int block_row, block_col; - - assert((row8x8_remaining > 0) && (col8x8_remaining > 0)); - - // If the SB64 if it is all "in image". - if ((col8x8_remaining >= MI_BLOCK_SIZE) && - (row8x8_remaining >= MI_BLOCK_SIZE)) { - for (block_row = 0; block_row < MI_BLOCK_SIZE; block_row += bh) { - for (block_col = 0; block_col < MI_BLOCK_SIZE; block_col += bw) { - const int index = block_row * mis + block_col; - MODE_INFO *prev_mi = prev_mi_8x8[index].src_mi; - const BLOCK_SIZE sb_type = prev_mi ? prev_mi->mbmi.sb_type : 0; - // Use previous partition if block size is not larger than bsize. - if (prev_mi && sb_type <= bsize) { - int block_row2, block_col2; - for (block_row2 = 0; block_row2 < bh; ++block_row2) { - for (block_col2 = 0; block_col2 < bw; ++block_col2) { - const int index2 = (block_row + block_row2) * mis + - block_col + block_col2; - prev_mi = prev_mi_8x8[index2].src_mi; - if (prev_mi) { - const ptrdiff_t offset = prev_mi - cm->prev_mi; - mi_8x8[index2].src_mi = cm->mi + offset; - mi_8x8[index2].src_mi->mbmi.sb_type = prev_mi->mbmi.sb_type; - } - } - } - } else { - // Otherwise, use fixed partition of size bsize. - mi_8x8[index].src_mi = mi_upper_left + index; - mi_8x8[index].src_mi->mbmi.sb_type = bsize; - } - } - } - } else { - // Else this is a partial SB64, copy previous partition. - copy_partitioning(cm, mi_8x8, prev_mi_8x8); - } -} - const struct { int row; int col; diff --git a/vp9/encoder/vp9_speed_features.c b/vp9/encoder/vp9_speed_features.c index 5cc703fc3..923e1f3a8 100644 --- a/vp9/encoder/vp9_speed_features.c +++ b/vp9/encoder/vp9_speed_features.c @@ -216,7 +216,6 @@ static void set_rt_speed_feature(VP9_COMP *cpi, SPEED_FEATURES *sf, if (speed >= 3) { sf->use_square_partition_only = 1; sf->disable_filter_search_var_thresh = 100; - sf->constrain_copy_partition = 1; sf->use_uv_intra_rd_estimate = 1; sf->skip_encode_sb = 1; sf->mv.subpel_iters_per_step = 1; @@ -365,7 +364,6 @@ void vp9_set_speed_features(VP9_COMP *cpi) { sf->min_partition_size = BLOCK_4X4; sf->adjust_partitioning_from_last_frame = 0; sf->last_partitioning_redo_frequency = 4; - sf->constrain_copy_partition = 0; sf->disable_split_mask = 0; sf->mode_search_skip_flags = 0; sf->force_frame_boost = 0; diff --git a/vp9/encoder/vp9_speed_features.h b/vp9/encoder/vp9_speed_features.h index 58372aca8..1712f873f 100644 --- a/vp9/encoder/vp9_speed_features.h +++ b/vp9/encoder/vp9_speed_features.h @@ -286,12 +286,6 @@ typedef struct SPEED_FEATURES { // use_lastframe_partitioning is set. int last_partitioning_redo_frequency; - // This enables constrained copy partitioning, which, given an input block - // size bsize, will copy previous partition for partitions less than bsize, - // otherwise bsize partition is used. bsize is currently set to 16x16. - // Used for the case where motion is detected in superblock. - int constrain_copy_partition; - // Disables sub 8x8 blocksizes in different scenarios: Choices are to disable // it always, to allow it for only Last frame and Intra, disable it for all // inter modes or to enable it always. -- cgit v1.2.3