94c481f9f1
Implements some of the helper functions more efficiently with lookups rathers than branches. Modeling function is consolidated to reduce some computations. Also merged the two enums BLOCK_SIZE_TYPES and BlockSize into one because there is no need to keep them separate (even though the semantics are a little different). No bitstream or output change. About 0.5% speedup Change-Id: I7d71a66e8031ddb340744dc493f22976052b8f9f
26 lines
1.0 KiB
C
26 lines
1.0 KiB
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.
|
|
*/
|
|
|
|
#ifndef VP9_COMMON_VP9_COMMON_DATA_H_
|
|
#define VP9_COMMON_VP9_COMMON_DATA_H_
|
|
|
|
#include "vp9/common/vp9_enums.h"
|
|
|
|
extern const int b_width_log2_lookup[BLOCK_SIZE_TYPES];
|
|
extern const int b_height_log2_lookup[BLOCK_SIZE_TYPES];
|
|
extern const int mi_width_log2_lookup[BLOCK_SIZE_TYPES];
|
|
extern const int mi_height_log2_lookup[BLOCK_SIZE_TYPES];
|
|
extern const BLOCK_SIZE_TYPE subsize_lookup[PARTITION_TYPES][BLOCK_SIZE_TYPES];
|
|
extern const TX_SIZE max_txsize_lookup[BLOCK_SIZE_TYPES];
|
|
extern const TX_SIZE max_uv_txsize_lookup[BLOCK_SIZE_TYPES];
|
|
extern const BLOCK_SIZE_TYPE bsize_from_dim_lookup[5][5];
|
|
|
|
#endif // VP9_COMMON_VP9_COMMON_DATA_H
|