shithub: libvpx

Download patch

ref: 4d33a01ca37a4753fec9ce046561ea91068ee808
parent: bc636088009cf73be433cc073542e8d08958e7af
parent: 64db43d6a78b60dcd3529ce3372f79c89efe9cc3
author: Marco Paniconi <marpan@google.com>
date: Fri Jul 25 04:42:41 EDT 2014

Merge "vp8: reduce refresh_max_mbs_perframe with fewer layers."

--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -1879,6 +1879,13 @@
      */
     cpi->cyclic_refresh_mode_enabled = cpi->oxcf.error_resilient_mode;
     cpi->cyclic_refresh_mode_max_mbs_perframe = (cpi->common.mb_rows * cpi->common.mb_cols) / 5;
+    if (cpi->oxcf.number_of_layers == 1) {
+        cpi->cyclic_refresh_mode_max_mbs_perframe =
+            (cpi->common.mb_rows * cpi->common.mb_cols) / 20;
+    } else if (cpi->oxcf.number_of_layers == 2) {
+        cpi->cyclic_refresh_mode_max_mbs_perframe =
+            (cpi->common.mb_rows * cpi->common.mb_cols) / 10;
+    }
     cpi->cyclic_refresh_mode_index = 0;
     cpi->cyclic_refresh_q = 32;