Home | History | Annotate | Download | only in zlib-1.2.3

Lines Matching refs:Len

159 local void copy_block     OF((deflate_state *s, charf *buf, unsigned len,
167 # define send_code(s, c, tree) send_bits(s, tree[c].Code, tree[c].Len)
173 send_bits(s, tree[c].Code, tree[c].Len); }
218 { int len = length;\
219 if (s->bi_valid > (int)Buf_size - len) {\
224 s->bi_valid += len - Buf_size;\
227 s->bi_valid += len;\
295 while (n <= 143) static_ltree[n++].Len = 8, bl_count[8]++;
296 while (n <= 255) static_ltree[n++].Len = 9, bl_count[9]++;
297 while (n <= 279) static_ltree[n++].Len = 7, bl_count[7]++;
298 while (n <= 287) static_ltree[n++].Len = 8, bl_count[8]++;
307 static_dtree[n].Len = 5;
342 static_ltree[i].Len, SEPARATOR(i, L_CODES+1, 5));
348 static_dtree[i].Len, SEPARATOR(i, D_CODES-1, 5));
485 * OUT assertions: the field len is set to the optimal bit length, the
512 tree[s->heap[s->heap_max]].Len = 0; /* root of the heap */
516 bits = tree[tree[n].Dad].Len + 1;
518 tree[n].Len = (ush)bits;
528 if (stree) s->static_len += (ulg)f * (stree[n].Len + xbits);
558 if ((unsigned) tree[m].Len != (unsigned) bits) {
559 Trace((stderr,"code %d bits %d->%d\n", m, tree[m].Len, bits));
560 s->opt_len += ((long)bits - (long)tree[m].Len)
562 tree[m].Len = (ush)bits;
573 * the given tree and the field len is set for all tree elements.
601 int len = tree[n].Len;
602 if (len == 0) continue;
604 tree[n].Code = bi_reverse(next_code[len]++, len);
607 n, (isgraph(n) ? n : ' '), len, tree[n].Code, next_code[len]-1));
615 * OUT assertions: the fields len and code are set to the optimal bit length
641 tree[n].Len = 0;
654 s->opt_len--; if (stree) s->static_len -= stree[node].Len;
699 /* The field len is now set, we can generate the bit codes */
715 int nextlen = tree[0].Len; /* length of next code */
721 tree[max_code+1].Len = (ush)0xffff; /* guard */
724 curlen = nextlen; nextlen = tree[n+1].Len;
760 int nextlen = tree[0].Len; /* length of next code */
765 /* tree[max_code+1].Len = -1; */ /* guard already set */
769 curlen = nextlen; nextlen = tree[n+1].Len;
823 if (s->bl_tree[bl_order[max_blindex]].Len != 0) break;
853 send_bits(s, s->bl_tree[bl_order[rank]].Len, 3);
1117 s->last_eob_len = ltree[END_BLOCK].Len;
1142 * Reverse the first len bits of a code, using straightforward code (a faster
1144 * IN assertion: 1 <= len <= 15
1146 local unsigned bi_reverse(code, len)
1148 int len; /* its bit length */
1154 } while (--len > 0);
1197 local void copy_block(s, buf, len, header)
1200 unsigned len; /* its length */
1207 put_short(s, (ush)len);
1208 put_short(s, (ush)~len);
1214 s->bits_sent += (ulg)len<<3;
1216 while (len--) {