Lines Matching defs:he
328 static void calculate_codes(HuffEntry *he)
333 qsort(he, 256, sizeof(*he), ut_huff_cmp_len);
336 while (he[last].len == 255 && last)
341 he[i].code = code >> (32 - he[i].len);
342 code += 0x80000000u >> (he[i].len - 1);
345 qsort(he, 256, sizeof(*he), huff_cmp_sym);
350 int width, int height, HuffEntry *he)
361 put_bits(&pb, he[src[i]].len, he[src[i]].code);
387 HuffEntry he[256];
470 he[i].len = lengths[i];
471 he[i].sym = i;
475 calculate_codes(he);
488 send - sstart, he);