chromium/third_party/libvpx/source/libvpx/vp9/common/vp9_common_data.c

/*
 *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */

#include "vp9/common/vp9_common_data.h"
#include "vpx_dsp/vpx_dsp_common.h"

// Log 2 conversion lookup tables for block width and height
const uint8_t b_width_log2_lookup[BLOCK_SIZES] =;
const uint8_t b_height_log2_lookup[BLOCK_SIZES] =;
const uint8_t num_4x4_blocks_wide_lookup[BLOCK_SIZES] =;
const uint8_t num_4x4_blocks_high_lookup[BLOCK_SIZES] =;
// Log 2 conversion lookup tables for modeinfo width and height
const uint8_t mi_width_log2_lookup[BLOCK_SIZES] =;
const uint8_t num_8x8_blocks_wide_lookup[BLOCK_SIZES] =;
const uint8_t num_8x8_blocks_high_lookup[BLOCK_SIZES] =;

// VPXMIN(3, VPXMIN(b_width_log2_lookup(bsize), b_height_log2_lookup(bsize)))
const uint8_t size_group_lookup[BLOCK_SIZES] =;

const uint8_t num_pels_log2_lookup[BLOCK_SIZES] =;

const PARTITION_TYPE partition_lookup[][BLOCK_SIZES] =;

const BLOCK_SIZE subsize_lookup[PARTITION_TYPES][BLOCK_SIZES] =;

const TX_SIZE max_txsize_lookup[BLOCK_SIZES] =;

const BLOCK_SIZE txsize_to_bsize[TX_SIZES] =;

const TX_SIZE tx_mode_to_biggest_tx_size[TX_MODES] =;

const BLOCK_SIZE ss_size_lookup[BLOCK_SIZES][2][2] =;

const TX_SIZE uv_txsize_lookup[BLOCK_SIZES][TX_SIZES][2][2] =;

// Generates 4 bit field in which each bit set to 1 represents
// a blocksize partition  1111 means we split 64x64, 32x32, 16x16
// and 8x8.  1000 means we just split the 64x64 to 32x32
const struct {} partition_context_lookup[BLOCK_SIZES] =;

#if CONFIG_BETTER_HW_COMPATIBILITY && CONFIG_VP9_HIGHBITDEPTH
const uint8_t need_top_left[INTRA_MODES] = {
  0,  // DC_PRED
  0,  // V_PRED
  0,  // H_PRED
  0,  // D45_PRED
  1,  // D135_PRED
  1,  // D117_PRED
  1,  // D153_PRED
  0,  // D207_PRED
  0,  // D63_PRED
  1,  // TM_PRED
};
#endif  // CONFIG_BETTER_HW_COMPATIBILITY && CONFIG_VP9_HIGHBITDEPTH