mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 12:28:26 +01:00
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:
parent
e0c809ad23
commit
8e517eca68
@ -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,
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user