ref: 5dc0b309ababadc381e6c5a509b7173eaedaf248
parent: 2e3478a5933254256a2634dee427daf577cf3039
parent: f67919ae8681c1b7ee0cd6755bf43aa325196eb4
author: Jingning Han <[email protected]>
date: Mon Aug 19 10:34:19 EDT 2013
Merge "Fix the returned distortion value in rd_pick_intra"
--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -3016,13 +3016,13 @@
if (y_skip && uv_skip) {
*returnrate = rate_y + rate_uv - rate_y_tokenonly - rate_uv_tokenonly +
vp9_cost_bit(vp9_get_pred_prob_mbskip(cm, xd), 1);
- *returndist = dist_y + (dist_uv >> 2);
+ *returndist = dist_y + dist_uv;
vp9_zero(ctx->tx_rd_diff);
} else {
int i;
*returnrate = rate_y + rate_uv +
vp9_cost_bit(vp9_get_pred_prob_mbskip(cm, xd), 0);
- *returndist = dist_y + (dist_uv >> 2);
+ *returndist = dist_y + dist_uv;
if (cpi->sf.tx_size_search_method == USE_FULL_RD)
for (i = 0; i < TX_MODES; i++)
ctx->tx_rd_diff[i] = tx_cache[i] - tx_cache[cm->tx_mode];