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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 typedef enum PARTITION_TYPE { | 43 typedef enum PARTITION_TYPE { |
44 PARTITION_NONE, | 44 PARTITION_NONE, |
45 PARTITION_HORZ, | 45 PARTITION_HORZ, |
46 PARTITION_VERT, | 46 PARTITION_VERT, |
47 PARTITION_SPLIT, | 47 PARTITION_SPLIT, |
48 PARTITION_TYPES, | 48 PARTITION_TYPES, |
49 PARTITION_INVALID = PARTITION_TYPES | 49 PARTITION_INVALID = PARTITION_TYPES |
50 } PARTITION_TYPE; | 50 } PARTITION_TYPE; |
51 | 51 |
52 #define PARTITION_PLOFFSET 4 // number of probability models per block size | 52 #define PARTITION_PLOFFSET 4 // number of probability models per block size |
53 #define NUM_PARTITION_CONTEXTS (4 * PARTITION_PLOFFSET) | 53 #define PARTITION_CONTEXTS (4 * PARTITION_PLOFFSET) |
54 | 54 |
55 typedef enum { | 55 typedef enum { |
56 TX_4X4 = 0, // 4x4 dct transform | 56 TX_4X4 = 0, // 4x4 dct transform |
57 TX_8X8 = 1, // 8x8 dct transform | 57 TX_8X8 = 1, // 8x8 dct transform |
58 TX_16X16 = 2, // 16x16 dct transform | 58 TX_16X16 = 2, // 16x16 dct transform |
59 TX_32X32 = 3, // 32x32 dct transform | 59 TX_32X32 = 3, // 32x32 dct transform |
60 TX_SIZES | 60 TX_SIZES |
61 } TX_SIZE; | 61 } TX_SIZE; |
62 | 62 |
63 typedef enum { | 63 typedef enum { |
64 ONLY_4X4 = 0, | 64 ONLY_4X4 = 0, |
65 ALLOW_8X8 = 1, | 65 ALLOW_8X8 = 1, |
66 ALLOW_16X16 = 2, | 66 ALLOW_16X16 = 2, |
67 ALLOW_32X32 = 3, | 67 ALLOW_32X32 = 3, |
68 TX_MODE_SELECT = 4, | 68 TX_MODE_SELECT = 4, |
69 TX_MODES = 5, | 69 TX_MODES = 5, |
70 } TX_MODE; | 70 } TX_MODE; |
71 | 71 |
72 typedef enum { | 72 typedef enum { |
73 DCT_DCT = 0, // DCT in both horizontal and vertical | 73 DCT_DCT = 0, // DCT in both horizontal and vertical |
74 ADST_DCT = 1, // ADST in vertical, DCT in horizontal | 74 ADST_DCT = 1, // ADST in vertical, DCT in horizontal |
75 DCT_ADST = 2, // DCT in vertical, ADST in horizontal | 75 DCT_ADST = 2, // DCT in vertical, ADST in horizontal |
76 ADST_ADST = 3 // ADST in both directions | 76 ADST_ADST = 3 // ADST in both directions |
77 } TX_TYPE; | 77 } TX_TYPE; |
78 | 78 |
| 79 typedef enum { |
| 80 UNKNOWN = 0, |
| 81 BT_601 = 1, // YUV |
| 82 BT_709 = 2, // YUV |
| 83 SMPTE_170 = 3, // YUV |
| 84 SMPTE_240 = 4, // YUV |
| 85 RESERVED_1 = 5, |
| 86 RESERVED_2 = 6, |
| 87 SRGB = 7 // RGB |
| 88 } COLOR_SPACE; |
| 89 |
79 #endif // VP9_COMMON_VP9_ENUMS_H_ | 90 #endif // VP9_COMMON_VP9_ENUMS_H_ |
OLD | NEW |