ref: 3cac9f0a0470d62f2fe203ec133f4387b37922f0
parent: cb51192b5106e5e2c0570ace106b7a12c6cbc2cd
parent: aed52718762148cd2725f5456cef793c939a38d0
author: Alex Converse <[email protected]>
date: Fri Jun 27 06:06:54 EDT 2014
Merge "Use UV prediction when deciding to skip in for lossless."
--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -592,8 +592,14 @@
unsigned int sse_u, sse_v;
unsigned int var_u, var_v;
- // Skip u v prediction for less calculation, that won't affect
- // result much.
+ // Skip UV prediction unless breakout is zero (lossless) to save
+ // 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,
x->plane[1].src.stride,
xd->plane[1].dst.buf,