michael@0: /* michael@0: * Copyright (c) 2010 The WebM project authors. All Rights Reserved. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license michael@0: * that can be found in the LICENSE file in the root of the source michael@0: * tree. An additional intellectual property rights grant can be found michael@0: * in the file PATENTS. All contributing project authors may michael@0: * be found in the AUTHORS file in the root of the source tree. michael@0: */ michael@0: michael@0: #ifndef VP9_ENCODER_VP9_TOKENIZE_H_ michael@0: #define VP9_ENCODER_VP9_TOKENIZE_H_ michael@0: michael@0: #include "vp9/common/vp9_entropy.h" michael@0: #include "vp9/encoder/vp9_block.h" michael@0: michael@0: void vp9_tokenize_initialize(); michael@0: michael@0: typedef struct { michael@0: int16_t token; michael@0: int16_t extra; michael@0: } TOKENVALUE; michael@0: michael@0: typedef struct { michael@0: const vp9_prob *context_tree; michael@0: int16_t extra; michael@0: uint8_t token; michael@0: uint8_t skip_eob_node; michael@0: } TOKENEXTRA; michael@0: michael@0: int vp9_sb_is_skippable(MACROBLOCKD *xd, BLOCK_SIZE bsize); michael@0: int vp9_is_skippable_in_plane(MACROBLOCKD *xd, BLOCK_SIZE bsize, michael@0: int plane); michael@0: struct VP9_COMP; michael@0: michael@0: void vp9_tokenize_sb(struct VP9_COMP *cpi, TOKENEXTRA **t, int dry_run, michael@0: BLOCK_SIZE bsize); michael@0: michael@0: extern const int *vp9_dct_value_cost_ptr; michael@0: /* TODO: The Token field should be broken out into a separate char array to michael@0: * improve cache locality, since it's needed for costing when the rest of the michael@0: * fields are not. michael@0: */ michael@0: extern const TOKENVALUE *vp9_dct_value_tokens_ptr; michael@0: michael@0: #endif // VP9_ENCODER_VP9_TOKENIZE_H_