Lines Matching defs:code
42 /** One code in hash table */
44 /// Hash code of prefix, LZW_PREFIX_EMPTY if empty prefix, or LZW_PREFIX_FREE if no code
46 int code; ///< LZW code
47 uint8_t suffix; ///< Last character in code block
52 int clear_code; ///< Value of clear code
53 int end_code; ///< Value of end code
56 int bits; ///< Actual bits code
59 int maxbits; ///< Max bits code
60 int maxcode; ///< Max value of code
62 int last_code; ///< Value of last output code or LZW_PREFIX_EMPTY
72 * @param head LZW code for prefix
87 * @param head Actual hash code
101 * @param head Actual hash code
110 * Write one code to stream
112 * @param c code to write
125 * Find LZW code for block
128 * @param hash_prefix LZW code for prefix
129 * @return LZW code for block or -1 if not found in table
147 * Add block to LZW code table
150 * @param hash_prefix LZW code for prefix
151 * @param hash_code LZW code for bytes block
155 s->tab[hash_code].code = s->tabsize;
166 * Clear LZW code table
180 s->tab[h].code = i;
204 * @param maxbits Maximum length of code
243 int code = findCode(s, c, s->last_code);
244 if (s->tab[code].hash_prefix == LZW_PREFIX_FREE) {
246 addCode(s, c, s->last_code, code);
247 code= hash(0, c);
249 s->last_code = s->tab[code].code;
259 * Write end code and flush bitstream