]> granicus.if.org Git - libvpx/commitdiff
Change to rd costing for CONFIG_VAR_TX
authorPeter de Rivaz <peter.derivaz@argondesign.com>
Tue, 5 Jan 2016 15:35:43 +0000 (15:35 +0000)
committerPeter de Rivaz <peter.derivaz@argondesign.com>
Tue, 5 Jan 2016 15:35:43 +0000 (15:35 +0000)
In select_tx_block I believe the rd cost was ignoring the bits
needed to encode the split bit.

Change-Id: Iacbf705b880db9a68967a994406ba90ecf693ab8

vp10/encoder/rdopt.c

index 661186846165b0c27f1070be85ee7b13d2e9f552..bd7be7f38d7cc04b24881017dbe4c78db1456132 100644 (file)
@@ -2364,7 +2364,7 @@ static void select_tx_block(const VP10_COMP *cpi, MACROBLOCK *x,
       sum_dist += this_dist;
       sum_bsse += this_bsse;
       all_skip &= this_skip;
-      tmp_rd += RDCOST(x->rdmult, x->rddiv, this_rate, this_dist);
+      tmp_rd = RDCOST(x->rdmult, x->rddiv, sum_rate, sum_dist);
       if (this_rd < tmp_rd)
         break;
     }