shithub: libvpx

Download patch

ref: f7e2f1fedf58231b7b4ad861cad3dc2b86118390
parent: dd314351e656e2ca0f7d6f103fc2ce12a8dde7b1
parent: 431dac08d10b28803a0b5754337099bc79a79fb5
author: Paul Wilkins <paulwilkins@google.com>
date: Fri Jan 7 03:34:27 EST 2011

Merge "Disable some features for first pass."

--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -576,7 +576,7 @@
 
     cpi->mbs_tested_so_far = 0;
 
-    // best quality
+    // best quality defaults
     sf->RD = 1;
     sf->search_method = NSTEP;
     sf->improved_quant = 1;
@@ -1267,6 +1267,15 @@
         vpx_memset(cpi->error_bins, 0, sizeof(cpi->error_bins));
 
     };
+
+    // Slow quant, dct and trellis not worthwhile for first pass
+    // so make sure they are always turned off.
+    if ( cpi->pass == 1 )
+    {
+        sf->improved_quant = 0;
+        sf->optimize_coefficients = 0;
+        sf->improved_dct = 0;
+    }
 
     if (cpi->sf.search_method == NSTEP)
     {
--