Commit 25f9771e authored by Yaowu Xu's avatar Yaowu Xu

Reduce size of TX_SIZE for msvc

MSVC always use int for enum type, this caused the TX_SIZE to be a
4-byte type. This commit is a work around for MSVC to reduce the size
of memory usage.

Change-Id: I5383ca632ccef9951d87e678d505a0918eab1a76
parent 09723813
......@@ -194,7 +194,12 @@ typedef char PARTITION_CONTEXT;
#endif
// block transform size
#if defined(_MSC_VER)
typedef uint8_t TX_SIZE;
enum ATTRIBUTE_PACKED {
#else
typedef enum ATTRIBUTE_PACKED {
#endif
TX_4X4, // 4x4 transform
TX_8X8, // 8x8 transform
TX_16X16, // 16x16 transform
......@@ -219,7 +224,11 @@ typedef enum ATTRIBUTE_PACKED {
TX_SIZES_ALL, // Includes rectangular transforms
TX_SIZES = TX_4X8, // Does NOT include rectangular transforms
TX_INVALID = 255 // Invalid transform size
#if defined(_MSC_VER)
};
#else
} TX_SIZE;
#endif
#define TX_SIZE_LUMA_MIN (TX_4X4)
/* We don't need to code a transform size unless the allowed size is at least
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment