MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / read_huffman_code_simple

Function read_huffman_code_simple

libavcodec/webp.c:300–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300static 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
315static int read_huffman_code_normal(WebPContext *s, HuffReader *hc,
316 int alphabet_size)

Callers 1

Calls 2

get_bits1Function · 0.85
get_bitsFunction · 0.70

Tested by

no test coverage detected