Struct lzw::Decoder [−][src]
pub struct Decoder<R: BitReader> { /* fields omitted */ }
Expand description
Decoder for a LZW compressed stream (this algorithm is used for GIF files).
The maximum supported code size is 16 bits. The decoder assumes two special code word to be present in the stream:
CLEAR_CODE == 1 << min_code_size
END_CODE == CLEAR_CODE + 1
Furthermore the decoder expects the stream to start with a CLEAR_CODE
. This
corresponds to the implementation needed for en- and decoding GIF and TIFF files.