| 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 15 matching lines...) Expand all Loading... |
| 26 struct tx_probs { | 26 struct tx_probs { |
| 27 vp9_prob p32x32[TX_SIZE_CONTEXTS][TX_SIZES - 1]; | 27 vp9_prob p32x32[TX_SIZE_CONTEXTS][TX_SIZES - 1]; |
| 28 vp9_prob p16x16[TX_SIZE_CONTEXTS][TX_SIZES - 2]; | 28 vp9_prob p16x16[TX_SIZE_CONTEXTS][TX_SIZES - 2]; |
| 29 vp9_prob p8x8[TX_SIZE_CONTEXTS][TX_SIZES - 3]; | 29 vp9_prob p8x8[TX_SIZE_CONTEXTS][TX_SIZES - 3]; |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 struct tx_counts { | 32 struct tx_counts { |
| 33 unsigned int p32x32[TX_SIZE_CONTEXTS][TX_SIZES]; | 33 unsigned int p32x32[TX_SIZE_CONTEXTS][TX_SIZES]; |
| 34 unsigned int p16x16[TX_SIZE_CONTEXTS][TX_SIZES - 1]; | 34 unsigned int p16x16[TX_SIZE_CONTEXTS][TX_SIZES - 1]; |
| 35 unsigned int p8x8[TX_SIZE_CONTEXTS][TX_SIZES - 2]; | 35 unsigned int p8x8[TX_SIZE_CONTEXTS][TX_SIZES - 2]; |
| 36 unsigned int tx_totals[TX_SIZES]; | |
| 37 }; | 36 }; |
| 38 | 37 |
| 39 typedef struct frame_contexts { | 38 typedef struct frame_contexts { |
| 40 vp9_prob y_mode_prob[BLOCK_SIZE_GROUPS][INTRA_MODES - 1]; | 39 vp9_prob y_mode_prob[BLOCK_SIZE_GROUPS][INTRA_MODES - 1]; |
| 41 vp9_prob uv_mode_prob[INTRA_MODES][INTRA_MODES - 1]; | 40 vp9_prob uv_mode_prob[INTRA_MODES][INTRA_MODES - 1]; |
| 42 vp9_prob partition_prob[PARTITION_CONTEXTS][PARTITION_TYPES - 1]; | 41 vp9_prob partition_prob[PARTITION_CONTEXTS][PARTITION_TYPES - 1]; |
| 43 vp9_coeff_probs_model coef_probs[TX_SIZES][PLANE_TYPES]; | 42 vp9_coeff_probs_model coef_probs[TX_SIZES][PLANE_TYPES]; |
| 44 vp9_prob switchable_interp_prob[SWITCHABLE_FILTER_CONTEXTS] | 43 vp9_prob switchable_interp_prob[SWITCHABLE_FILTER_CONTEXTS] |
| 45 [SWITCHABLE_FILTERS - 1]; | 44 [SWITCHABLE_FILTERS - 1]; |
| 46 vp9_prob inter_mode_probs[INTER_MODE_CONTEXTS][INTER_MODES - 1]; | 45 vp9_prob inter_mode_probs[INTER_MODE_CONTEXTS][INTER_MODES - 1]; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 const PREDICTION_MODE above = vp9_above_block_mode(mi, above_mi, block); | 103 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); | 104 const PREDICTION_MODE left = vp9_left_block_mode(mi, left_mi, block); |
| 106 return vp9_kf_y_mode_prob[above][left]; | 105 return vp9_kf_y_mode_prob[above][left]; |
| 107 } | 106 } |
| 108 | 107 |
| 109 #ifdef __cplusplus | 108 #ifdef __cplusplus |
| 110 } // extern "C" | 109 } // extern "C" |
| 111 #endif | 110 #endif |
| 112 | 111 |
| 113 #endif // VP9_COMMON_VP9_ENTROPYMODE_H_ | 112 #endif // VP9_COMMON_VP9_ENTROPYMODE_H_ |
| OLD | NEW |