summaryrefslogtreecommitdiff
path: root/vp8/encoder
diff options
context:
space:
mode:
authorPaul Wilkins <paulwilkins@google.com>2011-01-28 13:13:30 +0000
committerPaul Wilkins <paulwilkins@google.com>2011-01-28 13:13:30 +0000
commitdcb23e2aaaef27a12d72f7e263f9629fdf68c266 (patch)
tree2620774f0fba74141cc3c3a6372324e6c2756e0d /vp8/encoder
parent73207a1d8bf1ecf6bc6fea03ae56109fe18e9574 (diff)
downloadlibvpx-dcb23e2aaaef27a12d72f7e263f9629fdf68c266.tar
libvpx-dcb23e2aaaef27a12d72f7e263f9629fdf68c266.tar.gz
libvpx-dcb23e2aaaef27a12d72f7e263f9629fdf68c266.tar.bz2
libvpx-dcb23e2aaaef27a12d72f7e263f9629fdf68c266.zip
Inconsistent distortion metric in vp8_rd_pick_intra_mbuv_mode
This function was using a variance metric compared to and SSE metric in other places (eg. vp8_rd_inter_uv) Change-Id: I9109fcc5a13bca9db1d7ead500fe14999ab233eb
Diffstat (limited to 'vp8/encoder')
-rw-r--r--vp8/encoder/rdopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vp8/encoder/rdopt.c b/vp8/encoder/rdopt.c
index 950c02997..50780a3c1 100644
--- a/vp8/encoder/rdopt.c
+++ b/vp8/encoder/rdopt.c
@@ -813,7 +813,7 @@ int vp8_rd_pick_intra_mbuv_mode(VP8_COMP *cpi, MACROBLOCK *x, int *rate, int *ra
rate_to = rd_cost_mbuv(x);
rate = rate_to + x->intra_uv_mode_cost[x->e_mbd.frame_type][x->e_mbd.mode_info_context->mbmi.uv_mode];
- distortion = vp8_get_mbuvrecon_error(IF_RTCD(&cpi->rtcd.variance), x);
+ distortion = ENCODEMB_INVOKE(&cpi->rtcd.encodemb, mbuverr)(x) / 4;
this_rd = RDCOST(x->rdmult, x->rddiv, rate, distortion);