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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 THR_NEARESTG, | 44 THR_NEARESTG, |
45 | 45 |
46 THR_DC, | 46 THR_DC, |
47 | 47 |
48 THR_NEWMV, | 48 THR_NEWMV, |
49 THR_NEWA, | 49 THR_NEWA, |
50 THR_NEWG, | 50 THR_NEWG, |
51 | 51 |
52 THR_NEARMV, | 52 THR_NEARMV, |
53 THR_NEARA, | 53 THR_NEARA, |
| 54 THR_NEARG, |
| 55 |
| 56 THR_ZEROMV, |
| 57 THR_ZEROG, |
| 58 THR_ZEROA, |
| 59 |
54 THR_COMP_NEARESTLA, | 60 THR_COMP_NEARESTLA, |
55 THR_COMP_NEARESTGA, | 61 THR_COMP_NEARESTGA, |
56 | 62 |
57 THR_TM, | 63 THR_TM, |
58 | 64 |
59 THR_COMP_NEARLA, | 65 THR_COMP_NEARLA, |
60 THR_COMP_NEWLA, | 66 THR_COMP_NEWLA, |
61 THR_NEARG, | |
62 THR_COMP_NEARGA, | 67 THR_COMP_NEARGA, |
63 THR_COMP_NEWGA, | 68 THR_COMP_NEWGA, |
64 | 69 |
65 THR_ZEROMV, | |
66 THR_ZEROG, | |
67 THR_ZEROA, | |
68 THR_COMP_ZEROLA, | 70 THR_COMP_ZEROLA, |
69 THR_COMP_ZEROGA, | 71 THR_COMP_ZEROGA, |
70 | 72 |
71 THR_H_PRED, | 73 THR_H_PRED, |
72 THR_V_PRED, | 74 THR_V_PRED, |
73 THR_D135_PRED, | 75 THR_D135_PRED, |
74 THR_D207_PRED, | 76 THR_D207_PRED, |
75 THR_D153_PRED, | 77 THR_D153_PRED, |
76 THR_D63_PRED, | 78 THR_D63_PRED, |
77 THR_D117_PRED, | 79 THR_D117_PRED, |
(...skipping 13 matching lines...) Expand all Loading... |
91 // Thresh_mult is used to set a threshold for the rd score. A higher value | 93 // Thresh_mult is used to set a threshold for the rd score. A higher value |
92 // means that we will accept the best mode so far more often. This number | 94 // means that we will accept the best mode so far more often. This number |
93 // is used in combination with the current block size, and thresh_freq_fact | 95 // is used in combination with the current block size, and thresh_freq_fact |
94 // to pick a threshold. | 96 // to pick a threshold. |
95 int thresh_mult[MAX_MODES]; | 97 int thresh_mult[MAX_MODES]; |
96 int thresh_mult_sub8x8[MAX_REFS]; | 98 int thresh_mult_sub8x8[MAX_REFS]; |
97 | 99 |
98 int threshes[MAX_SEGMENTS][BLOCK_SIZES][MAX_MODES]; | 100 int threshes[MAX_SEGMENTS][BLOCK_SIZES][MAX_MODES]; |
99 int thresh_freq_fact[BLOCK_SIZES][MAX_MODES]; | 101 int thresh_freq_fact[BLOCK_SIZES][MAX_MODES]; |
100 | 102 |
| 103 int mode_map[BLOCK_SIZES][MAX_MODES]; |
| 104 |
101 int64_t comp_pred_diff[REFERENCE_MODES]; | 105 int64_t comp_pred_diff[REFERENCE_MODES]; |
102 int64_t prediction_type_threshes[MAX_REF_FRAMES][REFERENCE_MODES]; | 106 int64_t prediction_type_threshes[MAX_REF_FRAMES][REFERENCE_MODES]; |
103 int64_t tx_select_diff[TX_MODES]; | 107 int64_t tx_select_diff[TX_MODES]; |
104 // TODO(agrange): can this overflow? | 108 // TODO(agrange): can this overflow? |
105 int tx_select_threshes[MAX_REF_FRAMES][TX_MODES]; | 109 int tx_select_threshes[MAX_REF_FRAMES][TX_MODES]; |
106 | 110 |
107 int64_t filter_diff[SWITCHABLE_FILTER_CONTEXTS]; | 111 int64_t filter_diff[SWITCHABLE_FILTER_CONTEXTS]; |
108 int64_t filter_threshes[MAX_REF_FRAMES][SWITCHABLE_FILTER_CONTEXTS]; | 112 int64_t filter_threshes[MAX_REF_FRAMES][SWITCHABLE_FILTER_CONTEXTS]; |
109 int64_t filter_cache[SWITCHABLE_FILTER_CONTEXTS]; | 113 int64_t filter_cache[SWITCHABLE_FILTER_CONTEXTS]; |
110 int64_t mask_filter; | 114 int64_t mask_filter; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 struct buf_2d dst[MAX_MB_PLANE], | 160 struct buf_2d dst[MAX_MB_PLANE], |
157 const YV12_BUFFER_CONFIG *src, | 161 const YV12_BUFFER_CONFIG *src, |
158 int mi_row, int mi_col, | 162 int mi_row, int mi_col, |
159 const struct scale_factors *scale, | 163 const struct scale_factors *scale, |
160 const struct scale_factors *scale_uv); | 164 const struct scale_factors *scale_uv); |
161 #ifdef __cplusplus | 165 #ifdef __cplusplus |
162 } // extern "C" | 166 } // extern "C" |
163 #endif | 167 #endif |
164 | 168 |
165 #endif // VP9_ENCODER_VP9_RD_H_ | 169 #endif // VP9_ENCODER_VP9_RD_H_ |
OLD | NEW |