Lines Matching defs:head
72 * @param head LZW code for prefix
76 static inline int hash(int head, const int add)
78 head ^= (add << LZW_HASH_SHIFT);
79 if (head >= LZW_HASH_SIZE)
80 head -= LZW_HASH_SIZE;
81 av_assert2(head >= 0 && head < LZW_HASH_SIZE);
82 return head;
87 * @param head Actual hash code
91 static inline int hashNext(int head, const int offset)
93 head -= offset;
94 if(head < 0)
95 head += LZW_HASH_SIZE;
96 return head;
101 * @param head Actual hash code
104 static inline int hashOffset(const int head)
106 return head ? LZW_HASH_SIZE - head : 1;