commit | cdbe7085810a00ef1acd28d42a767d487237f14b | [log] [tgz] |
---|---|---|
author | Urvang Joshi <urvang@google.com> | Thu Jan 26 13:06:49 2017 -0800 |
committer | Urvang Joshi <urvang@google.com> | Mon Jan 30 17:48:46 2017 +0000 |
tree | 1a06c26e1523f56dd647f9b798c9d2f03b8eec52 | |
parent | 199a2f40522f8912d980fd70f41ccf4d6330fd24 [diff] |
Palette Optimization: O(1) context lookup. Now that we have small number of contexts (5), use hash multipliers (instead of base 11), so that color context hash is within a small range. This allows us to use a lookup table to get color context instead of a for loop. Output bitstreams are bit-exact, so no change in compression. Change-Id: I8cd8c893048c2fc6b22ccbd56f652d11486e2ee9