Lines Matching refs:symbol
46 * After the symbol count table, there is the symbol table, storing
48 * explicitly transmitted (not necessary anyway) in the symbol table.
50 * Compressed data goes after the symbol table.
58 * last level symbol count by 2 which makes it a number in
59 * range [0..254], so all levels' symbol count would fit into 1 byte.
70 * and store pointers to each level's first symbol. In addition to
75 int symbol_size; /* Size of the symbol table */
83 char *symbol; /* The symbol table */
84 char *symbol_eob; /* Pointer to the EOB symbol */
86 * first symbol of each tree level */
107 free(unpackd->symbol);
203 /* Read the levels symbol count table and calculate total */
213 maybe_errx("Bad symbol table");
216 /* Allocate for the symbol table, point symbol_eob at the beginning */
217 unpackd->symbol_eob = unpackd->symbol = calloc(1, unpackd->symbol_size);
218 if (unpackd->symbol == NULL)
222 * Read in the symbol table, which contain [2, 256] symbols.
226 * We adjust the last level's symbol count by 1 here, because
227 * the EOB symbol is not being transmitted explicitly. Another
242 /* Now, take account for the EOB symbol as well */
261 const char *thissymbol; /* The symbol pointer decoded from stream */
265 * into 'thiscode' bit-by-bit, then output the symbol we got
281 * feed the bit into thiscode, until we got a symbol from
287 /* Did we got a symbol? (referencing leaf node) */