Commit a772ae72 authored by Angie Chiang's avatar Angie Chiang Committed by James Zern

Fix assertion in lv_map experiment

Turn off the assertion because av1_init_lv_map doesn't pass the
count according to the position into get_base_ctx_from_count_mag()

The speeding-up optimize_txb is still on-going.
I will turn the assertion on once the speeding-up process is
getting to a milestone.

BUG=aomedia:704

Change-Id: I0119bf825bedc1fccbe4963f341a17f0e2601d02
parent 0cf4d9f1
......@@ -133,13 +133,16 @@ static INLINE int get_base_ctx_from_count_mag(int row, int col, int count,
int ctx_idx = -1;
if (row == 0 && col == 0) {
ctx_idx = (ctx << 1) + sig_mag;
assert(ctx_idx < 8);
// TODO(angiebird): turn this on once the optimization is finalized
// assert(ctx_idx < 8);
} else if (row == 0) {
ctx_idx = 8 + (ctx << 1) + sig_mag;
assert(ctx_idx < 18);
// TODO(angiebird): turn this on once the optimization is finalized
// assert(ctx_idx < 18);
} else if (col == 0) {
ctx_idx = 8 + 10 + (ctx << 1) + sig_mag;
assert(ctx_idx < 28);
// TODO(angiebird): turn this on once the optimization is finalized
// assert(ctx_idx < 28);
} else {
ctx_idx = 8 + 10 + 10 + (ctx << 1) + sig_mag;
assert(ctx_idx < COEFF_BASE_CONTEXTS);
......
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