| 298 | } |
| 299 | |
| 300 | static void read_huffman_code_simple(WebPContext *s, HuffReader *hc) |
| 301 | { |
| 302 | hc->nb_symbols = get_bits1(&s->gb) + 1; |
| 303 | |
| 304 | if (get_bits1(&s->gb)) |
| 305 | hc->simple_symbols[0] = get_bits(&s->gb, 8); |
| 306 | else |
| 307 | hc->simple_symbols[0] = get_bits1(&s->gb); |
| 308 | |
| 309 | if (hc->nb_symbols == 2) |
| 310 | hc->simple_symbols[1] = get_bits(&s->gb, 8); |
| 311 | |
| 312 | hc->simple = 1; |
| 313 | } |
| 314 | |
| 315 | static int read_huffman_code_normal(WebPContext *s, HuffReader *hc, |
| 316 | int alphabet_size) |
no test coverage detected