Lines Matching refs:windowsize
1590 static unsigned hash_init(Hash * hash, unsigned windowsize) in hash_init() argument
1594 hash->val = (int *)lodepng_malloc(sizeof(int) * windowsize); in hash_init()
1595 hash->chain = (unsigned short *)lodepng_malloc(sizeof(unsigned short) * windowsize); in hash_init()
1597 hash->zeros = (unsigned short *)lodepng_malloc(sizeof(unsigned short) * windowsize); in hash_init()
1599 hash->chainz = (unsigned short *)lodepng_malloc(sizeof(unsigned short) * windowsize); in hash_init()
1607 for(i = 0; i != windowsize; ++i) hash->val[i] = -1; in hash_init()
1608 …for(i = 0; i != windowsize; ++i) hash->chain[i] = i; /*same value as index indicates uninitialized… in hash_init()
1611 …for(i = 0; i != windowsize; ++i) hash->chainz[i] = i; /*same value as index indicates uninitialize… in hash_init()
1683 … const unsigned char * in, size_t inpos, size_t insize, unsigned windowsize, in encodeLZ77() argument
1689 unsigned maxchainlength = windowsize >= 8192 ? windowsize : windowsize / 8u; in encodeLZ77()
1690 unsigned maxlazymatch = windowsize >= 8192 ? MAX_SUPPORTED_DEFLATE_LENGTH : 64; in encodeLZ77()
1705 …if(windowsize == 0 || windowsize > 32768) return 60; /*error: windowsize smaller/larger than allow… in encodeLZ77()
1706 if((windowsize & (windowsize - 1)) != 0) return 90; /*error: must be power of two*/ in encodeLZ77()
1711 size_t wpos = pos & (windowsize - 1); /*position for in 'circular' hash buffers*/ in encodeLZ77()
1738 … current_offset = (unsigned)(hashpos <= wpos ? wpos - hashpos : wpos - hashpos + windowsize); in encodeLZ77()
1806 … if(length >= 3 && offset > windowsize) ERROR_BREAK(86 /*too big (or overflown negative) offset*/); in encodeLZ77()
1821 wpos = pos & (windowsize - 1); in encodeLZ77()
1967 error = encodeLZ77(&lz77_encoded, hash, data, datapos, dataend, settings->windowsize, in deflateDynamic()
2159 error = encodeLZ77(&lz77_encoded, hash, data, datapos, dataend, settings->windowsize, in deflateFixed()
2203 error = hash_init(&hash, settings->windowsize); in lodepng_deflatev()
2459 settings->windowsize = DEFAULT_WINDOWSIZE; in lodepng_compress_settings_init()