| 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 } | 253 } |
| 254 | 254 |
| 255 if (speed >= 2) { | 255 if (speed >= 2) { |
| 256 sf->mode_search_skip_flags = (cm->frame_type == KEY_FRAME) ? 0 : | 256 sf->mode_search_skip_flags = (cm->frame_type == KEY_FRAME) ? 0 : |
| 257 FLAG_SKIP_INTRA_DIRMISMATCH | | 257 FLAG_SKIP_INTRA_DIRMISMATCH | |
| 258 FLAG_SKIP_INTRA_BESTINTER | | 258 FLAG_SKIP_INTRA_BESTINTER | |
| 259 FLAG_SKIP_COMP_BESTINTRA | | 259 FLAG_SKIP_COMP_BESTINTRA | |
| 260 FLAG_SKIP_INTRA_LOWVAR; | 260 FLAG_SKIP_INTRA_LOWVAR; |
| 261 sf->adaptive_pred_interp_filter = 2; | 261 sf->adaptive_pred_interp_filter = 2; |
| 262 | 262 |
| 263 // Reference masking is not supported in dynamic scaling mode. | 263 // Disable reference masking if using spatial scaling since |
| 264 sf->reference_masking = cpi->oxcf.resize_mode != RESIZE_DYNAMIC ? 1 : 0; | 264 // pred_mv_sad will not be set (since vp9_mv_pred will not |
| 265 // be called). |
| 266 // TODO(marpan/agrange): Fix this condition. |
| 267 sf->reference_masking = (cpi->oxcf.resize_mode != RESIZE_DYNAMIC && |
| 268 cpi->svc.number_spatial_layers == 1) ? 1 : 0; |
| 265 | 269 |
| 266 sf->disable_filter_search_var_thresh = 50; | 270 sf->disable_filter_search_var_thresh = 50; |
| 267 sf->comp_inter_joint_search_thresh = BLOCK_SIZES; | 271 sf->comp_inter_joint_search_thresh = BLOCK_SIZES; |
| 268 sf->auto_min_max_partition_size = RELAXED_NEIGHBORING_MIN_MAX; | 272 sf->auto_min_max_partition_size = RELAXED_NEIGHBORING_MIN_MAX; |
| 269 sf->lf_motion_threshold = LOW_MOTION_THRESHOLD; | 273 sf->lf_motion_threshold = LOW_MOTION_THRESHOLD; |
| 270 sf->adjust_partitioning_from_last_frame = 1; | 274 sf->adjust_partitioning_from_last_frame = 1; |
| 271 sf->last_partitioning_redo_frequency = 3; | 275 sf->last_partitioning_redo_frequency = 3; |
| 272 sf->use_lp32x32fdct = 1; | 276 sf->use_lp32x32fdct = 1; |
| 273 sf->mode_skip_start = 11; | 277 sf->mode_skip_start = 11; |
| 274 sf->intra_y_mode_mask[TX_16X16] = INTRA_DC_H_V; | 278 sf->intra_y_mode_mask[TX_16X16] = INTRA_DC_H_V; |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 | 522 |
| 519 x->optimize = sf->optimize_coefficients == 1 && oxcf->pass != 1; | 523 x->optimize = sf->optimize_coefficients == 1 && oxcf->pass != 1; |
| 520 | 524 |
| 521 x->min_partition_size = sf->default_min_partition_size; | 525 x->min_partition_size = sf->default_min_partition_size; |
| 522 x->max_partition_size = sf->default_max_partition_size; | 526 x->max_partition_size = sf->default_max_partition_size; |
| 523 | 527 |
| 524 if (!cpi->oxcf.frame_periodic_boost) { | 528 if (!cpi->oxcf.frame_periodic_boost) { |
| 525 sf->max_delta_qindex = 0; | 529 sf->max_delta_qindex = 0; |
| 526 } | 530 } |
| 527 } | 531 } |
| OLD | NEW |