Lines Matching refs:hash_prefix
43 int hash_prefix;
123 * @param hash_prefix LZW code for prefix
126 static inline int findCode(LZWEncodeState * s, uint8_t c, int hash_prefix)
128 int h = hash(FFMAX(hash_prefix, 0), c);
131 while (s->tab[h].hash_prefix != LZW_PREFIX_FREE) {
133 && (s->tab[h].hash_prefix == hash_prefix))
145 * @param hash_prefix LZW code for prefix
148 static inline void addCode(LZWEncodeState * s, uint8_t c, int hash_prefix, int hash_code)
152 s->tab[hash_code].hash_prefix = hash_prefix;
171 s->tab[i].hash_prefix = LZW_PREFIX_FREE;
177 s->tab[h].hash_prefix = LZW_PREFIX_EMPTY;
240 if (s->tab[code].hash_prefix == LZW_PREFIX_FREE) {