Computer Science 1033A/B Lecture Notes - Lecture 5: Internet Protocol Suite, Lossless Compression, Image File Formats
mikekuo58 and 38820 others unlocked
25
COMPSCI 1033A/B Full Course Notes
Verified Note
25 documents
Document Summary
Lossless compresses original bits and byte, but does not lose the original information about the picture. When you reopen the file, all the info about the picture is still there no info is lost. When compressed, the original information is lost. Pattern decoding: huffman coding -> more common letters use less bytes (e,o,s,t,r,etc. ); less common letters use the larger byte codes (q,x,z,etc. : humans notice changes in brightness more than changes in colour. Lossy discards the slight difference in colour rather than brightness. Gif: only supports 8 bits (256 colours, used primarily for cartoons, not good enough quality for photographs, benefits of gif: Lossless compression, except for the first time that a jpg is getting compressed to a gif. Can chose a colour to be transparent (can"t do that with a jpg) Allows for simple animations, work in all browsers.