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 | |
12 #ifndef VP9_COMMON_VP9_ENTROPYMODE_H_ | 11 #ifndef VP9_COMMON_VP9_ENTROPYMODE_H_ |
13 #define VP9_COMMON_VP9_ENTROPYMODE_H_ | 12 #define VP9_COMMON_VP9_ENTROPYMODE_H_ |
14 | 13 |
15 #include "vp9/common/vp9_blockd.h" | 14 #include "vp9/common/vp9_blockd.h" |
16 #include "vp9/common/vp9_treecoder.h" | 15 #include "vp9/common/vp9_treecoder.h" |
17 | 16 |
18 #define SUBMVREF_COUNT 5 | 17 #define SUBMVREF_COUNT 5 |
19 #define VP9_NUMMBSPLITS 4 | 18 #define VP9_NUMMBSPLITS 4 |
20 #if CONFIG_COMP_INTRA_PRED | |
21 #define DEFAULT_COMP_INTRA_PROB 32 | |
22 #endif | |
23 | 19 |
24 #if CONFIG_COMP_INTERINTRA_PRED | 20 #if CONFIG_COMP_INTERINTRA_PRED |
25 #define VP9_DEF_INTERINTRA_PROB 248 | 21 #define VP9_DEF_INTERINTRA_PROB 248 |
26 #define VP9_UPD_INTERINTRA_PROB 192 | 22 #define VP9_UPD_INTERINTRA_PROB 192 |
27 // whether to use a separate uv mode (1) or use the same as the y mode (0) | 23 // whether to use a separate uv mode (1) or use the same as the y mode (0) |
28 #define SEPARATE_INTERINTRA_UV 0 | 24 #define SEPARATE_INTERINTRA_UV 0 |
29 #endif | 25 #endif |
30 | 26 |
31 typedef const int vp9_mbsplit[16]; | 27 typedef const int vp9_mbsplit[16]; |
32 | 28 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 const int context); | 87 const int context); |
92 | 88 |
93 void vp9_default_bmode_probs(vp9_prob dest[VP9_NKF_BINTRAMODES - 1]); | 89 void vp9_default_bmode_probs(vp9_prob dest[VP9_NKF_BINTRAMODES - 1]); |
94 | 90 |
95 void vp9_kf_default_bmode_probs(vp9_prob dest[VP9_KF_BINTRAMODES] | 91 void vp9_kf_default_bmode_probs(vp9_prob dest[VP9_KF_BINTRAMODES] |
96 [VP9_KF_BINTRAMODES] | 92 [VP9_KF_BINTRAMODES] |
97 [VP9_KF_BINTRAMODES - 1]); | 93 [VP9_KF_BINTRAMODES - 1]); |
98 | 94 |
99 void vp9_adapt_mode_probs(struct VP9Common *); | 95 void vp9_adapt_mode_probs(struct VP9Common *); |
100 | 96 |
101 #define VP9_SWITCHABLE_FILTERS 2 /* number of switchable filters */ | 97 #define VP9_SWITCHABLE_FILTERS 3 /* number of switchable filters */ |
102 | 98 |
103 extern const INTERPOLATIONFILTERTYPE vp9_switchable_interp | 99 extern const INTERPOLATIONFILTERTYPE vp9_switchable_interp |
104 [VP9_SWITCHABLE_FILTERS]; | 100 [VP9_SWITCHABLE_FILTERS]; |
105 | 101 |
106 extern const int vp9_switchable_interp_map[SWITCHABLE + 1]; | 102 extern const int vp9_switchable_interp_map[SWITCHABLE + 1]; |
107 | 103 |
108 extern const vp9_tree_index vp9_switchable_interp_tree | 104 extern const vp9_tree_index vp9_switchable_interp_tree |
109 [2 * (VP9_SWITCHABLE_FILTERS - 1)]; | 105 [2 * (VP9_SWITCHABLE_FILTERS - 1)]; |
110 | 106 |
111 extern struct vp9_token_struct vp9_switchable_interp_encodings | 107 extern struct vp9_token_struct vp9_switchable_interp_encodings |
112 [VP9_SWITCHABLE_FILTERS]; | 108 [VP9_SWITCHABLE_FILTERS]; |
113 | 109 |
114 extern const vp9_prob vp9_switchable_interp_prob[VP9_SWITCHABLE_FILTERS + 1] | 110 extern const vp9_prob vp9_switchable_interp_prob[VP9_SWITCHABLE_FILTERS + 1] |
115 [VP9_SWITCHABLE_FILTERS - 1]; | 111 [VP9_SWITCHABLE_FILTERS - 1]; |
116 | 112 |
117 #endif | 113 #endif // VP9_COMMON_VP9_ENTROPYMODE_H_ |
OLD | NEW |