Decode data bytes of GIF87a raster data stream
问题 I'm trying to decode the data bytes from a GIF87a raster data stream. I'm unsure of how to read the LZW variable length codes (and how LSB...least significant byte first fits in this). The raster data stream starts as follows (in hex): 06 6b 40 86 70 48 2c 1a 8f 44 4b 44 22 89 58 8e 10 c7 e1 80 06 ->code size of 6 6b ->block byte count of 107 40 ->clear code (2^6) which is 64 in decimal or 40 in hex 86 -> start of actual data GIF87a spec: http://www.w3.org/Graphics/GIF/spec-gif87.txt The