Lines Matching refs:lz77_encoded
1781 static void writeLZ77data(LodePNGBitWriter* writer, const uivector* lz77_encoded, in writeLZ77data() argument
1784 for(i = 0; i != lz77_encoded->size; ++i) { in writeLZ77data()
1785 unsigned val = lz77_encoded->data[i]; in writeLZ77data()
1790 unsigned length_extra_bits = lz77_encoded->data[++i]; in writeLZ77data()
1792 unsigned distance_code = lz77_encoded->data[++i]; in writeLZ77data()
1796 unsigned distance_extra_bits = lz77_encoded->data[++i]; in writeLZ77data()
1823 uivector lz77_encoded; in deflateDynamic() local
1848 uivector_init(&lz77_encoded); in deflateDynamic()
1867 error = encodeLZ77(&lz77_encoded, hash, data, datapos, dataend, settings->windowsize, in deflateDynamic()
1871 if(!uivector_resize(&lz77_encoded, datasize)) ERROR_BREAK(83 /*alloc fail*/); in deflateDynamic()
1872 …for(i = datapos; i < dataend; ++i) lz77_encoded.data[i - datapos] = data[i]; /*no LZ77, but still … in deflateDynamic()
1876 for(i = 0; i != lz77_encoded.size; ++i) { in deflateDynamic()
1877 unsigned symbol = lz77_encoded.data[i]; in deflateDynamic()
1880 unsigned dist = lz77_encoded.data[i + 2]; in deflateDynamic()
2004 writeLZ77data(writer, &lz77_encoded, &tree_ll, &tree_d); in deflateDynamic()
2015 uivector_cleanup(&lz77_encoded); in deflateDynamic()
2051 uivector lz77_encoded; in deflateFixed() local
2052 uivector_init(&lz77_encoded); in deflateFixed()
2053 error = encodeLZ77(&lz77_encoded, hash, data, datapos, dataend, settings->windowsize, in deflateFixed()
2055 if(!error) writeLZ77data(writer, &lz77_encoded, &tree_ll, &tree_d); in deflateFixed()
2056 uivector_cleanup(&lz77_encoded); in deflateFixed()