Commit 93af45fc authored by Angie Chiang's avatar Angie Chiang
Browse files

Avoid using gen_txb_cache when eob_first is on

Change-Id: Ib5e79caa67ba6a061e8dc22491c86cde702be137
parent 0d04f573
...@@ -2400,11 +2400,15 @@ int av1_optimize_txb(const AV1_COMMON *cm, MACROBLOCK *x, int plane, ...@@ -2400,11 +2400,15 @@ int av1_optimize_txb(const AV1_COMMON *cm, MACROBLOCK *x, int plane,
rdmult, rdmult,
&cm->coeff_ctx_table }; &cm->coeff_ctx_table };
#if CONFIG_EOB_FIRST
const int update = optimize_txb(&txb_info, &txb_costs, NULL, 0, fast_mode);
#else
TxbCache txb_cache; TxbCache txb_cache;
gen_txb_cache(&txb_cache, &txb_info); gen_txb_cache(&txb_cache, &txb_info);
const int update = const int update =
optimize_txb(&txb_info, &txb_costs, &txb_cache, 0, fast_mode); optimize_txb(&txb_info, &txb_costs, &txb_cache, 0, fast_mode);
#endif
if (update) p->eobs[block] = txb_info.eob; if (update) p->eobs[block] = txb_info.eob;
return txb_info.eob; return txb_info.eob;
} }
......
Supports Markdown
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