Commit 1e79d90e authored by Jingning Han's avatar Jingning Han

Fix txk-sel unit test failure in aq-mode

The current aq mode encoder setting would alter the segment_id
between the rate-distortion optimization and the block encoding
stages. Disable the corresponding consistency check in this case.

BUG=aomedia:1251

Change-Id: Ic910a23fd64a9b4554567d3c8c9a9ae5f6062c7b
parent 0274b64d
......@@ -574,8 +574,11 @@ static void encode_block(int plane, int block, int blk_row, int blk_col,
}
#if CONFIG_TXK_SEL
uint8_t disable_txk_check =
args->enable_optimize_b || args->cpi->oxcf.aq_mode != NO_AQ;
if (plane == 0 && p->eobs[block] == 0) {
if (args->enable_optimize_b) {
if (disable_txk_check) {
xd->mi[0]->mbmi.txk_type[(blk_row << MAX_MIB_SIZE_LOG2) + blk_col] =
DCT_DCT;
} else {
......
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