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 VPX_VP9_COMMON_VP9_COMMON_DATA_H_ 12 #define VPX_VP9_COMMON_VP9_COMMON_DATA_H_ 13 14 #define INLINE __inline 15 16 #include <stdint.h> 17 #include "vp9_enums.h" 18 19 #ifdef __cplusplus 20 extern "C" { 21 #endif 22 23 extern const uint8_t eb_vp9_b_width_log2_lookup[BLOCK_SIZES]; 24 extern const uint8_t eb_vp9_b_height_log2_lookup[BLOCK_SIZES]; 25 extern const uint8_t eb_vp9_mi_width_log2_lookup[BLOCK_SIZES]; 26 extern const uint8_t eb_vp9_num_8x8_blocks_wide_lookup[BLOCK_SIZES]; 27 extern const uint8_t eb_vp9_num_8x8_blocks_high_lookup[BLOCK_SIZES]; 28 extern const uint8_t eb_vp9_num_4x4_blocks_high_lookup[BLOCK_SIZES]; 29 extern const uint8_t eb_vp9_num_4x4_blocks_wide_lookup[BLOCK_SIZES]; 30 extern const uint8_t eb_vp9_size_group_lookup[BLOCK_SIZES]; 31 extern const uint8_t eb_vp9_num_pels_log2_lookup[BLOCK_SIZES]; 32 extern const PARTITION_TYPE eb_vp9_partition_lookup[][BLOCK_SIZES]; 33 extern const BLOCK_SIZE eb_vp9_subsize_lookup[PARTITION_TYPES][BLOCK_SIZES]; 34 extern const TX_SIZE eb_vp9_max_txsize_lookup[BLOCK_SIZES]; 35 extern const BLOCK_SIZE eb_vp9_txsize_to_bsize[TX_SIZES]; 36 extern const TX_SIZE eb_vp9_tx_mode_to_biggest_tx_size[TX_MODES]; 37 extern const BLOCK_SIZE eb_vp9_ss_size_lookup[BLOCK_SIZES][2][2]; 38 extern const TX_SIZE eb_vp9_uv_txsize_lookup[BLOCK_SIZES][TX_SIZES][2][2]; 39 #if CONFIG_BETTER_HW_COMPATIBILITY && CONFIG_VP9_HIGHBITDEPTH 40 extern const uint8_t need_top_left[INTRA_MODES]; 41 #endif // CONFIG_BETTER_HW_COMPATIBILITY && CONFIG_VP9_HIGHBITDEPTH 42 43 #ifdef __cplusplus 44 } // extern "C" 45 #endif 46 47 #endif // VPX_VP9_COMMON_VP9_COMMON_DATA_H_ 48