| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 PARTITION_CONTEXTS (4 * PARTITION_PLOFFSET) | 53 #define PARTITION_CONTEXTS (4 * PARTITION_PLOFFSET) |
| 54 | 54 |
| 55 // block transform size |
| 55 typedef enum { | 56 typedef enum { |
| 56 TX_4X4 = 0, // 4x4 dct transform | 57 TX_4X4 = 0, // 4x4 transform |
| 57 TX_8X8 = 1, // 8x8 dct transform | 58 TX_8X8 = 1, // 8x8 transform |
| 58 TX_16X16 = 2, // 16x16 dct transform | 59 TX_16X16 = 2, // 16x16 transform |
| 59 TX_32X32 = 3, // 32x32 dct transform | 60 TX_32X32 = 3, // 32x32 transform |
| 60 TX_SIZES | 61 TX_SIZES |
| 61 } TX_SIZE; | 62 } TX_SIZE; |
| 62 | 63 |
| 64 // frame transform mode |
| 63 typedef enum { | 65 typedef enum { |
| 64 ONLY_4X4 = 0, | 66 ONLY_4X4 = 0, // only 4x4 transform used |
| 65 ALLOW_8X8 = 1, | 67 ALLOW_8X8 = 1, // allow block transform size up to 8x8 |
| 66 ALLOW_16X16 = 2, | 68 ALLOW_16X16 = 2, // allow block transform size up to 16x16 |
| 67 ALLOW_32X32 = 3, | 69 ALLOW_32X32 = 3, // allow block transform size up to 32x32 |
| 68 TX_MODE_SELECT = 4, | 70 TX_MODE_SELECT = 4, // transform specified for each block |
| 69 TX_MODES = 5, | 71 TX_MODES = 5, |
| 70 } TX_MODE; | 72 } TX_MODE; |
| 71 | 73 |
| 72 typedef enum { | 74 typedef enum { |
| 73 DCT_DCT = 0, // DCT in both horizontal and vertical | 75 DCT_DCT = 0, // DCT in both horizontal and vertical |
| 74 ADST_DCT = 1, // ADST in vertical, DCT in horizontal | 76 ADST_DCT = 1, // ADST in vertical, DCT in horizontal |
| 75 DCT_ADST = 2, // DCT in vertical, ADST in horizontal | 77 DCT_ADST = 2, // DCT in vertical, ADST in horizontal |
| 76 ADST_ADST = 3 // ADST in both directions | 78 ADST_ADST = 3, // ADST in both directions |
| 79 TX_TYPES = 4 |
| 77 } TX_TYPE; | 80 } TX_TYPE; |
| 78 | 81 |
| 79 typedef enum { | 82 typedef enum { |
| 80 UNKNOWN = 0, | 83 UNKNOWN = 0, |
| 81 BT_601 = 1, // YUV | 84 BT_601 = 1, // YUV |
| 82 BT_709 = 2, // YUV | 85 BT_709 = 2, // YUV |
| 83 SMPTE_170 = 3, // YUV | 86 SMPTE_170 = 3, // YUV |
| 84 SMPTE_240 = 4, // YUV | 87 SMPTE_240 = 4, // YUV |
| 85 RESERVED_1 = 5, | 88 RESERVED_1 = 5, |
| 86 RESERVED_2 = 6, | 89 RESERVED_2 = 6, |
| 87 SRGB = 7 // RGB | 90 SRGB = 7 // RGB |
| 88 } COLOR_SPACE; | 91 } COLOR_SPACE; |
| 89 | 92 |
| 90 #endif // VP9_COMMON_VP9_ENUMS_H_ | 93 #endif // VP9_COMMON_VP9_ENUMS_H_ |
| OLD | NEW |