ref: 062980cc48d2dea43fcc6aff415f7f269422905d
parent: 9520f4b3cc0710729347ea156ff32ad536ea6a45
parent: 7c03a1c3083645ef1b59078a018798aed8d95f96
author: Yaowu Xu <yaowu@google.com>
date: Mon Dec 6 17:04:44 EST 2010
Merge "adjust RDMULT for UV plane in quantization RDO"
--- a/vp8/encoder/encodemb.c
+++ b/vp8/encoder/encodemb.c
@@ -243,9 +243,9 @@
};
// TODO: experiments to find optimal multiple numbers
-#define Y1_RD_MULT 1
-#define UV_RD_MULT 1
-#define Y2_RD_MULT 4
+#define Y1_RD_MULT 4
+#define UV_RD_MULT 2
+#define Y2_RD_MULT 16
static const int plane_rd_mult[4]=
{
@@ -309,7 +309,7 @@
eob = d->eob;
/* Now set up a Viterbi trellis to evaluate alternative roundings. */
- rdmult = (mb->rdmult << 2)*err_mult;
+ rdmult = mb->rdmult * err_mult;
if(mb->e_mbd.mode_info_context->mbmi.ref_frame==INTRA_FRAME)
rdmult = (rdmult * 9)>>4;