Lines Matching refs:prefix_code
651 int prefix_code, length, distance, ref_x, ref_y; in decode_entropy_coded_image() local
654 prefix_code = v - NUM_LITERAL_CODES; in decode_entropy_coded_image()
655 if (prefix_code < 4) { in decode_entropy_coded_image()
656 length = prefix_code + 1; in decode_entropy_coded_image()
658 int extra_bits = (prefix_code - 2) >> 1; in decode_entropy_coded_image()
659 int offset = 2 + (prefix_code & 1) << extra_bits; in decode_entropy_coded_image()
662 prefix_code = huff_reader_get_symbol(&hg[HUFF_IDX_DIST], &s->gb); in decode_entropy_coded_image()
663 if (prefix_code > 39U) { in decode_entropy_coded_image()
665 "distance prefix code too large: %d\n", prefix_code); in decode_entropy_coded_image()
668 if (prefix_code < 4) { in decode_entropy_coded_image()
669 distance = prefix_code + 1; in decode_entropy_coded_image()
671 int extra_bits = prefix_code - 2 >> 1; in decode_entropy_coded_image()
672 int offset = 2 + (prefix_code & 1) << extra_bits; in decode_entropy_coded_image()