Remove inactive control parameters
Change-Id: Ic5692af975fe6bd2d8ec82bbae103c6f7c2fc13e
This commit is contained in:
parent
25479e94a4
commit
0eecccc51e
@ -172,9 +172,7 @@ struct macroblock {
|
||||
int skip_encode;
|
||||
|
||||
// Used to store sub partition's choices.
|
||||
int fast_ms;
|
||||
int_mv pred_mv[MAX_REF_FRAMES];
|
||||
int subblock_ref;
|
||||
|
||||
// TODO(jingning): Need to refactor the structure arrays that buffers the
|
||||
// coding mode decisions of each partition type.
|
||||
|
@ -1253,9 +1253,6 @@ static void rd_use_partition(VP9_COMP *cpi,
|
||||
x->mb_energy = vp9_block_energy(cpi, x, bsize);
|
||||
}
|
||||
|
||||
x->fast_ms = 0;
|
||||
x->subblock_ref = 0;
|
||||
|
||||
if (cpi->sf.adjust_partitioning_from_last_frame) {
|
||||
// Check if any of the sub blocks are further split.
|
||||
if (partition == PARTITION_SPLIT && subsize > BLOCK_8X8) {
|
||||
@ -1796,9 +1793,6 @@ static void rd_pick_partition(VP9_COMP *cpi, const TileInfo *const tile,
|
||||
restore_context(cpi, mi_row, mi_col, a, l, sa, sl, bsize);
|
||||
}
|
||||
|
||||
x->fast_ms = 0;
|
||||
x->subblock_ref = 0;
|
||||
|
||||
// PARTITION_HORZ
|
||||
if (partition_horz_allowed && do_rect) {
|
||||
subsize = get_subsize(bsize, PARTITION_HORZ);
|
||||
@ -2220,6 +2214,7 @@ static void select_tx_mode(VP9_COMP *cpi) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Start RTC Exploration
|
||||
typedef enum {
|
||||
BOTH_ZERO = 0,
|
||||
@ -2251,12 +2246,15 @@ static void set_mode_info(MB_MODE_INFO *mbmi, BLOCK_SIZE bsize,
|
||||
mbmi->sb_type = bsize;
|
||||
mbmi->segment_id = 0;
|
||||
}
|
||||
|
||||
static INLINE int get_block_row(int b32i, int b16i, int b8i) {
|
||||
return ((b32i >> 1) << 2) + ((b16i >> 1) << 1) + (b8i >> 1);
|
||||
}
|
||||
|
||||
static INLINE int get_block_col(int b32i, int b16i, int b8i) {
|
||||
return ((b32i & 1) << 2) + ((b16i & 1) << 1) + (b8i & 1);
|
||||
}
|
||||
|
||||
static void rtc_use_partition(VP9_COMP *cpi,
|
||||
const TileInfo *const tile,
|
||||
MODE_INFO **mi_8x8,
|
||||
@ -2276,8 +2274,6 @@ static void rtc_use_partition(VP9_COMP *cpi,
|
||||
int row8x8_remaining = tile->mi_row_end - mi_row;
|
||||
int col8x8_remaining = tile->mi_col_end - mi_col;
|
||||
int b32i;
|
||||
x->fast_ms = 0;
|
||||
x->subblock_ref = 0;
|
||||
for (b32i = 0; b32i < 4; b32i++) {
|
||||
int b16i;
|
||||
for (b16i = 0; b16i < 4; b16i++) {
|
||||
|
@ -2380,13 +2380,6 @@ static void single_motion_search(VP9_COMP *cpi, MACROBLOCK *x,
|
||||
|
||||
vp9_set_mv_search_range(x, &ref_mv.as_mv);
|
||||
|
||||
// Adjust search parameters based on small partitions' result.
|
||||
if (x->fast_ms) {
|
||||
// adjust search range
|
||||
step_param = 6;
|
||||
if (x->fast_ms > 1)
|
||||
step_param = 8;
|
||||
} else {
|
||||
// Work out the size of the first step in the mv step search.
|
||||
// 0 here is maximum length first step. 1 is MAX >> 1 etc.
|
||||
if (cpi->sf.auto_mv_step_size && cpi->common.show_frame) {
|
||||
@ -2398,7 +2391,6 @@ static void single_motion_search(VP9_COMP *cpi, MACROBLOCK *x,
|
||||
} else {
|
||||
step_param = cpi->mv_step_param;
|
||||
}
|
||||
}
|
||||
|
||||
if (cpi->sf.adaptive_motion_search && bsize < BLOCK_64X64 &&
|
||||
cpi->common.show_frame) {
|
||||
@ -3260,12 +3252,6 @@ int64_t vp9_rd_pick_inter_mode_sb(VP9_COMP *cpi, MACROBLOCK *x,
|
||||
vp9_segfeature_active(seg, segment_id, SEG_LVL_REF_FRAME))
|
||||
continue;
|
||||
|
||||
// Skip some checking based on small partitions' result.
|
||||
if (x->fast_ms > 1 && !ref_frame)
|
||||
continue;
|
||||
if (x->fast_ms > 2 && ref_frame != x->subblock_ref)
|
||||
continue;
|
||||
|
||||
mbmi->ref_frame[0] = ref_frame;
|
||||
mbmi->ref_frame[1] = second_ref_frame;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user