1/* 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. 3 * 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 */ 10 11#ifndef VP9_COMMON_VP9_COMMON_DATA_H_ 12#define VP9_COMMON_VP9_COMMON_DATA_H_ 13 14#include "vp9/common/vp9_enums.h" 15 16#ifdef __cplusplus 17extern "C" { 18#endif 19 20extern const int b_width_log2_lookup[BLOCK_SIZES]; 21extern const int b_height_log2_lookup[BLOCK_SIZES]; 22extern const int mi_width_log2_lookup[BLOCK_SIZES]; 23extern const int num_8x8_blocks_wide_lookup[BLOCK_SIZES]; 24extern const int num_8x8_blocks_high_lookup[BLOCK_SIZES]; 25extern const int num_4x4_blocks_high_lookup[BLOCK_SIZES]; 26extern const int num_4x4_blocks_wide_lookup[BLOCK_SIZES]; 27extern const int size_group_lookup[BLOCK_SIZES]; 28extern const int num_pels_log2_lookup[BLOCK_SIZES]; 29extern const PARTITION_TYPE partition_lookup[][BLOCK_SIZES]; 30extern const BLOCK_SIZE subsize_lookup[PARTITION_TYPES][BLOCK_SIZES]; 31extern const TX_SIZE max_txsize_lookup[BLOCK_SIZES]; 32extern const BLOCK_SIZE txsize_to_bsize[TX_SIZES]; 33extern const TX_SIZE tx_mode_to_biggest_tx_size[TX_MODES]; 34extern const BLOCK_SIZE ss_size_lookup[BLOCK_SIZES][2][2]; 35 36#ifdef __cplusplus 37} // extern "C" 38#endif 39 40#endif // VP9_COMMON_VP9_COMMON_DATA_H_ 41