From 02935f5f1b66256700447ae0b6ff11287d276474 Mon Sep 17 00:00:00 2001 From: Jingning Han Date: Wed, 19 Oct 2016 14:52:53 -0700 Subject: [PATCH] Add tx_size to pixel number map Change-Id: I789fa11638f155f1092a1e9260d26c7855d18e37 --- av1/common/common_data.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/av1/common/common_data.h b/av1/common/common_data.h index f6396f55b..4165e3577 100644 --- a/av1/common/common_data.h +++ b/av1/common/common_data.h @@ -442,6 +442,17 @@ static const TX_SIZE txsize_vert_map[TX_SIZES_ALL] = { #endif // CONFIG_EXT_TX }; +static const int tx_size_1d[TX_SIZES] = { 4, 8, 16, 32 }; + +static const int tx_size_2d[TX_SIZES] = { 16, 64, 256, 1024 }; + +static const uint8_t tx_size_1d_log2[TX_SIZES] = { 2, 3, 4, 5 }; + +static const int tx_size_1d_in_unit[TX_SIZES] = { 1, 2, 4, 8 }; + +// TODO(jingning): Temporary table during the construction. +static const int tx_size_1d_in_unit_log2[TX_SIZES] = { 0, 1, 2, 3 }; + static const BLOCK_SIZE txsize_to_bsize[TX_SIZES_ALL] = { BLOCK_4X4, // TX_4X4 BLOCK_8X8, // TX_8X8