diff options
author | Alex Converse <aconverse@google.com> | 2015-10-27 10:25:30 -0700 |
---|---|---|
committer | Alex Converse <aconverse@google.com> | 2015-10-27 12:08:23 -0700 |
commit | a736bf6bfb66d08848b114344731c4e04ac5066d (patch) | |
tree | aeef252c52b7f6da8b13d1651f9b46943c0df823 /vp10/encoder | |
parent | 89d10d8f3fd4e216686ead15b0165afc4d1152d0 (diff) | |
download | libvpx-a736bf6bfb66d08848b114344731c4e04ac5066d.tar libvpx-a736bf6bfb66d08848b114344731c4e04ac5066d.tar.gz libvpx-a736bf6bfb66d08848b114344731c4e04ac5066d.tar.bz2 libvpx-a736bf6bfb66d08848b114344731c4e04ac5066d.zip |
Shrink probability remap tables.
Saves 2288 bytes in vp8+vp9 libvpx.a.
Change-Id: Iaa5712e59a9693ed58cea63de63781a96827e44e
Diffstat (limited to 'vp10/encoder')
-rw-r--r-- | vp10/encoder/subexp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vp10/encoder/subexp.c b/vp10/encoder/subexp.c index fd0b09b69..0d1f1d629 100644 --- a/vp10/encoder/subexp.c +++ b/vp10/encoder/subexp.c @@ -16,7 +16,7 @@ #define vp10_cost_upd256 ((int)(vp10_cost_one(upd) - vp10_cost_zero(upd))) -static const int update_bits[255] = { +static const uint8_t update_bits[255] = { 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, @@ -46,7 +46,7 @@ static int recenter_nonneg(int v, int m) { static int remap_prob(int v, int m) { int i; - static const int map_table[MAX_PROB - 1] = { + static const uint8_t map_table[MAX_PROB - 1] = { // generated by: // map_table[j] = split_index(j, MAX_PROB - 1, MODULUS_PARAM); 20, 21, 22, 23, 24, 25, 0, 26, 27, 28, 29, 30, 31, 32, 33, |