mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-18 23:09:52 +02:00
move RemapBitReader() from idec.c to bit_reader code
mostly for coherency and later patch. Change-Id: Ica8352d67845b6c5b3153435edfb4646c6f24341
This commit is contained in:
@ -35,6 +35,13 @@ void VP8InitBitReader(VP8BitReader* const br,
|
||||
br->eof_ = 0;
|
||||
}
|
||||
|
||||
void VP8RemapBitReader(VP8BitReader* const br, ptrdiff_t offset) {
|
||||
if (br->buf_ != NULL) {
|
||||
br->buf_ += offset;
|
||||
br->buf_end_ += offset;
|
||||
}
|
||||
}
|
||||
|
||||
const uint8_t kVP8Log2Range[128] = {
|
||||
7, 6, 6, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4,
|
||||
3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
||||
|
Reference in New Issue
Block a user