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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 #endif | 230 #endif |
231 | 231 |
232 RANGE_CHECK(cfg, ts_number_layers, 1, 5); | 232 RANGE_CHECK(cfg, ts_number_layers, 1, 5); |
233 | 233 |
234 if (cfg->ts_number_layers > 1) | 234 if (cfg->ts_number_layers > 1) |
235 { | 235 { |
236 unsigned int i; | 236 unsigned int i; |
237 RANGE_CHECK_HI(cfg, ts_periodicity, 16); | 237 RANGE_CHECK_HI(cfg, ts_periodicity, 16); |
238 | 238 |
239 for (i=1; i<cfg->ts_number_layers; i++) | 239 for (i=1; i<cfg->ts_number_layers; i++) |
240 if (cfg->ts_target_bitrate[i] <= cfg->ts_target_bitrate[i-1] && | 240 if (cfg->ts_target_bitrate[i] <= cfg->ts_target_bitrate[i-1] && |
241 cfg->rc_target_bitrate > 0) | 241 cfg->rc_target_bitrate > 0) |
242 ERROR("ts_target_bitrate entries are not strictly increasing"); | 242 ERROR("ts_target_bitrate entries are not strictly increasing"); |
243 | 243 |
244 RANGE_CHECK(cfg, ts_rate_decimator[cfg->ts_number_layers-1], 1, 1); | 244 RANGE_CHECK(cfg, ts_rate_decimator[cfg->ts_number_layers-1], 1, 1); |
245 for (i=cfg->ts_number_layers-2; i>0; i--) | 245 for (i=cfg->ts_number_layers-2; i>0; i--) |
246 if (cfg->ts_rate_decimator[i-1] != 2*cfg->ts_rate_decimator[i]) | 246 if (cfg->ts_rate_decimator[i-1] != 2*cfg->ts_rate_decimator[i]) |
247 ERROR("ts_rate_decimator factors are not powers of 2"); | 247 ERROR("ts_rate_decimator factors are not powers of 2"); |
248 | 248 |
249 RANGE_CHECK_HI(cfg, ts_layer_id[i], cfg->ts_number_layers-1); | 249 RANGE_CHECK_HI(cfg, ts_layer_id[i], cfg->ts_number_layers-1); |
250 } | 250 } |
(...skipping 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1387 1, /* 1 cfg map */ | 1387 1, /* 1 cfg map */ |
1388 vp8e_usage_cfg_map, /* vpx_codec_enc_cfg_map_t cfg_maps; */ | 1388 vp8e_usage_cfg_map, /* vpx_codec_enc_cfg_map_t cfg_maps; */ |
1389 vp8e_encode, /* vpx_codec_encode_fn_t encode; */ | 1389 vp8e_encode, /* vpx_codec_encode_fn_t encode; */ |
1390 vp8e_get_cxdata, /* vpx_codec_get_cx_data_fn_t get_cx_data; */ | 1390 vp8e_get_cxdata, /* vpx_codec_get_cx_data_fn_t get_cx_data; */ |
1391 vp8e_set_config, | 1391 vp8e_set_config, |
1392 NULL, | 1392 NULL, |
1393 vp8e_get_preview, | 1393 vp8e_get_preview, |
1394 vp8e_mr_alloc_mem, | 1394 vp8e_mr_alloc_mem, |
1395 } /* encoder functions */ | 1395 } /* encoder functions */ |
1396 }; | 1396 }; |
OLD | NEW |