| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010 The VP8 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 | 11 |
| 12 #ifndef tokenize_h | 12 #ifndef tokenize_h |
| 13 #define tokenize_h | 13 #define tokenize_h |
| 14 | 14 |
| 15 #include "entropy.h" | 15 #include "entropy.h" |
| 16 #include "block.h" | 16 #include "block.h" |
| 17 | 17 |
| 18 void vp8_tokenize_initialize(); | 18 void vp8_tokenize_initialize(); |
| 19 | 19 |
| 20 typedef struct | 20 typedef struct |
| 21 { | 21 { |
| 22 short Token; |
| 23 short Extra; |
| 24 } TOKENVALUE; |
| 25 |
| 26 typedef struct |
| 27 { |
| 22 int Token; | 28 int Token; |
| 23 int Extra; | 29 int Extra; |
| 24 const vp8_prob *context_tree; | 30 const vp8_prob *context_tree; |
| 25 int skip_eob_node; | 31 int skip_eob_node; |
| 26 int section; | 32 int section; |
| 27 } TOKENEXTRA; | 33 } TOKENEXTRA; |
| 28 | 34 |
| 29 int rd_cost_mby(MACROBLOCKD *); | 35 int rd_cost_mby(MACROBLOCKD *); |
| 30 | 36 |
| 31 #ifdef ENTROPY_STATS | 37 #ifdef ENTROPY_STATS |
| 32 void init_context_counters(); | 38 void init_context_counters(); |
| 33 void print_context_counters(); | 39 void print_context_counters(); |
| 34 | 40 |
| 35 extern _int64 context_counters[BLOCK_TYPES] [COEF_BANDS] [PREV_COEF_CONTEXTS] [v
p8_coef_tokens]; | 41 extern _int64 context_counters[BLOCK_TYPES] [COEF_BANDS] [PREV_COEF_CONTEXTS] [v
p8_coef_tokens]; |
| 36 #endif | 42 #endif |
| 37 | 43 |
| 38 extern const int *vp8_dct_value_cost_ptr; | 44 extern const int *vp8_dct_value_cost_ptr; |
| 39 /* TODO: The Token field should be broken out into a separate char array to | 45 /* TODO: The Token field should be broken out into a separate char array to |
| 40 * improve cache locality, since it's needed for costing when the rest of the | 46 * improve cache locality, since it's needed for costing when the rest of the |
| 41 * fields are not. | 47 * fields are not. |
| 42 */ | 48 */ |
| 43 extern const TOKENEXTRA *vp8_dct_value_tokens_ptr; | 49 extern const TOKENVALUE *vp8_dct_value_tokens_ptr; |
| 44 | 50 |
| 45 #endif /* tokenize_h */ | 51 #endif /* tokenize_h */ |
| OLD | NEW |