mirror of
https://github.com/google/brotli.git
synced 2024-11-09 21:50:07 +00:00
Use consistent bit convention in Section 5.
* Rather than say "lower 3 bits" in one sentence and "bits 3-5" in the sentence right after, just consistently use the same convention and say "0-2" and "3-5".
This commit is contained in:
parent
0e4cb52a8b
commit
6d2575eab3
@ -964,13 +964,14 @@ and a copy length code, the following table can be used:
|
||||
|
||||
First, look up the cell with the 64 value range containing the
|
||||
insert-and-copy length code, this gives the insert length code and
|
||||
the copy length code ranges, both 8 values long. The copy length
|
||||
code within its range is determined by the lowest 3 bits of the
|
||||
insert-and-copy length code, and the insert length code within its
|
||||
range is determined by bits 3-5 (counted from the LSB) of the insert-
|
||||
and-copy length code. Given the insert length and copy length codes,
|
||||
the actual insert and copy lengths can be obtained by reading the
|
||||
number of extra bits given by the tables above.
|
||||
the copy length code ranges, both 8 values long.
|
||||
The copy length code within its range is determined by bits 0-2
|
||||
(counted from the LSB) of the insert-and-copy length code.
|
||||
The insert length code within its range is determined by bits 3-5
|
||||
(counted from the LSB) of the insert-and-copy length code.
|
||||
Given the insert length and copy length codes, the actual insert
|
||||
and copy lengths can be obtained by reading the number of extra
|
||||
bits given by the tables above.
|
||||
|
||||
If the insert-and-copy length code is between 0 and 127, the distance
|
||||
code of the command is set to zero (the last distance reused).
|
||||
|
Loading…
Reference in New Issue
Block a user