| 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 |
| 11 | 11 |
| 12 #include "./vpx_config.h" |
| 12 #include "vp8_rtcd.h" | 13 #include "vp8_rtcd.h" |
| 13 #include "vpx/vpx_codec.h" | 14 #include "vpx/vpx_codec.h" |
| 14 #include "vpx/internal/vpx_codec_internal.h" | 15 #include "vpx/internal/vpx_codec_internal.h" |
| 15 #include "vpx_version.h" | 16 #include "vpx_version.h" |
| 16 #include "vp8/encoder/onyx_int.h" | 17 #include "vp8/encoder/onyx_int.h" |
| 17 #include "vpx/vp8cx.h" | 18 #include "vpx/vp8cx.h" |
| 18 #include "vp8/encoder/firstpass.h" | 19 #include "vp8/encoder/firstpass.h" |
| 19 #include "vp8/common/onyx.h" | 20 #include "vp8/common/onyx.h" |
| 20 #include <stdlib.h> | 21 #include <stdlib.h> |
| 21 #include <string.h> | 22 #include <string.h> |
| (...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1283 0, /* rc_dropframe_thresh */ | 1284 0, /* rc_dropframe_thresh */ |
| 1284 0, /* rc_resize_allowed */ | 1285 0, /* rc_resize_allowed */ |
| 1285 1, /* rc_scaled_width */ | 1286 1, /* rc_scaled_width */ |
| 1286 1, /* rc_scaled_height */ | 1287 1, /* rc_scaled_height */ |
| 1287 60, /* rc_resize_down_thresold */ | 1288 60, /* rc_resize_down_thresold */ |
| 1288 30, /* rc_resize_up_thresold */ | 1289 30, /* rc_resize_up_thresold */ |
| 1289 | 1290 |
| 1290 VPX_VBR, /* rc_end_usage */ | 1291 VPX_VBR, /* rc_end_usage */ |
| 1291 #if VPX_ENCODER_ABI_VERSION > (1 + VPX_CODEC_ABI_VERSION) | 1292 #if VPX_ENCODER_ABI_VERSION > (1 + VPX_CODEC_ABI_VERSION) |
| 1292 {0}, /* rc_twopass_stats_in */ | 1293 {0}, /* rc_twopass_stats_in */ |
| 1294 {0}, /* rc_firstpass_mb_stats_in */ |
| 1293 #endif | 1295 #endif |
| 1294 256, /* rc_target_bandwidth */ | 1296 256, /* rc_target_bandwidth */ |
| 1295 4, /* rc_min_quantizer */ | 1297 4, /* rc_min_quantizer */ |
| 1296 63, /* rc_max_quantizer */ | 1298 63, /* rc_max_quantizer */ |
| 1297 100, /* rc_undershoot_pct */ | 1299 100, /* rc_undershoot_pct */ |
| 1298 100, /* rc_overshoot_pct */ | 1300 100, /* rc_overshoot_pct */ |
| 1299 | 1301 |
| 1300 6000, /* rc_max_buffer_size */ | 1302 6000, /* rc_max_buffer_size */ |
| 1301 4000, /* rc_buffer_initial_size; */ | 1303 4000, /* rc_buffer_initial_size; */ |
| 1302 5000, /* rc_buffer_optimal_size; */ | 1304 5000, /* rc_buffer_optimal_size; */ |
| 1303 | 1305 |
| 1304 50, /* rc_two_pass_vbrbias */ | 1306 50, /* rc_two_pass_vbrbias */ |
| 1305 0, /* rc_two_pass_vbrmin_section */ | 1307 0, /* rc_two_pass_vbrmin_section */ |
| 1306 400, /* rc_two_pass_vbrmax_section */ | 1308 400, /* rc_two_pass_vbrmax_section */ |
| 1307 | 1309 |
| 1308 /* keyframing settings (kf) */ | 1310 /* keyframing settings (kf) */ |
| 1309 VPX_KF_AUTO, /* g_kfmode*/ | 1311 VPX_KF_AUTO, /* g_kfmode*/ |
| 1310 0, /* kf_min_dist */ | 1312 0, /* kf_min_dist */ |
| 1311 128, /* kf_max_dist */ | 1313 128, /* kf_max_dist */ |
| 1312 | 1314 |
| 1313 #if VPX_ENCODER_ABI_VERSION == (1 + VPX_CODEC_ABI_VERSION) | 1315 #if VPX_ENCODER_ABI_VERSION == (1 + VPX_CODEC_ABI_VERSION) |
| 1314 "vp8.fpf" /* first pass filename */ | 1316 "vp8.fpf" /* first pass filename */ |
| 1315 #endif | 1317 #endif |
| 1316 VPX_SS_DEFAULT_LAYERS, /* ss_number_layers */ | 1318 VPX_SS_DEFAULT_LAYERS, /* ss_number_layers */ |
| 1319 #ifdef CONFIG_SPATIAL_SVC |
| 1320 {0}, |
| 1321 #endif |
| 1317 {0}, /* ss_target_bitrate */ | 1322 {0}, /* ss_target_bitrate */ |
| 1318 1, /* ts_number_layers */ | 1323 1, /* ts_number_layers */ |
| 1319 {0}, /* ts_target_bitrate */ | 1324 {0}, /* ts_target_bitrate */ |
| 1320 {0}, /* ts_rate_decimator */ | 1325 {0}, /* ts_rate_decimator */ |
| 1321 0, /* ts_periodicity */ | 1326 0, /* ts_periodicity */ |
| 1322 {0}, /* ts_layer_id */ | 1327 {0}, /* ts_layer_id */ |
| 1323 }}, | 1328 }}, |
| 1324 { -1, {NOT_IMPLEMENTED}} | 1329 { -1, {NOT_IMPLEMENTED}} |
| 1325 }; | 1330 }; |
| 1326 | 1331 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1349 { | 1354 { |
| 1350 vp8e_usage_cfg_map, /* vpx_codec_enc_cfg_map_t peek_si; */ | 1355 vp8e_usage_cfg_map, /* vpx_codec_enc_cfg_map_t peek_si; */ |
| 1351 vp8e_encode, /* vpx_codec_encode_fn_t encode; */ | 1356 vp8e_encode, /* vpx_codec_encode_fn_t encode; */ |
| 1352 vp8e_get_cxdata, /* vpx_codec_get_cx_data_fn_t frame_get; */ | 1357 vp8e_get_cxdata, /* vpx_codec_get_cx_data_fn_t frame_get; */ |
| 1353 vp8e_set_config, | 1358 vp8e_set_config, |
| 1354 NOT_IMPLEMENTED, | 1359 NOT_IMPLEMENTED, |
| 1355 vp8e_get_preview, | 1360 vp8e_get_preview, |
| 1356 vp8e_mr_alloc_mem, | 1361 vp8e_mr_alloc_mem, |
| 1357 } /* encoder functions */ | 1362 } /* encoder functions */ |
| 1358 }; | 1363 }; |
| OLD | NEW |