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 |
11 #ifndef VP9_COMMON_VP9_ENTROPYMODE_H_ | 11 #ifndef VP9_COMMON_VP9_ENTROPYMODE_H_ |
12 #define VP9_COMMON_VP9_ENTROPYMODE_H_ | 12 #define VP9_COMMON_VP9_ENTROPYMODE_H_ |
13 | 13 |
14 #include "vp9/common/vp9_blockd.h" | 14 #include "vp9/common/vp9_blockd.h" |
15 #include "vp9/common/vp9_entropy.h" | 15 #include "vp9/common/vp9_entropy.h" |
16 #include "vp9/common/vp9_entropymv.h" | 16 #include "vp9/common/vp9_entropymv.h" |
17 | 17 |
18 #ifdef __cplusplus | 18 #ifdef __cplusplus |
19 extern "C" { | 19 extern "C" { |
20 #endif | 20 #endif |
21 | 21 |
22 #define TX_SIZE_CONTEXTS 2 | 22 #define TX_SIZE_CONTEXTS 2 |
23 #define SWITCHABLE_FILTERS 3 // number of switchable filters | |
24 #define SWITCHABLE_FILTER_CONTEXTS (SWITCHABLE_FILTERS + 1) | |
25 | 23 |
26 struct VP9Common; | 24 struct VP9Common; |
27 | 25 |
28 struct tx_probs { | 26 struct tx_probs { |
29 vp9_prob p32x32[TX_SIZE_CONTEXTS][TX_SIZES - 1]; | 27 vp9_prob p32x32[TX_SIZE_CONTEXTS][TX_SIZES - 1]; |
30 vp9_prob p16x16[TX_SIZE_CONTEXTS][TX_SIZES - 2]; | 28 vp9_prob p16x16[TX_SIZE_CONTEXTS][TX_SIZES - 2]; |
31 vp9_prob p8x8[TX_SIZE_CONTEXTS][TX_SIZES - 3]; | 29 vp9_prob p8x8[TX_SIZE_CONTEXTS][TX_SIZES - 3]; |
32 }; | 30 }; |
33 | 31 |
34 struct tx_counts { | 32 struct tx_counts { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 const PREDICTION_MODE above = vp9_above_block_mode(mi, above_mi, block); | 102 const PREDICTION_MODE above = vp9_above_block_mode(mi, above_mi, block); |
105 const PREDICTION_MODE left = vp9_left_block_mode(mi, left_mi, block); | 103 const PREDICTION_MODE left = vp9_left_block_mode(mi, left_mi, block); |
106 return vp9_kf_y_mode_prob[above][left]; | 104 return vp9_kf_y_mode_prob[above][left]; |
107 } | 105 } |
108 | 106 |
109 #ifdef __cplusplus | 107 #ifdef __cplusplus |
110 } // extern "C" | 108 } // extern "C" |
111 #endif | 109 #endif |
112 | 110 |
113 #endif // VP9_COMMON_VP9_ENTROPYMODE_H_ | 111 #endif // VP9_COMMON_VP9_ENTROPYMODE_H_ |
OLD | NEW |