Reduce memory usage of txk_type[]
Reduce the array size from 1024 to 64.
On a cif video, encoder memory usage drops from 368 to 311 MB;
decoder memory usage drops from 17.6 to 9.1 MB.
Tested 30 frames on lowres, compression stats remain identical.
Change-Id: I3b95bc8d3e57e1074751d81531bb9f79b195506e
diff --git a/av1/encoder/block.h b/av1/encoder/block.h
index 7579213..49509b7 100644
--- a/av1/encoder/block.h
+++ b/av1/encoder/block.h
@@ -108,7 +108,7 @@
TX_SIZE inter_tx_size[INTER_TX_SIZE_BUF_LEN];
uint8_t blk_skip[MAX_MIB_SIZE * MAX_MIB_SIZE * 8];
#if CONFIG_TXK_SEL
- TX_TYPE txk_type[MAX_SB_SQUARE / (TX_SIZE_W_MIN * TX_SIZE_H_MIN)];
+ TX_TYPE txk_type[TXK_TYPE_BUF_LEN];
#endif // CONFIG_TXK_SEL
RD_STATS rd_stats;
uint32_t hash_value;