mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 13:48:21 +01:00
0.1 % speedup to decoding
Change-Id: If2add8a8b6f339f1d4b6a9581ce8d3d0f792d372
This commit is contained in:
parent
c606182edd
commit
b7346a1ed2
@ -171,11 +171,11 @@ static WEBP_INLINE int ReadSymbol(const HuffmanTree* tree,
|
||||
|
||||
// Decode the value from a binary tree.
|
||||
assert(node != NULL);
|
||||
while (HuffmanTreeNodeIsNotLeaf(node)) {
|
||||
do {
|
||||
node = HuffmanTreeNextNode(node, bits & 1);
|
||||
bits >>= 1;
|
||||
++bitpos;
|
||||
}
|
||||
} while (HuffmanTreeNodeIsNotLeaf(node));
|
||||
VP8LSetBitPos(br, bitpos);
|
||||
return node->symbol_;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user