| 332 | } |
| 333 | |
| 334 | static void |
| 335 | reset_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 | |
| 347 | static int |
| 348 | decode(struct Bitstream *gif, struct DataBlock *block) |
no outgoing calls
no test coverage detected