bit_reader/kVP8NewRange: range_t -> uint8_t

decreases the size of each entry from 4 bytes to 1.

Change-Id: I3e6a50bcbc279e5edfa411edb97b04300dedc7ae
This commit is contained in:
James Zern 2014-11-24 19:30:01 -08:00
parent e0c809ad23
commit 8e517eca68
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ const uint8_t kVP8Log2Range[128] = {
}; };
// range = ((range - 1) << kVP8Log2Range[range]) + 1 // range = ((range - 1) << kVP8Log2Range[range]) + 1
const range_t kVP8NewRange[128] = { const uint8_t kVP8NewRange[128] = {
127, 127, 191, 127, 159, 191, 223, 127, 127, 127, 191, 127, 159, 191, 223, 127,
143, 159, 175, 191, 207, 223, 239, 127, 143, 159, 175, 191, 207, 223, 239, 127,
135, 143, 151, 159, 167, 175, 183, 191, 135, 143, 151, 159, 167, 175, 183, 191,

View File

@ -46,7 +46,7 @@ typedef uint8_t lbit_t;
#endif #endif
extern const uint8_t kVP8Log2Range[128]; extern const uint8_t kVP8Log2Range[128];
extern const range_t kVP8NewRange[128]; extern const uint8_t kVP8NewRange[128];
// special case for the tail byte-reading // special case for the tail byte-reading
void VP8LoadFinalBytes(VP8BitReader* const br); void VP8LoadFinalBytes(VP8BitReader* const br);