MCPcopy Create free account
hub / github.com/NetHack/NetHack / reset_decoder

Function reset_decoder

win/share/giftiles.c:334–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334static void
335reset_decoder(struct Bitstream *gif)
336{
337 /* Set the bit width */
338 gif->bit_width = gif->initial_bit_width + 1;
339
340 /* Reset the dictionary */
341 gif->dict_size = (1 << gif->initial_bit_width) + 2;
342
343 /* No last code */
344 gif->last_code = 0xFFFF;
345}
346
347static int
348decode(struct Bitstream *gif, struct DataBlock *block)

Callers 2

init_decoderFunction · 0.85
decodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected