shithub: libvpx

Download patch

ref: e0b28ad696ec37e13eedc81257dba554d7bffd6e
parent: 2b800d93941f27e6acb24e9dac2201fd449c3766
author: paulwilkins <paulwilkins@google.com>
date: Thu Mar 29 08:52:15 EDT 2018

Add extra case to wq_err_divisor()

Add extra case for 360P and smaller.
This hurts a little in psnr for the derf cif set but helps a little
in terms of average rate accuracy. Most clips come in a little
smaller with this patch.

No impact on larger formats.

Change-Id: I5056246cb53b90f961ff9ea5813937f33778aa4c

--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -1588,7 +1588,9 @@
 
   // Use a different error per mb factor for calculating boost for
   //  different formats.
-  if (screen_area < 1280 * 720) {
+  if (screen_area <= 640 * 360) {
+    return 115.0;
+  } else if (screen_area < 1280 * 720) {
     return 125.0;
   } else if (screen_area <= 1920 * 1080) {
     return 130.0;