Commit 26e265f0 authored by Jingning Han's avatar Jingning Han

Properly reconstruct picked intra block in txk-sel RD search

Skip the quantization and reconstruction process when the best
selected intra mode goes with skip mode. Tested on a few 1080p
key frame coding at mid to high bit-rate range, the encoding
speed is up by 3% - 5%.

The compression for hdres key frame coding is improved from
neutural to 0.3% gains.

Change-Id: Id6b7131e82cdb45e53db65e2b92d8ccfcf00f47e
parent d7b54cac
......@@ -2373,7 +2373,7 @@ int64_t av1_search_txk_type(const AV1_COMP *cpi, MACROBLOCK *x, int plane,
x->plane[plane].txb_entropy_ctx[block] = best_txb_ctx;
x->plane[plane].eobs[block] = best_eob;
if (!is_inter_block(mbmi)) {
if (!is_inter_block(mbmi) && best_eob) {
// intra mode needs decoded result such that the next transform block
// can use it for prediction.
if (cpi->sf.optimize_coefficients != FULL_TRELLIS_OPT) {
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