Commit 87278292 authored by Angie Chiang's avatar Angie Chiang
Browse files

Make rd/enc optimize_txb uses same fast_mode

The performance drop introduced by inconsistency decision between
optimize_txb in rd loop and final encoding phase.

By making them use the same fast_mode,  will speed up encoder
without having the performance drop

Change-Id: If25e253cf99b6f17353b4031d03b57da50a1cd95
parent 93af45fc
......@@ -613,7 +613,7 @@ static void encode_block(int plane, int block, int blk_row, int blk_col,
}
av1_optimize_b(cm, x, plane, blk_row, blk_col, block, plane_bsize, tx_size, a,
l, 0);
l, 1);
av1_set_txb_context(x, plane, block, tx_size, a, l);
......@@ -884,7 +884,7 @@ void av1_encode_block_intra(int plane, int block, int blk_row, int blk_col,
av1_xform_quant(cm, x, plane, block, blk_row, blk_col, plane_bsize, tx_size,
ctx, AV1_XFORM_QUANT_FP);
av1_optimize_b(cm, x, plane, blk_row, blk_col, block, plane_bsize, tx_size,
a, l, 0);
a, l, 1);
} else {
av1_xform_quant(cm, x, plane, block, blk_row, blk_col, plane_bsize, tx_size,
ctx, AV1_XFORM_QUANT_B);
......
......@@ -1514,7 +1514,7 @@ static INLINE int check_br_neighbor(tran_low_t qc) {
return abs(qc) > BR_MAG_OFFSET;
}
#define FAST_OPTIMIZE_TXB 0
#define FAST_OPTIMIZE_TXB 1
#if FAST_OPTIMIZE_TXB
#define ALNB_REF_OFFSET_NUM 2
......
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