diff options
author | Henrik Gramner <gramner@twoorioles.com> | 2019-08-06 16:17:31 +0300 |
---|---|---|
committer | Henrik Gramner <henrik@gramner.com> | 2019-08-13 19:51:49 +0300 |
commit | e29fd5c0016fec27c88a36ac6f6eaaf416d91330 (patch) | |
tree | c0bb371a91af5abbe470751189e35dcee5f8314b /src/tables.c | |
parent | a819653e1b71ea69c13faaa64c5bb89534ce2772 (diff) |
Add msac optimizations
* Eliminate the trailing zero after the CDF probabilities. We can
reuse the count value as a terminator instead. This reduces the
size of the CDF context by around 8%.
* Align the CDF arrays.
* Various other minor optimizations.
Diffstat (limited to 'src/tables.c')
-rw-r--r-- | src/tables.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tables.c b/src/tables.c index 4f8c623..38ea6aa 100644 --- a/src/tables.c +++ b/src/tables.c @@ -225,6 +225,14 @@ const uint8_t /* enum InterPredMode */ [NEARMV_NEWMV] = { NEARMV, NEWMV }, }; +const uint8_t dav1d_partition_type_count[N_BL_LEVELS] = { + [BL_128X128] = N_PARTITIONS - 3, + [BL_64X64] = N_PARTITIONS - 1, + [BL_32X32] = N_PARTITIONS - 1, + [BL_16X16] = N_PARTITIONS - 1, + [BL_8X8] = N_SUB8X8_PARTITIONS - 1, +}; + const uint8_t /* enum TxfmType */ dav1d_tx_types_per_set[40] = { /* Intra2 */ IDTX, DCT_DCT, ADST_ADST, ADST_DCT, DCT_ADST, |