| 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 RANGE_CHECK_HI(vp8_cfg, noise_sensitivity, 6); | 192 RANGE_CHECK_HI(vp8_cfg, noise_sensitivity, 6); |
| 193 #endif | 193 #endif |
| 194 | 194 |
| 195 RANGE_CHECK(vp8_cfg, token_partitions, VP8_ONE_TOKENPARTITION, | 195 RANGE_CHECK(vp8_cfg, token_partitions, VP8_ONE_TOKENPARTITION, |
| 196 VP8_EIGHT_TOKENPARTITION); | 196 VP8_EIGHT_TOKENPARTITION); |
| 197 RANGE_CHECK_HI(vp8_cfg, Sharpness, 7); | 197 RANGE_CHECK_HI(vp8_cfg, Sharpness, 7); |
| 198 RANGE_CHECK(vp8_cfg, arnr_max_frames, 0, 15); | 198 RANGE_CHECK(vp8_cfg, arnr_max_frames, 0, 15); |
| 199 RANGE_CHECK_HI(vp8_cfg, arnr_strength, 6); | 199 RANGE_CHECK_HI(vp8_cfg, arnr_strength, 6); |
| 200 RANGE_CHECK(vp8_cfg, arnr_type, 1, 3); | 200 RANGE_CHECK(vp8_cfg, arnr_type, 1, 3); |
| 201 RANGE_CHECK(vp8_cfg, cq_level, 0, 63); | 201 RANGE_CHECK(vp8_cfg, cq_level, 0, 63); |
| 202 RANGE_CHECK_BOOL(vp8_cfg, screen_content_mode); | 202 RANGE_CHECK_HI(vp8_cfg, screen_content_mode, 2); |
| 203 if (finalize && (cfg->rc_end_usage == VPX_CQ || cfg->rc_end_usage == VPX_Q)) | 203 if (finalize && (cfg->rc_end_usage == VPX_CQ || cfg->rc_end_usage == VPX_Q)) |
| 204 RANGE_CHECK(vp8_cfg, cq_level, | 204 RANGE_CHECK(vp8_cfg, cq_level, |
| 205 cfg->rc_min_quantizer, cfg->rc_max_quantizer); | 205 cfg->rc_min_quantizer, cfg->rc_max_quantizer); |
| 206 | 206 |
| 207 #if !(CONFIG_REALTIME_ONLY) | 207 #if !(CONFIG_REALTIME_ONLY) |
| 208 if (cfg->g_pass == VPX_RC_LAST_PASS) | 208 if (cfg->g_pass == VPX_RC_LAST_PASS) |
| 209 { | 209 { |
| 210 size_t packet_sz = sizeof(FIRSTPASS_STATS); | 210 size_t packet_sz = sizeof(FIRSTPASS_STATS); |
| 211 int n_packets = (int)(cfg->rc_twopass_stats_in.sz / | 211 int n_packets = (int)(cfg->rc_twopass_stats_in.sz / |
| 212 packet_sz); | 212 packet_sz); |
| (...skipping 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1388 1, /* 1 cfg map */ | 1388 1, /* 1 cfg map */ |
| 1389 vp8e_usage_cfg_map, /* vpx_codec_enc_cfg_map_t cfg_maps; */ | 1389 vp8e_usage_cfg_map, /* vpx_codec_enc_cfg_map_t cfg_maps; */ |
| 1390 vp8e_encode, /* vpx_codec_encode_fn_t encode; */ | 1390 vp8e_encode, /* vpx_codec_encode_fn_t encode; */ |
| 1391 vp8e_get_cxdata, /* vpx_codec_get_cx_data_fn_t get_cx_data; */ | 1391 vp8e_get_cxdata, /* vpx_codec_get_cx_data_fn_t get_cx_data; */ |
| 1392 vp8e_set_config, | 1392 vp8e_set_config, |
| 1393 NULL, | 1393 NULL, |
| 1394 vp8e_get_preview, | 1394 vp8e_get_preview, |
| 1395 vp8e_mr_alloc_mem, | 1395 vp8e_mr_alloc_mem, |
| 1396 } /* encoder functions */ | 1396 } /* encoder functions */ |
| 1397 }; | 1397 }; |
| OLD | NEW |