1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/libvpx/vp8/encoder/tokenize.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,50 @@ 1.4 +/* 1.5 + * Copyright (c) 2010 The WebM project authors. All Rights Reserved. 1.6 + * 1.7 + * Use of this source code is governed by a BSD-style license 1.8 + * that can be found in the LICENSE file in the root of the source 1.9 + * tree. An additional intellectual property rights grant can be found 1.10 + * in the file PATENTS. All contributing project authors may 1.11 + * be found in the AUTHORS file in the root of the source tree. 1.12 + */ 1.13 + 1.14 + 1.15 +#ifndef tokenize_h 1.16 +#define tokenize_h 1.17 + 1.18 +#include "vp8/common/entropy.h" 1.19 +#include "block.h" 1.20 + 1.21 +void vp8_tokenize_initialize(); 1.22 + 1.23 +typedef struct 1.24 +{ 1.25 + short Token; 1.26 + short Extra; 1.27 +} TOKENVALUE; 1.28 + 1.29 +typedef struct 1.30 +{ 1.31 + const vp8_prob *context_tree; 1.32 + short Extra; 1.33 + unsigned char Token; 1.34 + unsigned char skip_eob_node; 1.35 +} TOKENEXTRA; 1.36 + 1.37 +int rd_cost_mby(MACROBLOCKD *); 1.38 + 1.39 +#ifdef VP8_ENTROPY_STATS 1.40 +void init_context_counters(); 1.41 +void print_context_counters(); 1.42 + 1.43 +extern _int64 context_counters[BLOCK_TYPES] [COEF_BANDS] [PREV_COEF_CONTEXTS] [MAX_ENTROPY_TOKENS]; 1.44 +#endif 1.45 + 1.46 +extern const short *const vp8_dct_value_cost_ptr; 1.47 +/* TODO: The Token field should be broken out into a separate char array to 1.48 + * improve cache locality, since it's needed for costing when the rest of the 1.49 + * fields are not. 1.50 + */ 1.51 +extern const TOKENVALUE *const vp8_dct_value_tokens_ptr; 1.52 + 1.53 +#endif /* tokenize_h */