Lines Matching defs:hash_prefix
45 int hash_prefix;
128 * @param hash_prefix LZW code for prefix
131 static inline int findCode(LZWEncodeState * s, uint8_t c, int hash_prefix)
133 int h = hash(FFMAX(hash_prefix, 0), c);
136 while (s->tab[h].hash_prefix != LZW_PREFIX_FREE) {
138 && (s->tab[h].hash_prefix == hash_prefix))
150 * @param hash_prefix LZW code for prefix
153 static inline void addCode(LZWEncodeState * s, uint8_t c, int hash_prefix, int hash_code)
157 s->tab[hash_code].hash_prefix = hash_prefix;
176 s->tab[i].hash_prefix = LZW_PREFIX_FREE;
182 s->tab[h].hash_prefix = LZW_PREFIX_EMPTY;
244 if (s->tab[code].hash_prefix == LZW_PREFIX_FREE) {