Commit 3cac9f0a authored by Alex Converse's avatar Alex Converse Committed by Gerrit Code Review
Browse files

Merge "Use UV prediction when deciding to skip in for lossless."

parents cb51192b aed52718
...@@ -592,8 +592,14 @@ int64_t vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x, ...@@ -592,8 +592,14 @@ int64_t vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
unsigned int sse_u, sse_v; unsigned int sse_u, sse_v;
unsigned int var_u, var_v; unsigned int var_u, var_v;
// Skip u v prediction for less calculation, that won't affect // Skip UV prediction unless breakout is zero (lossless) to save
// result much. // computation with low impact on the result
if (x->encode_breakout == 0) {
xd->plane[1].pre[0] = yv12_mb[ref_frame][1];
xd->plane[2].pre[0] = yv12_mb[ref_frame][2];
vp9_build_inter_predictors_sbuv(xd, mi_row, mi_col, bsize);
var_u = cpi->fn_ptr[uv_size].vf(x->plane[1].src.buf, var_u = cpi->fn_ptr[uv_size].vf(x->plane[1].src.buf,
x->plane[1].src.stride, x->plane[1].src.stride,
xd->plane[1].dst.buf, xd->plane[1].dst.buf,
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