shithub: libvpx

Download patch

ref: 199971d606a4591ce5583e12b43381e65ef12106
parent: 0c493cbe2b28e4c1baebe563888275692a75587a
parent: 8842ee0b0d7975f72067b56ab66a7acbe22a65c7
author: Paul Wilkins <paulwilkins@google.com>
date: Thu Oct 19 06:07:45 EDT 2017

Merge "Corpus VBR tweak for undershoot."

--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -3956,6 +3956,11 @@
     // rate miss. If so adjust the active maxQ for the subsequent frames.
     if (q > cpi->twopass.active_worst_quality) {
       cpi->twopass.active_worst_quality = q;
+#ifdef CORPUS_VBR_EXPERIMENT
+    } else if (q == q_low && rc->projected_frame_size < rc->this_frame_target) {
+      cpi->twopass.active_worst_quality =
+          VPXMAX(q, cpi->twopass.active_worst_quality - 1);
+#endif
     }
   }