1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/libvpx/vp9/encoder/vp9_tokenize.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,46 @@ 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 +#ifndef VP9_ENCODER_VP9_TOKENIZE_H_ 1.15 +#define VP9_ENCODER_VP9_TOKENIZE_H_ 1.16 + 1.17 +#include "vp9/common/vp9_entropy.h" 1.18 +#include "vp9/encoder/vp9_block.h" 1.19 + 1.20 +void vp9_tokenize_initialize(); 1.21 + 1.22 +typedef struct { 1.23 + int16_t token; 1.24 + int16_t extra; 1.25 +} TOKENVALUE; 1.26 + 1.27 +typedef struct { 1.28 + const vp9_prob *context_tree; 1.29 + int16_t extra; 1.30 + uint8_t token; 1.31 + uint8_t skip_eob_node; 1.32 +} TOKENEXTRA; 1.33 + 1.34 +int vp9_sb_is_skippable(MACROBLOCKD *xd, BLOCK_SIZE bsize); 1.35 +int vp9_is_skippable_in_plane(MACROBLOCKD *xd, BLOCK_SIZE bsize, 1.36 + int plane); 1.37 +struct VP9_COMP; 1.38 + 1.39 +void vp9_tokenize_sb(struct VP9_COMP *cpi, TOKENEXTRA **t, int dry_run, 1.40 + BLOCK_SIZE bsize); 1.41 + 1.42 +extern const int *vp9_dct_value_cost_ptr; 1.43 +/* TODO: The Token field should be broken out into a separate char array to 1.44 + * improve cache locality, since it's needed for costing when the rest of the 1.45 + * fields are not. 1.46 + */ 1.47 +extern const TOKENVALUE *vp9_dct_value_tokens_ptr; 1.48 + 1.49 +#endif // VP9_ENCODER_VP9_TOKENIZE_H_