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 25 matching lines...) Expand all Loading... |
36 #define CATEGORY5_TOKEN 9 // 35-66 Extra Bits 5+1 | 36 #define CATEGORY5_TOKEN 9 // 35-66 Extra Bits 5+1 |
37 #define CATEGORY6_TOKEN 10 // 67+ Extra Bits 14+1 | 37 #define CATEGORY6_TOKEN 10 // 67+ Extra Bits 14+1 |
38 #define EOB_TOKEN 11 // EOB Extra Bits 0+0 | 38 #define EOB_TOKEN 11 // EOB Extra Bits 0+0 |
39 | 39 |
40 #define ENTROPY_TOKENS 12 | 40 #define ENTROPY_TOKENS 12 |
41 | 41 |
42 #define ENTROPY_NODES 11 | 42 #define ENTROPY_NODES 11 |
43 | 43 |
44 DECLARE_ALIGNED(16, extern const uint8_t, vp9_pt_energy_class[ENTROPY_TOKENS]); | 44 DECLARE_ALIGNED(16, extern const uint8_t, vp9_pt_energy_class[ENTROPY_TOKENS]); |
45 | 45 |
| 46 #define CAT1_MIN_VAL 5 |
| 47 #define CAT2_MIN_VAL 7 |
| 48 #define CAT3_MIN_VAL 11 |
| 49 #define CAT4_MIN_VAL 19 |
| 50 #define CAT5_MIN_VAL 35 |
| 51 #define CAT6_MIN_VAL 67 |
| 52 |
| 53 // Extra bit probabilities. |
| 54 DECLARE_ALIGNED(16, extern const uint8_t, vp9_cat1_prob[1]); |
| 55 DECLARE_ALIGNED(16, extern const uint8_t, vp9_cat2_prob[2]); |
| 56 DECLARE_ALIGNED(16, extern const uint8_t, vp9_cat3_prob[3]); |
| 57 DECLARE_ALIGNED(16, extern const uint8_t, vp9_cat4_prob[4]); |
| 58 DECLARE_ALIGNED(16, extern const uint8_t, vp9_cat5_prob[5]); |
| 59 DECLARE_ALIGNED(16, extern const uint8_t, vp9_cat6_prob[14]); |
| 60 |
46 #define EOB_MODEL_TOKEN 3 | 61 #define EOB_MODEL_TOKEN 3 |
47 extern const vp9_tree_index vp9_coefmodel_tree[]; | 62 extern const vp9_tree_index vp9_coefmodel_tree[]; |
48 | 63 |
49 typedef struct { | 64 typedef struct { |
50 const vp9_tree_index *tree; | 65 const vp9_tree_index *tree; |
51 const vp9_prob *prob; | 66 const vp9_prob *prob; |
52 int len; | 67 int len; |
53 int base_val; | 68 int base_val; |
54 } vp9_extra_bit; | 69 } vp9_extra_bit; |
55 | 70 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 const PREDICTION_MODE mode = get_y_mode(mi, block_idx); | 198 const PREDICTION_MODE mode = get_y_mode(mi, block_idx); |
184 return &vp9_scan_orders[tx_size][intra_mode_to_tx_type_lookup[mode]]; | 199 return &vp9_scan_orders[tx_size][intra_mode_to_tx_type_lookup[mode]]; |
185 } | 200 } |
186 } | 201 } |
187 | 202 |
188 #ifdef __cplusplus | 203 #ifdef __cplusplus |
189 } // extern "C" | 204 } // extern "C" |
190 #endif | 205 #endif |
191 | 206 |
192 #endif // VP9_COMMON_VP9_ENTROPY_H_ | 207 #endif // VP9_COMMON_VP9_ENTROPY_H_ |
OLD | NEW |