Home | History | Annotate | Download | only in encoder

Lines Matching refs:sf

61                                                        SPEED_FEATURES *sf,
66 sf->partition_search_breakout_thr.dist = (1 << 20);
67 sf->partition_search_breakout_thr.rate = 80;
72 sf->ml_partition_search_early_termination = 1;
76 sf->ml_partition_search_early_termination = 0;
79 sf->disable_split_mask =
81 sf->partition_search_breakout_thr.dist = (1 << 23);
83 sf->disable_split_mask = DISABLE_COMPOUND_SPLIT;
84 sf->partition_search_breakout_thr.dist = (1 << 21);
90 sf->disable_split_mask =
92 sf->adaptive_pred_interp_filter = 0;
93 sf->partition_search_breakout_thr.dist = (1 << 24);
94 sf->partition_search_breakout_thr.rate = 120;
96 sf->disable_split_mask = LAST_AND_INTRA_SPLIT_ONLY;
97 sf->partition_search_breakout_thr.dist = (1 << 22);
98 sf->partition_search_breakout_thr.rate = 100;
100 sf->rd_auto_partition_min_limit = set_partition_min_limit(cm);
104 sf->use_square_partition_only = 1;
105 sf->intra_y_mode_mask[TX_32X32] = INTRA_DC;
106 sf->intra_uv_mode_mask[TX_32X32] = INTRA_DC;
107 sf->alt_ref_search_fp = 1;
108 sf->cb_pred_filter_search = 1;
109 sf->adaptive_interp_filter_search = 1;
110 sf->disable_split_mask = DISABLE_ALL_SPLIT;
116 sf->disable_split_mask = DISABLE_ALL_SPLIT;
117 sf->schedule_mode_search = cm->base_qindex < 220 ? 1 : 0;
118 sf->partition_search_breakout_thr.dist = (1 << 25);
119 sf->partition_search_breakout_thr.rate = 200;
121 sf->max_intra_bsize = BLOCK_32X32;
122 sf->disable_split_mask = DISABLE_ALL_INTER_SPLIT;
123 sf->schedule_mode_search = cm->base_qindex < 175 ? 1 : 0;
124 sf->partition_search_breakout_thr.dist = (1 << 23);
125 sf->partition_search_breakout_thr.rate = 120;
135 sf->disable_split_mask = DISABLE_COMPOUND_SPLIT;
139 sf->partition_search_breakout_thr.rate = 300;
141 sf->partition_search_breakout_thr.dist = (1 << 26);
143 sf->partition_search_breakout_thr.dist = (1 << 24);
145 sf->disable_split_mask = DISABLE_ALL_SPLIT;
149 sf->partition_search_breakout_thr.rate = 500;
158 SPEED_FEATURES *sf,
163 sf->tx_size_search_breakout = 1;
164 sf->adaptive_rd_thresh = 1;
165 sf->adaptive_rd_thresh_row_mt = 0;
166 sf->allow_skip_recode = 1;
167 sf->less_rectangular_check = 1;
168 sf->use_square_partition_only = !frame_is_boosted(cpi);
169 sf->use_square_only_threshold = BLOCK_16X16;
172 sf->exhaustive_searches_thresh = (1 << 22);
175 sf->mesh_patterns[i].range =
177 sf->mesh_patterns[i].interval =
181 sf->exhaustive_searches_thresh = INT_MAX;
189 sf->use_square_partition_only = !frame_is_boosted(cpi);
191 sf->use_square_partition_only = !frame_is_intra_only(cm);
194 sf->use_square_partition_only = !frame_is_intra_only(cm);
197 sf->allow_txfm_domain_distortion = 1;
198 sf->tx_domain_thresh = tx_dom_thresholds[(speed < 6) ? speed : 5];
199 sf->allow_quant_coeff_opt = sf->optimize_coefficients;
200 sf->quant_opt_thresh = qopt_thresholds[(speed < 6) ? speed : 5];
202 sf->use_square_only_threshold = BLOCK_4X4;
203 sf->less_rectangular_check = 1;
205 sf->use_rd_breakout = 1;
206 sf->adaptive_motion_search = 1;
207 sf->mv.auto_mv_step_size = 1;
208 sf->adaptive_rd_thresh = 2;
209 sf->mv.subpel_iters_per_step = 1;
210 sf->mode_skip_start = 10;
211 sf->adaptive_pred_interp_filter = 1;
212 sf->allow_acl = 0;
214 sf->intra_y_mode_mask[TX_32X32] = INTRA_DC_H_V;
215 sf->intra_uv_mode_mask[TX_32X32] = INTRA_DC_H_V;
216 sf->intra_y_mode_mask[TX_16X16] = INTRA_DC_H_V;
217 sf->intra_uv_mode_mask[TX_16X16] = INTRA_DC_H_V;
219 sf->recode_tolerance_low = 15;
220 sf->recode_tolerance_high = 30;
222 sf->exhaustive_searches_thresh =
228 sf->recode_loop = ALLOW_RECODE_KFARFGF;
229 sf->tx_size_search_method =
233 sf->reference_masking = cpi->oxcf.resize_mode != RESIZE_DYNAMIC ? 1 : 0;
235 sf->mode_search_skip_flags =
240 sf->disable_filter_search_var_thresh = 100;
241 sf->comp_inter_joint_search_thresh = BLOCK_SIZES;
242 sf->auto_min_max_partition_size = RELAXED_NEIGHBORING_MIN_MAX;
243 sf->allow_partition_search_skip = 1;
244 sf->recode_tolerance_low = 15;
245 sf->recode_tolerance_high = 45;
250 sf->mesh_patterns[i].range =
252 sf->mesh_patterns[i].interval =
259 sf->use_square_partition_only = !frame_is_intra_only(cm);
260 sf->tx_size_search_method =
262 sf->mv.subpel_search_method = SUBPEL_TREE_PRUNED;
263 sf->adaptive_pred_interp_filter = 0;
264 sf->adaptive_mode_search = 1;
265 sf->cb_partition_search = !boosted;
266 sf->cb_pred_filter_search = 1;
267 sf->alt_ref_search_fp = 1;
268 sf->recode_loop = ALLOW_RECODE_KFMAXBW;
269 sf->adaptive_rd_thresh = 3;
270 sf->mode_skip_start = 6;
271 sf->intra_y_mode_mask[TX_32X32] = INTRA_DC;
272 sf->intra_uv_mode_mask[TX_32X32] = INTRA_DC;
273 sf->adaptive_interp_filter_search = 1;
278 sf->mesh_patterns[i].range =
280 sf->mesh_patterns[i].interval =
287 sf->use_square_partition_only = 1;
288 sf->tx_size_search_method = USE_LARGESTALL;
289 sf->mv.search_method = BIGDIA;
290 sf->mv.subpel_search_method = SUBPEL_TREE_PRUNED_MORE;
291 sf->adaptive_rd_thresh = 4;
293 sf->mode_search_skip_flags |= FLAG_EARLY_TERMINATE;
294 sf->disable_filter_search_var_thresh = 200;
295 sf->use_lp32x32fdct = 1;
296 sf->use_fast_coef_updates = ONE_LOOP_REDUCED;
297 sf->use_fast_coef_costing = 1;
298 sf->motion_field_mode_search = !boosted;
303 sf->optimize_coefficients = 0;
304 sf->mv.search_method = HEX;
305 sf->disable_filter_search_var_thresh = 500;
307 sf->intra_y_mode_mask[i] = INTRA_DC;
308 sf->intra_uv_mode_mask[i] = INTRA_DC;
310 sf->mv.reduce_first_step_size = 1;
311 sf->simple_model_rd_from_var = 1;
316 SPEED_FEATURES *sf,
322 sf->disable_split_mask =
325 sf->disable_split_mask = DISABLE_COMPOUND_SPLIT;
331 sf->disable_split_mask =
334 sf->disable_split_mask = LAST_AND_INTRA_SPLIT_ONLY;
339 sf->partition_search_breakout_thr.rate = 200;
341 sf->partition_search_breakout_thr.dist = (1 << 25);
343 sf->partition_search_breakout_thr.dist = (1 << 23);
348 sf->encode_breakout_thresh =
354 VP9_COMP *cpi, SPEED_FEATURES *sf, int speed, vp9e_tune_content content) {
358 sf->static_segmentation = 0;
359 sf->adaptive_rd_thresh = 1;
360 sf->adaptive_rd_thresh_row_mt = 0;
361 sf->use_fast_coef_costing = 1;
362 sf->exhaustive_searches_thresh = INT_MAX;
363 sf->allow_acl = 0;
364 sf->copy_partition_flag = 0;
365 sf->use_source_sad = 0;
366 sf->use_simple_block_yrd = 0;
369 sf->allow_txfm_domain_distortion = 1;
370 sf->tx_domain_thresh = 0.0;
371 sf->allow_quant_coeff_opt = 0;
372 sf->quant_opt_thresh = 0.0;
373 sf->use_square_partition_only = !frame_is_intra_only(cm);
374 sf->less_rectangular_check = 1;
375 sf->tx_size_search_method =
378 sf->use_rd_breakout = 1;
380 sf->adaptive_motion_search = 1;
381 sf->adaptive_pred_interp_filter = 1;
382 sf->mv.auto_mv_step_size = 1;
383 sf->adaptive_rd_thresh = 2;
384 sf->intra_y_mode_mask[TX_32X32] = INTRA_DC_H_V;
385 sf->intra_uv_mode_mask[TX_32X32] = INTRA_DC_H_V;
386 sf->intra_uv_mode_mask[TX_16X16] = INTRA_DC_H_V;
390 sf->mode_search_skip_flags =
395 sf->adaptive_pred_interp_filter = 2;
400 sf->reference_masking = (cpi->svc.number_spatial_layers == 1);
401 if (sf->reference_masking == 1 &&
411 &cm->frame_refs[ref_frame - 1].sf;
412 if (vp9_is_scaled(scale_fac)) sf->reference_masking = 0;
417 sf->disable_filter_search_var_thresh = 50;
418 sf->comp_inter_joint_search_thresh = BLOCK_SIZES;
419 sf->auto_min_max_partition_size = RELAXED_NEIGHBORING_MIN_MAX;
420 sf->lf_motion_threshold = LOW_MOTION_THRESHOLD;
421 sf->adjust_partitioning_from_last_frame = 1;
422 sf->last_partitioning_redo_frequency = 3;
423 sf->use_lp32x32fdct = 1;
424 sf->mode_skip_start = 11;
425 sf->intra_y_mode_mask[TX_16X16] = INTRA_DC_H_V;
429 sf->use_square_partition_only = 1;
430 sf->disable_filter_search_var_thresh = 100;
431 sf->use_uv_intra_rd_estimate = 1;
432 sf->skip_encode_sb = 1;
433 sf->mv.subpel_iters_per_step = 1;
434 sf->adaptive_rd_thresh = 4;
435 sf->mode_skip_start = 6;
436 sf->allow_skip_recode = 0;
437 sf->optimize_coefficients = 0;
438 sf->disable_split_mask = DISABLE_ALL_SPLIT;
439 sf->lpf_pick = LPF_PICK_FROM_Q;
444 sf->last_partitioning_redo_frequency = 4;
445 sf->adaptive_rd_thresh = 5;
446 sf->use_fast_coef_costing = 0;
447 sf->auto_min_max_partition_size = STRICT_NEIGHBORING_MIN_MAX;
448 sf->adjust_partitioning_from_last_frame =
450 (0 == (frames_since_key + 1) % sf->last_partitioning_redo_frequency);
451 sf->mv.subpel_force_stop = 1;
453 sf->intra_y_mode_mask[i] = INTRA_DC_H_V;
454 sf->intra_uv_mode_mask[i] = INTRA_DC;
456 sf->intra_y_mode_mask[TX_32X32] = INTRA_DC;
457 sf->frame_parameter_update = 0;
458 sf->mv.search_method = FAST_HEX;
460 sf->inter_mode_mask[BLOCK_32X32] = INTER_NEAREST_NEAR_NEW;
461 sf->inter_mode_mask[BLOCK_32X64] = INTER_NEAREST;
462 sf->inter_mode_mask[BLOCK_64X32] = INTER_NEAREST;
463 sf->inter_mode_mask[BLOCK_64X64] = INTER_NEAREST;
464 sf->max_intra_bsize = BLOCK_32X32;
465 sf->allow_skip_recode = 1;
469 sf->use_quant_fp = !is_keyframe;
470 sf->auto_min_max_partition_size =
472 sf->default_max_partition_size = BLOCK_32X32;
473 sf->default_min_partition_size = BLOCK_8X8;
474 sf->force_frame_boost =
476 (frames_since_key % (sf->last_partitioning_redo_frequency << 1) == 1);
477 sf->max_delta_qindex = is_keyframe ? 20 : 15;
478 sf->partition_search_type = REFERENCE_PARTITION;
481 sf->partition_search_type = VAR_BASED_PARTITION;
483 sf->use_nonrd_pick_mode = 1;
484 sf->allow_skip_recode = 0;
485 sf->inter_mode_mask[BLOCK_32X32] = INTER_NEAREST_NEW_ZERO;
486 sf->inter_mode_mask[BLOCK_32X64] = INTER_NEAREST_NEW_ZERO;
487 sf->inter_mode_mask[BLOCK_64X32] = INTER_NEAREST_NEW_ZERO;
488 sf->inter_mode_mask[BLOCK_64X64] = INTER_NEAREST_NEW_ZERO;
489 sf->adaptive_rd_thresh = 2;
491 sf->reuse_inter_pred_sby = 1;
492 sf->coeff_prob_appx_step = 4;
493 sf->use_fast_coef_updates = is_keyframe ? TWO_LOOP : ONE_LOOP_REDUCED;
494 sf->mode_search_skip_flags = FLAG_SKIP_INTRA_DIRMISMATCH;
495 sf->tx_size_search_method = is_keyframe ? USE_LARGESTALL : USE_TX_8X8;
496 sf->simple_model_rd_from_var = 1;
497 if (cpi->oxcf.rc_mode == VPX_VBR) sf->mv.search_method = NSTEP;
503 sf->intra_y_mode_bsize_mask[i] = INTRA_DC_TM_H_V;
507 sf->intra_y_mode_bsize_mask[i] = INTRA_DC;
510 sf->intra_y_mode_bsize_mask[i] = INTRA_DC_H_V;
514 sf->short_circuit_flat_blocks = 1;
518 sf->limit_newmv_early_exit = 1;
519 if (!cpi->use_svc) sf->bias_golden = 1;
524 sf->partition_search_type = VAR_BASED_PARTITION;
526 sf->use_nonrd_pick_mode = 1;
527 sf->mv.search_method = NSTEP;
528 sf->mv.reduce_first_step_size = 1;
529 sf->skip_encode_sb = 0;
532 sf->short_circuit_low_temp_var = 1;
535 sf->adaptive_rd_thresh = 4;
536 sf->limit_newmv_early_exit = 0;
537 sf->mv.subpel_force_stop = (cpi->svc.temporal_layer_id == 1) ? 1 : 2;
538 sf->base_mv_aggressive =
546 sf->adaptive_rd_thresh = 3;
547 sf->mv.search_method = FAST_DIAMOND;
548 sf->mv.fullpel_search_step_param = 10;
551 sf->mv.search_method = NSTEP;
552 sf->mv.fullpel_search_step_param = 6;
554 if (!cpi->external_resize) sf->use_source_sad = 1;
555 if (sf->use_source_sad) {
566 sf->adaptive_rd_thresh = 4;
572 sf->copy_partition_flag = 1;
577 sf->adaptive_rd_thresh_row_mt = 1;
580 sf->mv.subpel_force_stop = 3;
582 sf->mv.subpel_force_stop = 2;
584 if (content == VP9E_CONTENT_SCREEN) sf->lpf_pick = LPF_PICK_MINIMAL_LPF;
589 sf->intra_y_mode_bsize_mask[i] = INTRA_DC;
594 sf->short_circuit_low_temp_var = 3;
601 if (noise_level >= kMedium) sf->short_circuit_low_temp_var = 2;
606 sf->adaptive_rd_thresh = 1;
608 sf->adaptive_rd_thresh = 2;
610 sf->limit_newmv_early_exit = 0;
611 sf->use_simple_block_yrd = 1;
616 SPEED_FEATURES *const sf = &cpi->sf;
623 sf->partition_search_breakout_thr.dist = (1 << 19);
624 sf->partition_search_breakout_thr.rate = 80;
625 sf->ml_partition_search_early_termination = 0;
628 set_rt_speed_feature_framesize_dependent(cpi, sf, oxcf->speed);
630 set_good_speed_feature_framesize_dependent(cpi, sf, oxcf->speed);
633 if (sf->disable_split_mask == DISABLE_ALL_SPLIT) {
634 sf->adaptive_pred_interp_filter = 0;
638 sf->encode_breakout_thresh > cpi->encode_breakout) {
639 cpi->encode_breakout = sf->encode_breakout_thresh;
644 if (sf->disable_split_mask & (1 << i)) {
654 if (!sf->adaptive_rd_thresh_row_mt && cpi->row_mt_bit_exact)
655 sf->adaptive_rd_thresh = 0;
665 SPEED_FEATURES *const sf = &cpi->sf;
672 sf->frame_parameter_update = 1;
673 sf->mv.search_method = NSTEP;
674 sf->recode_loop = ALLOW_RECODE_FIRST;
675 sf->mv.subpel_search_method = SUBPEL_TREE;
676 sf->mv.subpel_iters_per_step = 2;
677 sf->mv.subpel_force_stop = 0;
678 sf->optimize_coefficients = !is_lossless_requested(&cpi->oxcf);
679 sf->mv.reduce_first_step_size = 0;
680 sf->coeff_prob_appx_step = 1;
681 sf->mv.auto_mv_step_size = 0;
682 sf->mv.fullpel_search_step_param = 6;
683 sf->comp_inter_joint_search_thresh = BLOCK_4X4;
684 sf->tx_size_search_method = USE_FULL_RD;
685 sf->use_lp32x32fdct = 0;
686 sf->adaptive_motion_search = 0;
687 sf->adaptive_pred_interp_filter = 0;
688 sf->adaptive_mode_search = 0;
689 sf->cb_pred_filter_search = 0;
690 sf->cb_partition_search = 0;
691 sf->motion_field_mode_search = 0;
692 sf->alt_ref_search_fp = 0;
693 sf->use_quant_fp = 0;
694 sf->reference_masking = 0;
695 sf->partition_search_type = SEARCH_PARTITION;
696 sf->less_rectangular_check = 0;
697 sf->use_square_partition_only = 0;
698 sf->use_square_only_threshold = BLOCK_SIZES;
699 sf->auto_min_max_partition_size = NOT_IN_USE;
700 sf->rd_auto_partition_min_limit = BLOCK_4X4;
701 sf->default_max_partition_size = BLOCK_64X64;
702 sf->default_min_partition_size = BLOCK_4X4;
703 sf->adjust_partitioning_from_last_frame = 0;
704 sf->last_partitioning_redo_frequency = 4;
705 sf->disable_split_mask = 0;
706 sf->mode_search_skip_flags = 0;
707 sf->force_frame_boost = 0;
708 sf->max_delta_qindex = 0;
709 sf->disable_filter_search_var_thresh = 0;
710 sf->adaptive_interp_filter_search = 0;
711 sf->allow_partition_search_skip = 0;
712 sf->allow_txfm_domain_distortion = 0;
713 sf->tx_domain_thresh = 99.0;
714 sf->allow_quant_coeff_opt = sf->optimize_coefficients;
715 sf->quant_opt_thresh = 99.0;
716 sf->allow_acl = 1;
719 sf->intra_y_mode_mask[i] = INTRA_ALL;
720 sf->intra_uv_mode_mask[i] = INTRA_ALL;
722 sf->use_rd_breakout = 0;
723 sf->skip_encode_sb = 0;
724 sf->use_uv_intra_rd_estimate = 0;
725 sf->allow_skip_recode = 0;
726 sf->lpf_pick = LPF_PICK_FROM_FULL_IMAGE;
727 sf->use_fast_coef_updates = TWO_LOOP;
728 sf->use_fast_coef_costing = 0;
729 sf->mode_skip_start = MAX_MODES; // Mode index at which mode skip mask set
730 sf->schedule_mode_search = 0;
731 sf->use_nonrd_pick_mode = 0;
732 for (i = 0; i < BLOCK_SIZES; ++i) sf->inter_mode_mask[i] = INTER_ALL;
733 sf->max_intra_bsize = BLOCK_64X64;
734 sf->reuse_inter_pred_sby = 0;
737 sf->always_this_block_size = BLOCK_16X16;
738 sf->search_type_check_frequency = 50;
739 sf->encode_breakout_thresh = 0;
741 sf->recode_tolerance_low = 12;
742 sf->recode_tolerance_high = 25;
743 sf->default_interp_filter = SWITCHABLE;
744 sf->simple_model_rd_from_var = 0;
745 sf->short_circuit_flat_blocks = 0;
746 sf->short_circuit_low_temp_var = 0;
747 sf->limit_newmv_early_exit = 0;
748 sf->bias_golden = 0;
749 sf->base_mv_aggressive = 0;
752 sf->adaptive_rd_thresh = 1;
753 sf->tx_size_search_breakout = 1;
755 sf->exhaustive_searches_thresh =
760 sf->mesh_patterns[i].range = best_quality_mesh_pattern[i].range;
761 sf->mesh_patterns[i].interval = best_quality_mesh_pattern[i].interval;
766 set_rt_speed_feature_framesize_independent(cpi, sf, oxcf->speed,
769 set_good_speed_feature_framesize_independent(cpi, cm, sf, oxcf->speed);
776 if (oxcf->pass == 1) sf->optimize_coefficients = 0;
780 sf->recode_loop = DISALLOW_RECODE;
781 sf->optimize_coefficients = 0;
784 if (sf->mv.subpel_force_stop == 3) {
787 } else if (sf->mv.subpel_search_method == SUBPEL_TREE) {
789 } else if (sf->mv.subpel_search_method == SUBPEL_TREE_PRUNED) {
791 } else if (sf->mv.subpel_search_method == SUBPEL_TREE_PRUNED_MORE) {
793 } else if (sf->mv.subpel_search_method == SUBPEL_TREE_PRUNED_EVENMORE) {
797 x->optimize = sf->optimize_coefficients == 1 && oxcf->pass != 1;
799 x->min_partition_size = sf->default_min_partition_size;
800 x->max_partition_size = sf->default_max_partition_size;
803 sf->max_delta_qindex = 0;
811 if (!sf->adaptive_rd_thresh_row_mt && cpi->row_mt_bit_exact)
812 sf->adaptive_rd_thresh = 0;