I am writiing a GIF encoder, and am having trouble when the code length
For example, on a 16-color GIF, the codes begin at 5 bits long. (100000 would
be the clear code.) When the codes change to 6 bits long (i.e. the dictionary
gets 16 values in it), my encoder starts to output the wrong codes.
I am not exactly sure when the encoder is supossed to start using 6-bit
codes. Is it when the encoder finds the first code that would need 6 bits to
write, or is it when the decoder fills its dictionary?
Any help on the subject would be extremely helpful.