| 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 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 sf->subpel_iters_per_step = 2; | 704 sf->subpel_iters_per_step = 2; |
| 705 sf->optimize_coefficients = !cpi->oxcf.lossless; | 705 sf->optimize_coefficients = !cpi->oxcf.lossless; |
| 706 sf->reduce_first_step_size = 0; | 706 sf->reduce_first_step_size = 0; |
| 707 sf->auto_mv_step_size = 0; | 707 sf->auto_mv_step_size = 0; |
| 708 sf->max_step_search_steps = MAX_MVSEARCH_STEPS; | 708 sf->max_step_search_steps = MAX_MVSEARCH_STEPS; |
| 709 sf->comp_inter_joint_search_thresh = BLOCK_4X4; | 709 sf->comp_inter_joint_search_thresh = BLOCK_4X4; |
| 710 sf->adaptive_rd_thresh = 0; | 710 sf->adaptive_rd_thresh = 0; |
| 711 sf->use_lastframe_partitioning = 0; | 711 sf->use_lastframe_partitioning = 0; |
| 712 sf->tx_size_search_method = USE_FULL_RD; | 712 sf->tx_size_search_method = USE_FULL_RD; |
| 713 sf->use_lp32x32fdct = 0; | 713 sf->use_lp32x32fdct = 0; |
| 714 sf->adaptive_motion_search = 0; |
| 714 sf->use_avoid_tested_higherror = 0; | 715 sf->use_avoid_tested_higherror = 0; |
| 715 sf->reference_masking = 0; | 716 sf->reference_masking = 0; |
| 716 sf->skip_lots_of_modes = 0; | 717 sf->skip_lots_of_modes = 0; |
| 717 sf->partition_by_variance = 0; | 718 sf->partition_by_variance = 0; |
| 718 sf->use_one_partition_size_always = 0; | 719 sf->use_one_partition_size_always = 0; |
| 719 sf->less_rectangular_check = 0; | 720 sf->less_rectangular_check = 0; |
| 720 sf->use_square_partition_only = 0; | 721 sf->use_square_partition_only = 0; |
| 721 sf->auto_min_max_partition_size = 0; | 722 sf->auto_min_max_partition_size = 0; |
| 722 sf->auto_min_max_partition_interval = 0; | 723 sf->auto_min_max_partition_interval = 0; |
| 723 sf->auto_min_max_partition_count = 0; | 724 sf->auto_min_max_partition_count = 0; |
| 724 sf->max_partition_size = BLOCK_64X64; | 725 sf->max_partition_size = BLOCK_64X64; |
| 725 sf->min_partition_size = BLOCK_4X4; | 726 sf->min_partition_size = BLOCK_4X4; |
| 726 sf->adjust_partitioning_from_last_frame = 0; | 727 sf->adjust_partitioning_from_last_frame = 0; |
| 727 sf->last_partitioning_redo_frequency = 4; | 728 sf->last_partitioning_redo_frequency = 4; |
| 728 sf->disable_splitmv = 0; | 729 sf->disable_splitmv = 0; |
| 729 sf->mode_search_skip_flags = 0; | 730 sf->mode_search_skip_flags = 0; |
| 730 sf->disable_split_var_thresh = 0; | 731 sf->disable_split_var_thresh = 0; |
| 731 sf->disable_filter_search_var_thresh = 0; | 732 sf->disable_filter_search_var_thresh = 0; |
| 732 sf->intra_y_mode_mask = ALL_INTRA_MODES; | 733 sf->intra_y_mode_mask = ALL_INTRA_MODES; |
| 733 sf->intra_uv_mode_mask = ALL_INTRA_MODES; | 734 sf->intra_uv_mode_mask = ALL_INTRA_MODES; |
| 734 sf->use_rd_breakout = 0; | 735 sf->use_rd_breakout = 0; |
| 735 sf->skip_encode_sb = 0; | 736 sf->skip_encode_sb = 0; |
| 736 sf->use_uv_intra_rd_estimate = 0; | 737 sf->use_uv_intra_rd_estimate = 0; |
| 737 sf->use_fast_lpf_pick = 0; | 738 sf->use_fast_lpf_pick = 0; |
| 738 sf->use_fast_coef_updates = 0; | 739 sf->use_fast_coef_updates = 0; |
| 739 sf->using_small_partition_info = 0; | 740 sf->using_small_partition_info = 0; |
| 740 sf->mode_skip_start = MAX_MODES; // Mode index at which mode skip mask set | 741 sf->mode_skip_start = MAX_MODES; // Mode index at which mode skip mask set |
| 741 | 742 |
| 742 | |
| 743 #if CONFIG_MULTIPLE_ARF | 743 #if CONFIG_MULTIPLE_ARF |
| 744 // Switch segmentation off. | 744 // Switch segmentation off. |
| 745 sf->static_segmentation = 0; | 745 sf->static_segmentation = 0; |
| 746 #else | 746 #else |
| 747 sf->static_segmentation = 0; | 747 sf->static_segmentation = 0; |
| 748 #endif | 748 #endif |
| 749 | 749 |
| 750 switch (mode) { | 750 switch (mode) { |
| 751 case 0: // best quality mode | 751 case 0: // best quality mode |
| 752 break; | 752 break; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 775 sf->disable_splitmv = | 775 sf->disable_splitmv = |
| 776 (MIN(cpi->common.width, cpi->common.height) >= 720)? 1 : 0; | 776 (MIN(cpi->common.width, cpi->common.height) >= 720)? 1 : 0; |
| 777 sf->mode_search_skip_flags = FLAG_SKIP_INTRA_DIRMISMATCH | | 777 sf->mode_search_skip_flags = FLAG_SKIP_INTRA_DIRMISMATCH | |
| 778 FLAG_SKIP_INTRA_BESTINTER | | 778 FLAG_SKIP_INTRA_BESTINTER | |
| 779 FLAG_SKIP_COMP_BESTINTRA | | 779 FLAG_SKIP_COMP_BESTINTRA | |
| 780 FLAG_SKIP_INTRA_LOWVAR; | 780 FLAG_SKIP_INTRA_LOWVAR; |
| 781 sf->use_uv_intra_rd_estimate = 1; | 781 sf->use_uv_intra_rd_estimate = 1; |
| 782 sf->use_rd_breakout = 1; | 782 sf->use_rd_breakout = 1; |
| 783 sf->skip_encode_sb = 1; | 783 sf->skip_encode_sb = 1; |
| 784 sf->use_lp32x32fdct = 1; | 784 sf->use_lp32x32fdct = 1; |
| 785 sf->adaptive_motion_search = 1; |
| 785 sf->auto_mv_step_size = 1; | 786 sf->auto_mv_step_size = 1; |
| 786 | 787 |
| 787 sf->auto_min_max_partition_size = 1; | 788 sf->auto_min_max_partition_size = 1; |
| 788 sf->auto_min_max_partition_interval = 1; | 789 sf->auto_min_max_partition_interval = 1; |
| 789 // FIXME(jingning): temporarily turn off disable_split_var_thresh | 790 // FIXME(jingning): temporarily turn off disable_split_var_thresh |
| 790 // during refactoring process. will get this back after finishing | 791 // during refactoring process. will get this back after finishing |
| 791 // the main framework of partition search type. | 792 // the main framework of partition search type. |
| 792 sf->disable_split_var_thresh = 0; | 793 sf->disable_split_var_thresh = 0; |
| 793 sf->disable_filter_search_var_thresh = 16; | 794 sf->disable_filter_search_var_thresh = 16; |
| 794 | 795 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 814 FLAG_SKIP_COMP_BESTINTRA | | 815 FLAG_SKIP_COMP_BESTINTRA | |
| 815 FLAG_SKIP_COMP_REFMISMATCH | | 816 FLAG_SKIP_COMP_REFMISMATCH | |
| 816 FLAG_SKIP_INTRA_LOWVAR | | 817 FLAG_SKIP_INTRA_LOWVAR | |
| 817 FLAG_EARLY_TERMINATE; | 818 FLAG_EARLY_TERMINATE; |
| 818 sf->intra_y_mode_mask = INTRA_DC_TM; | 819 sf->intra_y_mode_mask = INTRA_DC_TM; |
| 819 sf->intra_uv_mode_mask = INTRA_DC_TM; | 820 sf->intra_uv_mode_mask = INTRA_DC_TM; |
| 820 sf->use_uv_intra_rd_estimate = 1; | 821 sf->use_uv_intra_rd_estimate = 1; |
| 821 sf->use_rd_breakout = 1; | 822 sf->use_rd_breakout = 1; |
| 822 sf->skip_encode_sb = 1; | 823 sf->skip_encode_sb = 1; |
| 823 sf->use_lp32x32fdct = 1; | 824 sf->use_lp32x32fdct = 1; |
| 825 sf->adaptive_motion_search = 1; |
| 824 sf->using_small_partition_info = 0; | 826 sf->using_small_partition_info = 0; |
| 825 sf->disable_splitmv = | 827 sf->disable_splitmv = |
| 826 (MIN(cpi->common.width, cpi->common.height) >= 720)? 1 : 0; | 828 (MIN(cpi->common.width, cpi->common.height) >= 720)? 1 : 0; |
| 827 sf->auto_mv_step_size = 1; | 829 sf->auto_mv_step_size = 1; |
| 828 sf->search_method = SQUARE; | 830 sf->search_method = SQUARE; |
| 829 sf->subpel_iters_per_step = 1; | 831 sf->subpel_iters_per_step = 1; |
| 830 sf->use_fast_lpf_pick = 1; | 832 sf->use_fast_lpf_pick = 1; |
| 831 sf->auto_min_max_partition_size = 1; | 833 sf->auto_min_max_partition_size = 1; |
| 832 sf->auto_min_max_partition_interval = 2; | 834 sf->auto_min_max_partition_interval = 2; |
| 833 sf->disable_split_var_thresh = 32; | 835 sf->disable_split_var_thresh = 32; |
| (...skipping 3356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4190 dst += 16 * dest->y_stride; | 4192 dst += 16 * dest->y_stride; |
| 4191 } | 4193 } |
| 4192 | 4194 |
| 4193 return total; | 4195 return total; |
| 4194 } | 4196 } |
| 4195 | 4197 |
| 4196 | 4198 |
| 4197 int vp9_get_quantizer(VP9_PTR c) { | 4199 int vp9_get_quantizer(VP9_PTR c) { |
| 4198 return ((VP9_COMP *)c)->common.base_qindex; | 4200 return ((VP9_COMP *)c)->common.base_qindex; |
| 4199 } | 4201 } |
| OLD | NEW |