Merge "VP9: Eliminate up_available and left_available"
[aom.git] / vp8 / encoder / tokenize.h
blobb73a9ee1c896892f5e2947c9446f9691caeb7101
1 /*
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
12 #ifndef VP8_ENCODER_TOKENIZE_H_
13 #define VP8_ENCODER_TOKENIZE_H_
15 #include "vp8/common/entropy.h"
16 #include "block.h"
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
22 void vp8_tokenize_initialize();
24 typedef struct
26 short Token;
27 short Extra;
28 } TOKENVALUE;
30 typedef struct
32 const vp8_prob *context_tree;
33 short Extra;
34 unsigned char Token;
35 unsigned char skip_eob_node;
36 } TOKENEXTRA;
38 int rd_cost_mby(MACROBLOCKD *);
40 #ifdef VP8_ENTROPY_STATS
41 void init_context_counters();
42 void print_context_counters();
44 extern _int64 context_counters[BLOCK_TYPES] [COEF_BANDS] [PREV_COEF_CONTEXTS] [MAX_ENTROPY_TOKENS];
45 #endif
47 extern const short *const vp8_dct_value_cost_ptr;
48 /* TODO: The Token field should be broken out into a separate char array to
49 * improve cache locality, since it's needed for costing when the rest of the
50 * fields are not.
52 extern const TOKENVALUE *const vp8_dct_value_tokens_ptr;
54 #ifdef __cplusplus
55 } // extern "C"
56 #endif
58 #endif // VP8_ENCODER_TOKENIZE_H_