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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 ADST_ADST = 3, // ADST in both directions | 97 ADST_ADST = 3, // ADST in both directions |
98 TX_TYPES = 4 | 98 TX_TYPES = 4 |
99 } TX_TYPE; | 99 } TX_TYPE; |
100 | 100 |
101 typedef enum { | 101 typedef enum { |
102 VP9_LAST_FLAG = 1 << 0, | 102 VP9_LAST_FLAG = 1 << 0, |
103 VP9_GOLD_FLAG = 1 << 1, | 103 VP9_GOLD_FLAG = 1 << 1, |
104 VP9_ALT_FLAG = 1 << 2, | 104 VP9_ALT_FLAG = 1 << 2, |
105 } VP9_REFFRAME; | 105 } VP9_REFFRAME; |
106 | 106 |
| 107 typedef enum { |
| 108 PLANE_TYPE_Y = 0, |
| 109 PLANE_TYPE_UV = 1, |
| 110 PLANE_TYPES |
| 111 } PLANE_TYPE; |
| 112 |
| 113 typedef enum { |
| 114 DC_PRED, // Average of above and left pixels |
| 115 V_PRED, // Vertical |
| 116 H_PRED, // Horizontal |
| 117 D45_PRED, // Directional 45 deg = round(arctan(1/1) * 180/pi) |
| 118 D135_PRED, // Directional 135 deg = 180 - 45 |
| 119 D117_PRED, // Directional 117 deg = 180 - 63 |
| 120 D153_PRED, // Directional 153 deg = 180 - 27 |
| 121 D207_PRED, // Directional 207 deg = 180 + 27 |
| 122 D63_PRED, // Directional 63 deg = round(arctan(2/1) * 180/pi) |
| 123 TM_PRED, // True-motion |
| 124 NEARESTMV, |
| 125 NEARMV, |
| 126 ZEROMV, |
| 127 NEWMV, |
| 128 MB_MODE_COUNT |
| 129 } PREDICTION_MODE; |
| 130 |
| 131 #define INTRA_MODES (TM_PRED + 1) |
| 132 |
| 133 #define INTER_MODES (1 + NEWMV - NEARESTMV) |
| 134 |
| 135 #define SKIP_CONTEXTS 3 |
| 136 #define INTER_MODE_CONTEXTS 7 |
| 137 |
| 138 /* Segment Feature Masks */ |
| 139 #define MAX_MV_REF_CANDIDATES 2 |
| 140 |
| 141 #define INTRA_INTER_CONTEXTS 4 |
| 142 #define COMP_INTER_CONTEXTS 5 |
| 143 #define REF_CONTEXTS 5 |
| 144 |
107 #ifdef __cplusplus | 145 #ifdef __cplusplus |
108 } // extern "C" | 146 } // extern "C" |
109 #endif | 147 #endif |
110 | 148 |
111 #endif // VP9_COMMON_VP9_ENUMS_H_ | 149 #endif // VP9_COMMON_VP9_ENUMS_H_ |
OLD | NEW |