mirror of
https://github.com/badvision/lawless-legends.git
synced 2025-08-12 02:25:10 +00:00
Fixed comment
This commit is contained in:
@@ -1232,7 +1232,7 @@ class A2PackPartitions
|
|||||||
//lx47.decompress(outputData, 0, uncomp, 0, inLen)
|
//lx47.decompress(outputData, 0, uncomp, 0, inLen)
|
||||||
//assert uncomp == inputData
|
//assert uncomp == inputData
|
||||||
|
|
||||||
// Test overlapped decompression
|
// Verify the stream comes out right with overlapped decompression
|
||||||
def underlap = 2
|
def underlap = 2
|
||||||
def buf = new byte[inLen+underlap]
|
def buf = new byte[inLen+underlap]
|
||||||
def initialOffset = inLen - outputData.length + underlap;
|
def initialOffset = inLen - outputData.length + underlap;
|
||||||
|
@@ -51,7 +51,7 @@ public class Lx47Algorithm
|
|||||||
int countEliasExpGammaBits(int value, int exp) {
|
int countEliasExpGammaBits(int value, int exp) {
|
||||||
return (exp==0) ? countEliasGammaBits(value) : (countEliasGammaBits((value >> exp) + 1) + exp);
|
return (exp==0) ? countEliasGammaBits(value) : (countEliasGammaBits((value >> exp) + 1) + exp);
|
||||||
}
|
}
|
||||||
|
|
||||||
int countSeqBits(int prevLits, int offset, int len) {
|
int countSeqBits(int prevLits, int offset, int len) {
|
||||||
return (prevLits>0 ? 0 : 1)
|
return (prevLits>0 ? 0 : 1)
|
||||||
+ countEliasExpGammaBits(offset, OFFSET_EXP_BITS)
|
+ countEliasExpGammaBits(offset, OFFSET_EXP_BITS)
|
||||||
|
Reference in New Issue
Block a user