Lines Matching full:distance

640 /*the distance codes have their own symbols, 30 used, 2 unused*/
657 /*the base backwards distances (the bits of distance codes appear after length codes and use their …
806 appear at all, but such huffman tree could still exist (e.g. if distance in HuffmanTree_makeTable()
1118 /*get the distance code tree of a deflated block with fixed tree, as specified in the deflate speci…
1125 /*there are 32 distance codes, but 30-31 are unused*/ in generateFixedDistanceTree()
1191 /*number of distance codes. Unlike the spec, the value 1 is added to it here already*/ in getTreeInflateDynamic()
1316 HuffmanTree tree_d; /*the huffman tree for distance codes*/ in inflateHuffmanBlock()
1346 unsigned code_d, distance; in inflateHuffmanBlock() local
1347 unsigned numextrabits_l, numextrabits_d; /*extra bits for length and distance*/ in inflateHuffmanBlock()
1361 /*part 3: get distance code*/ in inflateHuffmanBlock()
1366 ERROR_BREAK(18); /*error: invalid distance code (30-31 are never used)*/ in inflateHuffmanBlock()
1372 distance = DISTANCEBASE[code_d]; in inflateHuffmanBlock()
1374 /*part 4: get extra bits from distance*/ in inflateHuffmanBlock()
1378 distance += readBits(reader, numextrabits_d); in inflateHuffmanBlock()
1383 if(distance > start) ERROR_BREAK(52); /*too long backward distance*/ in inflateHuffmanBlock()
1384 backward = start - distance; in inflateHuffmanBlock()
1387 if(distance < length) { in inflateHuffmanBlock()
1389 lodepng_memcpy(out->data + start, out->data + backward, distance); in inflateHuffmanBlock()
1390 start += distance; in inflateHuffmanBlock()
1391 for(forward = distance; forward < length; ++forward) { in inflateHuffmanBlock()
1548 static void addLengthDistance(uivector * values, size_t length, size_t distance) in addLengthDistance() argument
1553 …257-285: length/distance pair (length code, followed by extra length bits, distance code, extra di… in addLengthDistance()
1558 unsigned dist_code = (unsigned)searchCodeIndex(DISTANCEBASE, 30, distance); in addLengthDistance()
1559 unsigned extra_distance = (unsigned)(distance - DISTANCEBASE[dist_code]); in addLengthDistance()
1676 length/distance pairs.
1695 unsigned offset; /*the offset represents the distance in LZ77 terminology*/ in encodeLZ77()
1808 /*encode it as length/distance pair or literal value*/ in encodeLZ77()
1809 if(length < 3) { /*only lengths of 3 or higher are supported as length/distance pair*/ in encodeLZ77()
1877 tree_d: the tree for distance codes.
1913 literal bytes and length/distance pairs. This is then huffman compressed with in deflateDynamic()
1922 …/*The lz77 encoded data, represented with integers since there will also be length and distance co… in deflateDynamic()
1925 HuffmanTree tree_d; /*tree for distance codes*/ in deflateDynamic()
2075 - HDIST + 1 code lengths of distance alphabet (encoded using the code length in deflateDynamic()
2139 HuffmanTree tree_d; /*tree for distance codes*/ in deflateFixed()
7226 return "invalid distance code while inflating"; in lodepng_error_text()