Commit 16efec40 authored by Yushin Cho's avatar Yushin Cho
Browse files

Fix that sse is added twice during early skip in var-tx

The rd_stats->sse is already updated by
"rd_stats->sse += tmp << 4;",
which is measured by pixel_diff_dist(), i.e. in pixel domain and
w/o quantization().

Change-Id: I4dc20a7e80af9dd846aa5de4298cb56e7f0d8f7e
parent cce6692a
......@@ -4469,7 +4469,6 @@ void av1_tx_block_rd_b(const AV1_COMP *cpi, MACROBLOCK *x, TX_SIZE tx_size,
} else {
rd_stats->rate += rd_stats->zero_rate;
rd_stats->dist += RIGHT_SIGNED_SHIFT(tmp_sse, shift);
rd_stats->sse += RIGHT_SIGNED_SHIFT(tmp_sse, shift);
rd_stats->skip = 1;
rd_stats->invalid_rate = 1;
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