Merge "vp8: reduce refresh_max_mbs_perframe with fewer layers."
This commit is contained in:
commit
4d33a01ca3
@ -1879,6 +1879,13 @@ struct VP8_COMP* vp8_create_compressor(VP8_CONFIG *oxcf)
|
||||
*/
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user