ref: 73189f21b304bae6fe8121cb6c600591dbde54d8
parent: 8c2dfde3ed0c6e99ec20b9a4f85e2e4772a956ba
parent: ef2f27f10e39bc21254effe1083773c9b761d487
author: Yaowu Xu <yaowu@google.com>
date: Mon Nov 15 04:22:45 EST 2010
Merge "make rdmult adaptive for intra in quantizer RDO"
--- a/vp8/encoder/encodemb.c
+++ b/vp8/encoder/encodemb.c
@@ -309,8 +309,10 @@
eob = d->eob;
/* Now set up a Viterbi trellis to evaluate alternative roundings. */
- /* TODO: These should vary with the block type, since the quantizer does. */
rdmult = (mb->rdmult << 2)*err_mult;
+ if(mb->e_mbd.mode_info_context->mbmi.ref_frame==INTRA_FRAME)
+ rdmult = (rdmult * 9)>>4;
+
rddiv = mb->rddiv;
best_mask[0] = best_mask[1] = 0;
/* Initialize the sentinel node of the trellis. */