home *** CD-ROM | disk | FTP | other *** search
/ Photo CD Demo 1 / Demo.bin / formats / gif / gen_info / notes.lzh / GIFDEC.GIF (.png) < prev    next >
Graphics Interchange Format  |  1989-01-04  |  6.8 KB  |  640x350  |  4-bit (4 colors)
   ocr: GIF Decoder by Bob Montgomery 1-22-87 Notes: 1. nuc = next valid code. Init decoder 2.A code is decomposed into a string of colors (color) 3.Colors are pushed onto a stack so they can Get oldcode. == new_code color == new_code be the OUTPUT encoder last saw first, them. which is the order Printicolor) 4. Init decoder: codesize == bits/pixel + 1 clear-code == 1 << bit/pixel Get new_code end_code = clear-code + - 1 code E new_code min_code = end_code + 1 max_code = clear-code << 1 Is it the next valid code? nvc == end_code +1 Eocan enuc? code == old_code t was a color 5. lf codesize > 12, Init d ...