Commit b87078d5 authored by Geza Lore's avatar Geza Lore Committed by Debargha Mukherjee
Browse files

Always include the cost of tx size in rate for Y.

The transform can only be skipped if both Y and U/V can be skipped, so
we always include the cost of tx size in the rate for Y. This will
get later subtracted if the transform is actually skipped.

Change-Id: I136a223e5596f18b69bb9f743e7e08438183a215
parent 353930d2
......@@ -1532,7 +1532,7 @@ static int64_t txfm_yrd(VP10_COMP *cpi, MACROBLOCK *x,
rd = RDCOST(x->rdmult, x->rddiv, *r + s0 + r_tx_size * tx_select, *d);
}
if (tx_select && !(*s && is_inter))
if (tx_select)
*r += r_tx_size;
if (is_inter && !xd->lossless[xd->mi[0]->mbmi.segment_id] && !(*s))
......
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