Commit 13501fe4 authored by Hui Su's avatar Hui Su Committed by Gerrit Code Review

Merge "Small speed up for super_block_uvrd" into nextgenv2

parents 7a3bae76 30d2d978
......@@ -3496,6 +3496,11 @@ static int super_block_uvrd(const VP10_COMP *cpi, MACROBLOCK *x,
*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) {
......@@ -9436,6 +9441,8 @@ void vp10_rd_pick_inter_mode_sub8x8(struct VP10_COMP *cpi,
distortion2 += distortion_uv;
skippable = skippable && uv_skippable;
total_sse += uv_sse;
} else {
continue;
}
}
......
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