Commit 00cd5de5 authored by Jingning Han's avatar Jingning Han

Remove skip_recode speed feature

The inter modes now support and test multiple transform types. The
assumption of skip_recode mode no longer exist. Remove this speed
feature.

Change-Id: I2e6798fc841d8ca3838dabed7741950552961a13
parent 7056e3a0
......@@ -68,7 +68,6 @@ struct macroblock {
MB_MODE_INFO_EXT *mbmi_ext;
int skip_block;
int select_tx_size;
int skip_recode;
int skip_optimize;
int q_index;
......
......@@ -1105,7 +1105,6 @@ static void rd_pick_sb_modes(AV1_COMP *cpi, TileDataEnc *tile_data,
ctx->is_coded = 0;
ctx->skippable = 0;
ctx->pred_pixel_ready = 0;
x->skip_recode = 0;
// Set to zero to make sure we do not use the previous encoded frame stats
mbmi->skip = 0;
......@@ -2921,12 +2920,7 @@ static void encode_superblock(AV1_COMP *cpi, ThreadData *td, TOKENEXTRA **t,
const int mi_width = num_8x8_blocks_wide_lookup[bsize];
const int mi_height = num_8x8_blocks_high_lookup[bsize];
x->skip_recode = !x->select_tx_size && mbmi->sb_type >= BLOCK_8X8 &&
cpi->oxcf.aq_mode != COMPLEXITY_AQ &&
cpi->oxcf.aq_mode != CYCLIC_REFRESH_AQ &&
cpi->sf.allow_skip_recode;
if (!x->skip_recode) memset(x->skip_txfm, 0, sizeof(x->skip_txfm));
memset(x->skip_txfm, 0, sizeof(x->skip_txfm));
x->skip_optimize = ctx->is_coded;
ctx->is_coded = 1;
......
This diff is collapsed.
......@@ -525,7 +525,6 @@ void av1_first_pass(AV1_COMP *cpi, const struct lookahead_entry *source) {
pd[i].dqcoeff = ctx->dqcoeff_pbuf[i][1];
p[i].eobs = ctx->eobs_pbuf[i][1];
}
x->skip_recode = 0;
av1_init_mv_probs(cm);
av1_initialize_rd_consts(cpi);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment