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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 | 346 |
347 oxcf->two_pass_vbrbias = cfg->rc_2pass_vbr_bias_pct; | 347 oxcf->two_pass_vbrbias = cfg->rc_2pass_vbr_bias_pct; |
348 oxcf->two_pass_vbrmin_section = cfg->rc_2pass_vbr_minsection_pct; | 348 oxcf->two_pass_vbrmin_section = cfg->rc_2pass_vbr_minsection_pct; |
349 oxcf->two_pass_vbrmax_section = cfg->rc_2pass_vbr_maxsection_pct; | 349 oxcf->two_pass_vbrmax_section = cfg->rc_2pass_vbr_maxsection_pct; |
350 | 350 |
351 oxcf->auto_key = cfg->kf_mode == VPX_KF_AUTO && | 351 oxcf->auto_key = cfg->kf_mode == VPX_KF_AUTO && |
352 cfg->kf_min_dist != cfg->kf_max_dist; | 352 cfg->kf_min_dist != cfg->kf_max_dist; |
353 | 353 |
354 oxcf->key_freq = cfg->kf_max_dist; | 354 oxcf->key_freq = cfg->kf_max_dist; |
355 | 355 |
356 oxcf->speed = clamp(abs(extra_cfg->cpu_used), 0, 7); | 356 oxcf->speed = abs(extra_cfg->cpu_used); |
357 oxcf->encode_breakout = extra_cfg->static_thresh; | 357 oxcf->encode_breakout = extra_cfg->static_thresh; |
358 oxcf->play_alternate = extra_cfg->enable_auto_alt_ref; | 358 oxcf->play_alternate = extra_cfg->enable_auto_alt_ref; |
359 oxcf->noise_sensitivity = extra_cfg->noise_sensitivity; | 359 oxcf->noise_sensitivity = extra_cfg->noise_sensitivity; |
360 oxcf->sharpness = extra_cfg->sharpness; | 360 oxcf->sharpness = extra_cfg->sharpness; |
361 | 361 |
362 oxcf->two_pass_stats_in = cfg->rc_twopass_stats_in; | 362 oxcf->two_pass_stats_in = cfg->rc_twopass_stats_in; |
363 oxcf->output_pkt_list = extra_cfg->pkt_list; | 363 oxcf->output_pkt_list = extra_cfg->pkt_list; |
364 | 364 |
365 oxcf->arnr_max_frames = extra_cfg->arnr_max_frames; | 365 oxcf->arnr_max_frames = extra_cfg->arnr_max_frames; |
366 oxcf->arnr_strength = extra_cfg->arnr_strength; | 366 oxcf->arnr_strength = extra_cfg->arnr_strength; |
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1281 { // NOLINT | 1281 { // NOLINT |
1282 encoder_usage_cfg_map, // vpx_codec_enc_cfg_map_t | 1282 encoder_usage_cfg_map, // vpx_codec_enc_cfg_map_t |
1283 encoder_encode, // vpx_codec_encode_fn_t | 1283 encoder_encode, // vpx_codec_encode_fn_t |
1284 encoder_get_cxdata, // vpx_codec_get_cx_data_fn_t | 1284 encoder_get_cxdata, // vpx_codec_get_cx_data_fn_t |
1285 encoder_set_config, // vpx_codec_enc_config_set_fn_t | 1285 encoder_set_config, // vpx_codec_enc_config_set_fn_t |
1286 NOT_IMPLEMENTED, // vpx_codec_get_global_headers_fn_t | 1286 NOT_IMPLEMENTED, // vpx_codec_get_global_headers_fn_t |
1287 encoder_get_preview, // vpx_codec_get_preview_frame_fn_t | 1287 encoder_get_preview, // vpx_codec_get_preview_frame_fn_t |
1288 NOT_IMPLEMENTED // vpx_codec_enc_mr_get_mem_loc_fn_t | 1288 NOT_IMPLEMENTED // vpx_codec_enc_mr_get_mem_loc_fn_t |
1289 } | 1289 } |
1290 }; | 1290 }; |
OLD | NEW |