Eearly termination if U plane RD cost is large enough.
No notable compression performance changes.
Change-Id: Ieeefc5859cb55d94391b502b4bd840bc8bcb2578
*distortion += pndist;
*sse += pnsse;
*skippable &= pnskip;
+ if (RDCOST(x->rdmult, x->rddiv, *rate, *distortion) > ref_best_rd &&
+ RDCOST(x->rdmult, x->rddiv, 0, *sse) > ref_best_rd) {
+ is_cost_valid = 0;
+ break;
+ }
}
if (!is_cost_valid) {
distortion2 += distortion_uv;
skippable = skippable && uv_skippable;
total_sse += uv_sse;
+ } else {
+ continue;
}
}