Lines Matching refs:AddToken
83 static WEBP_INLINE int AddToken(VP8TBuffer* const b, in AddToken() function
109 if (!AddToken(tokens, last >= 0, base_id + 0)) { in VP8RecordCoeffTokens()
117 if (!AddToken(tokens, v != 0, base_id + 1)) { in VP8RecordCoeffTokens()
122 if (!AddToken(tokens, v > 1, base_id + 2)) { in VP8RecordCoeffTokens()
125 if (!AddToken(tokens, v > 4, base_id + 3)) { in VP8RecordCoeffTokens()
126 if (AddToken(tokens, v != 2, base_id + 4)) in VP8RecordCoeffTokens()
127 AddToken(tokens, v == 4, base_id + 5); in VP8RecordCoeffTokens()
128 } else if (!AddToken(tokens, v > 10, base_id + 6)) { in VP8RecordCoeffTokens()
129 if (!AddToken(tokens, v > 6, base_id + 7)) { in VP8RecordCoeffTokens()
139 AddToken(tokens, 0, base_id + 8); in VP8RecordCoeffTokens()
140 AddToken(tokens, 0, base_id + 9); in VP8RecordCoeffTokens()
145 AddToken(tokens, 0, base_id + 8); in VP8RecordCoeffTokens()
146 AddToken(tokens, 1, base_id + 9); in VP8RecordCoeffTokens()
151 AddToken(tokens, 1, base_id + 8); in VP8RecordCoeffTokens()
152 AddToken(tokens, 0, base_id + 10); in VP8RecordCoeffTokens()
157 AddToken(tokens, 1, base_id + 8); in VP8RecordCoeffTokens()
158 AddToken(tokens, 1, base_id + 10); in VP8RecordCoeffTokens()
172 if (n == 16 || !AddToken(tokens, n <= last, base_id + 0)) { in VP8RecordCoeffTokens()