Lines Matching defs:code
577 * Convert Huffman table specifcations to tables of codes and code lengths.
585 int i, j, k, lastk, si, code, maxsymbol;
589 int code[256];
605 /* Figure C.1 - Generation of table of Huffman code sizes */
618 code = 0;
622 huff->code[k++] = code;
623 code++;
625 if (code >= (1 << si))
627 code <<= 1;
631 /* Figure C.3 - Ordering procedure for encoding procedure code tables */
636 ehufco[i] = huff->code[k];
720 int code[4][256];
730 /* Generate all four (luma/chroma DC/AC) code/size lookup tables */
733 huff->code[i]);
759 if (huff->size[t][i] == 0 && huff->code[t][i] == 0)
764 huff->code[t][i];
780 /* Write Huffman size/code lookup tables in AC0, AC1, DC0, DC1 order */