Lines Matching defs:hash_prefix
43 int hash_prefix;
121 * @param hash_prefix LZW code for prefix
124 static inline int findCode(LZWEncodeState * s, uint8_t c, int hash_prefix)
126 int h = hash(FFMAX(hash_prefix, 0), c);
129 while (s->tab[h].hash_prefix != LZW_PREFIX_FREE) {
131 && (s->tab[h].hash_prefix == hash_prefix))
143 * @param hash_prefix LZW code for prefix
146 static inline void addCode(LZWEncodeState * s, uint8_t c, int hash_prefix, int hash_code)
150 s->tab[hash_code].hash_prefix = hash_prefix;
169 s->tab[i].hash_prefix = LZW_PREFIX_FREE;
175 s->tab[h].hash_prefix = LZW_PREFIX_EMPTY;
234 if (s->tab[code].hash_prefix == LZW_PREFIX_FREE) {