Commit 644e966d authored by Debargha Mukherjee's avatar Debargha Mukherjee
Browse files

Fix Rd cost for skip overrides

I had done only a partial fix before. But updating the costs seems to
make an even bigger improvement to the baseline.

BUG=aomedia:1094

Change-Id: Id427819507143c05b4dc3d4c05e6b2a66d17899f
parent 16d1cacb
......@@ -4183,6 +4183,8 @@ static void select_inter_block_yrd(const AV1_COMP *cpi, MACROBLOCK *x,
this_rd = RDCOST(x->rdmult, rd_stats->rate, rd_stats->dist);
if (zero_rd < this_rd) {
this_rd = zero_rd;
rd_stats->rate = rd_stats->zero_rate;
rd_stats->dist = rd_stats->sse;
rd_stats->skip = 1;
}
if (this_rd > ref_best_rd) is_cost_valid = 0;
......@@ -4452,6 +4454,8 @@ int inter_block_yrd(const AV1_COMP *cpi, MACROBLOCK *x, RD_STATS *rd_stats,
this_rd = RDCOST(x->rdmult, rd_stats->rate, rd_stats->dist);
if (zero_rd < this_rd) {
this_rd = zero_rd;
rd_stats->rate = rd_stats->zero_rate;
rd_stats->dist = rd_stats->sse;
rd_stats->skip = 1;
}
if (this_rd > ref_best_rd) is_cost_valid = 0;
......
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