| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 1900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1911 } | 1911 } |
| 1912 } | 1912 } |
| 1913 #endif | 1913 #endif |
| 1914 | 1914 |
| 1915 cpi->mse_source_denoised = 0; | 1915 cpi->mse_source_denoised = 0; |
| 1916 | 1916 |
| 1917 /* Should we use the cyclic refresh method. | 1917 /* Should we use the cyclic refresh method. |
| 1918 * Currently this is tied to error resilliant mode | 1918 * Currently this is tied to error resilliant mode |
| 1919 */ | 1919 */ |
| 1920 cpi->cyclic_refresh_mode_enabled = cpi->oxcf.error_resilient_mode; | 1920 cpi->cyclic_refresh_mode_enabled = cpi->oxcf.error_resilient_mode; |
| 1921 cpi->cyclic_refresh_mode_max_mbs_perframe = (cpi->common.mb_rows * cpi->comm
on.mb_cols) / 5; | 1921 cpi->cyclic_refresh_mode_max_mbs_perframe = (cpi->common.mb_rows * cpi->comm
on.mb_cols) / 7; |
| 1922 if (cpi->oxcf.number_of_layers == 1) { | 1922 if (cpi->oxcf.number_of_layers == 1) { |
| 1923 cpi->cyclic_refresh_mode_max_mbs_perframe = | 1923 cpi->cyclic_refresh_mode_max_mbs_perframe = |
| 1924 (cpi->common.mb_rows * cpi->common.mb_cols) / 20; | 1924 (cpi->common.mb_rows * cpi->common.mb_cols) / 20; |
| 1925 } else if (cpi->oxcf.number_of_layers == 2) { | 1925 } else if (cpi->oxcf.number_of_layers == 2) { |
| 1926 cpi->cyclic_refresh_mode_max_mbs_perframe = | 1926 cpi->cyclic_refresh_mode_max_mbs_perframe = |
| 1927 (cpi->common.mb_rows * cpi->common.mb_cols) / 10; | 1927 (cpi->common.mb_rows * cpi->common.mb_cols) / 10; |
| 1928 } | 1928 } |
| 1929 cpi->cyclic_refresh_mode_index = 0; | 1929 cpi->cyclic_refresh_mode_index = 0; |
| 1930 cpi->cyclic_refresh_q = 32; | 1930 cpi->cyclic_refresh_q = 32; |
| 1931 | 1931 |
| (...skipping 4018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5950 } | 5950 } |
| 5951 | 5951 |
| 5952 return Total; | 5952 return Total; |
| 5953 } | 5953 } |
| 5954 | 5954 |
| 5955 | 5955 |
| 5956 int vp8_get_quantizer(VP8_COMP *cpi) | 5956 int vp8_get_quantizer(VP8_COMP *cpi) |
| 5957 { | 5957 { |
| 5958 return cpi->common.base_qindex; | 5958 return cpi->common.base_qindex; |
| 5959 } | 5959 } |
| OLD | NEW |