shithub: libvpx

Download patch

ref: 8abd0c2a12ffde6ddceba38c981b660ee28273f2
parent: 4ac5058afca24330d2bd5f438abec8574195f9ea
parent: 73422d3b2d7d9c2f08d491de708662740b6b3e6d
author: Aℓex Converse <[email protected]>
date: Fri Jul 31 13:59:22 EDT 2015

Merge "Short circuit rate_block in block_rd_txfm."

--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -554,6 +554,12 @@
 #endif  // CONFIG_VP9_HIGHBITDEPTH
   }
 
+  rd = RDCOST(x->rdmult, x->rddiv, 0, dist);
+  if (args->this_rd + rd > args->best_rd) {
+    args->exit_early = 1;
+    return;
+  }
+
   rate = rate_block(plane, block, plane_bsize, tx_size, args);
   rd1 = RDCOST(x->rdmult, x->rddiv, rate, dist);
   rd2 = RDCOST(x->rdmult, x->rddiv, 0, sse);