Lines Matching defs:code
40 /** One code in hash table */
42 /// Hash code of prefix, LZW_PREFIX_EMPTY if empty prefix, or LZW_PREFIX_FREE if no code
44 int code; ///< LZW code
45 uint8_t suffix; ///< Last character in code block
50 int clear_code; ///< Value of clear code
51 int end_code; ///< Value of end code
54 int bits; ///< Actual bits code
57 int maxbits; ///< Max bits code
58 int maxcode; ///< Max value of code
60 int last_code; ///< Value of last output code or LZW_PREFIX_EMPTY
70 * @param head LZW code for prefix
85 * @param head Actual hash code
99 * @param head Actual hash code
108 * Write one code to stream
110 * @param c code to write
120 * Find LZW code for block
123 * @param hash_prefix LZW code for prefix
124 * @return LZW code for block or -1 if not found in table
142 * Add block to LZW code table
145 * @param hash_prefix LZW code for prefix
146 * @param hash_code LZW code for bytes block
150 s->tab[hash_code].code = s->tabsize;
161 * Clear LZW code table
175 s->tab[h].code = i;
199 * @param maxbits Maximum length of code
239 int code = findCode(s, c, s->last_code);
240 if (s->tab[code].hash_prefix == LZW_PREFIX_FREE) {
242 addCode(s, c, s->last_code, code);
243 code= hash(0, c);
245 s->last_code = s->tab[code].code;
255 * Write end code and flush bitstream