shithub: libvpx

Download patch

ref: 64db43d6a78b60dcd3529ce3372f79c89efe9cc3
parent: 0cf0b02c4c9dd7dc1338a7514a1e47588d74e704
author: Marco Paniconi <marpan@google.com>
date: Thu Jul 24 11:44:29 EDT 2014

vp8: reduce refresh_max_mbs_perframe with fewer layers.

Change-Id: Ib39cc0218a1f232c0cde8e99ca3319c17274bd48

--- 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;
 
--