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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 sf->intra_y_mode_mask[TX_16X16] = INTRA_DC_H_V; | 81 sf->intra_y_mode_mask[TX_16X16] = INTRA_DC_H_V; |
82 sf->intra_uv_mode_mask[TX_16X16] = INTRA_DC_H_V; | 82 sf->intra_uv_mode_mask[TX_16X16] = INTRA_DC_H_V; |
83 } | 83 } |
84 | 84 |
85 if (speed >= 2) { | 85 if (speed >= 2) { |
86 if (MIN(cm->width, cm->height) >= 720) { | 86 if (MIN(cm->width, cm->height) >= 720) { |
87 sf->lf_motion_threshold = LOW_MOTION_THRESHOLD; | 87 sf->lf_motion_threshold = LOW_MOTION_THRESHOLD; |
88 sf->last_partitioning_redo_frequency = 3; | 88 sf->last_partitioning_redo_frequency = 3; |
89 sf->disable_split_mask = cm->show_frame ? DISABLE_ALL_SPLIT | 89 sf->disable_split_mask = cm->show_frame ? DISABLE_ALL_SPLIT |
90 : DISABLE_ALL_INTER_SPLIT; | 90 : DISABLE_ALL_INTER_SPLIT; |
| 91 sf->adaptive_pred_interp_filter = 0; |
91 } else { | 92 } else { |
92 sf->disable_split_mask = LAST_AND_INTRA_SPLIT_ONLY; | 93 sf->disable_split_mask = LAST_AND_INTRA_SPLIT_ONLY; |
93 sf->last_partitioning_redo_frequency = 2; | 94 sf->last_partitioning_redo_frequency = 2; |
94 sf->lf_motion_threshold = NO_MOTION_THRESHOLD; | 95 sf->lf_motion_threshold = NO_MOTION_THRESHOLD; |
95 } | 96 } |
96 | 97 |
97 sf->adaptive_pred_interp_filter = 0; | |
98 sf->reference_masking = 1; | 98 sf->reference_masking = 1; |
99 sf->mode_search_skip_flags = FLAG_SKIP_INTRA_DIRMISMATCH | | 99 sf->mode_search_skip_flags = FLAG_SKIP_INTRA_DIRMISMATCH | |
100 FLAG_SKIP_INTRA_BESTINTER | | 100 FLAG_SKIP_INTRA_BESTINTER | |
101 FLAG_SKIP_COMP_BESTINTRA | | 101 FLAG_SKIP_COMP_BESTINTRA | |
102 FLAG_SKIP_INTRA_LOWVAR; | 102 FLAG_SKIP_INTRA_LOWVAR; |
103 sf->disable_filter_search_var_thresh = 100; | 103 sf->disable_filter_search_var_thresh = 100; |
104 sf->comp_inter_joint_search_thresh = BLOCK_SIZES; | 104 sf->comp_inter_joint_search_thresh = BLOCK_SIZES; |
105 sf->auto_min_max_partition_size = RELAXED_NEIGHBORING_MIN_MAX; | 105 sf->auto_min_max_partition_size = RELAXED_NEIGHBORING_MIN_MAX; |
106 sf->use_lastframe_partitioning = LAST_FRAME_PARTITION_LOW_MOTION; | 106 sf->use_lastframe_partitioning = LAST_FRAME_PARTITION_LOW_MOTION; |
107 sf->adjust_partitioning_from_last_frame = 1; | 107 sf->adjust_partitioning_from_last_frame = 1; |
108 } | 108 } |
109 | 109 |
110 if (speed >= 3) { | 110 if (speed >= 3) { |
111 sf->tx_size_search_method = frame_is_intra_only(cm) ? USE_FULL_RD | 111 sf->tx_size_search_method = frame_is_intra_only(cm) ? USE_FULL_RD |
112 : USE_LARGESTALL; | 112 : USE_LARGESTALL; |
113 if (MIN(cm->width, cm->height) >= 720) | 113 if (MIN(cm->width, cm->height) >= 720) |
114 sf->disable_split_mask = DISABLE_ALL_SPLIT; | 114 sf->disable_split_mask = DISABLE_ALL_SPLIT; |
115 else | 115 else |
116 sf->disable_split_mask = DISABLE_ALL_INTER_SPLIT; | 116 sf->disable_split_mask = DISABLE_ALL_INTER_SPLIT; |
117 | 117 |
| 118 sf->adaptive_pred_interp_filter = 0; |
| 119 sf->cb_pred_filter_search = 1; |
| 120 |
118 sf->lf_motion_threshold = LOW_MOTION_THRESHOLD; | 121 sf->lf_motion_threshold = LOW_MOTION_THRESHOLD; |
119 sf->last_partitioning_redo_frequency = 3; | 122 sf->last_partitioning_redo_frequency = 3; |
120 sf->recode_loop = ALLOW_RECODE_KFMAXBW; | 123 sf->recode_loop = ALLOW_RECODE_KFMAXBW; |
121 sf->adaptive_rd_thresh = 3; | 124 sf->adaptive_rd_thresh = 3; |
122 sf->mode_skip_start = 6; | 125 sf->mode_skip_start = 6; |
123 sf->use_fast_coef_updates = ONE_LOOP_REDUCED; | 126 sf->use_fast_coef_updates = ONE_LOOP_REDUCED; |
124 sf->use_fast_coef_costing = 1; | 127 sf->use_fast_coef_costing = 1; |
125 } | 128 } |
126 | 129 |
127 if (speed >= 4) { | 130 if (speed >= 4) { |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 sf->mv.reduce_first_step_size = 0; | 326 sf->mv.reduce_first_step_size = 0; |
324 sf->mv.auto_mv_step_size = 0; | 327 sf->mv.auto_mv_step_size = 0; |
325 sf->mv.fullpel_search_step_param = 6; | 328 sf->mv.fullpel_search_step_param = 6; |
326 sf->comp_inter_joint_search_thresh = BLOCK_4X4; | 329 sf->comp_inter_joint_search_thresh = BLOCK_4X4; |
327 sf->adaptive_rd_thresh = 0; | 330 sf->adaptive_rd_thresh = 0; |
328 sf->use_lastframe_partitioning = LAST_FRAME_PARTITION_OFF; | 331 sf->use_lastframe_partitioning = LAST_FRAME_PARTITION_OFF; |
329 sf->tx_size_search_method = USE_FULL_RD; | 332 sf->tx_size_search_method = USE_FULL_RD; |
330 sf->use_lp32x32fdct = 0; | 333 sf->use_lp32x32fdct = 0; |
331 sf->adaptive_motion_search = 0; | 334 sf->adaptive_motion_search = 0; |
332 sf->adaptive_pred_interp_filter = 0; | 335 sf->adaptive_pred_interp_filter = 0; |
| 336 sf->cb_pred_filter_search = 0; |
333 sf->use_quant_fp = 0; | 337 sf->use_quant_fp = 0; |
334 sf->reference_masking = 0; | 338 sf->reference_masking = 0; |
335 sf->partition_search_type = SEARCH_PARTITION; | 339 sf->partition_search_type = SEARCH_PARTITION; |
336 sf->less_rectangular_check = 0; | 340 sf->less_rectangular_check = 0; |
337 sf->use_square_partition_only = 0; | 341 sf->use_square_partition_only = 0; |
338 sf->auto_min_max_partition_size = NOT_IN_USE; | 342 sf->auto_min_max_partition_size = NOT_IN_USE; |
339 sf->max_partition_size = BLOCK_64X64; | 343 sf->max_partition_size = BLOCK_64X64; |
340 sf->min_partition_size = BLOCK_4X4; | 344 sf->min_partition_size = BLOCK_4X4; |
341 sf->adjust_partitioning_from_last_frame = 0; | 345 sf->adjust_partitioning_from_last_frame = 0; |
342 sf->last_partitioning_redo_frequency = 4; | 346 sf->last_partitioning_redo_frequency = 4; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 sf->adaptive_pred_interp_filter = 0; | 414 sf->adaptive_pred_interp_filter = 0; |
411 | 415 |
412 if (!cpi->oxcf.frame_periodic_boost) { | 416 if (!cpi->oxcf.frame_periodic_boost) { |
413 sf->max_delta_qindex = 0; | 417 sf->max_delta_qindex = 0; |
414 } | 418 } |
415 | 419 |
416 if (cpi->encode_breakout && oxcf->mode == REALTIME && | 420 if (cpi->encode_breakout && oxcf->mode == REALTIME && |
417 sf->encode_breakout_thresh > cpi->encode_breakout) | 421 sf->encode_breakout_thresh > cpi->encode_breakout) |
418 cpi->encode_breakout = sf->encode_breakout_thresh; | 422 cpi->encode_breakout = sf->encode_breakout_thresh; |
419 } | 423 } |
OLD | NEW |