Home | History | Annotate | Download | only in zopfli

Lines Matching refs:length

30   lmc->length = (unsigned short*)malloc(sizeof(unsigned short) * blocksize);
35 /* length > 0 and dist 0 is invalid combination, which indicates on purpose
37 for (i = 0; i < blocksize; i++) lmc->length[i] = 1;
43 free(lmc->length);
49 size_t pos, size_t length,
61 if (length < 3) return;
62 for (i = 3; i <= length; i++) {
63 if (i == length || sublen[i] != sublen[i + 1]) {
73 assert(bestlength == length);
76 assert(bestlength <= length);
78 assert(bestlength == ZopfliMaxCachedSublen(lmc, pos, length));
82 size_t pos, size_t length,
85 unsigned maxlength = ZopfliMaxCachedSublen(lmc, pos, length);
91 if (length < 3) return;
94 unsigned length = cache[j * 3] + 3;
96 for (i = prevlength; i <= length; i++) {
99 if (length == maxlength) break;
100 prevlength = length + 1;
105 Returns the length up to which could be stored in the cache.
108 size_t pos, size_t length) {
114 (void)length;