Data Compression: Presented by Pankaj Sharma
Data Compression: Presented by Pankaj Sharma
PRESENTED BY
PANKAJ SHARMA
WHY COMPRESSION?
STRATEGIES:
LOSSY LOSSLESS Lossless run-length Huffman delta LZW Lossy CS&Q JPEG MPEG
Run-length encoding
Digitized signals can also have runs of the same value, indicating that the signal is not changing.
a flag to indicate that run-length compression is beginning. Each run of zeros is replaced by two characters in the compressed file: a zero to indicate that compression is occurring, followed by the number of zeros in the run.
Huffman -encoding
In ASCII files, 96% of this file consists of only 31 characters: the lower case letters, the space, the comma, the period and the carriage return.
Delta-Encoding
The first value in the delta encoded file is the same as the first value in the original data.
the following values in the encoded file are equal to the difference (delta) between the corresponding value in the input file, and the previous value in the input file.
JPEG Compression
8x8 pixel groups. Each pixel is a single byte . Each group is initially represented by 64 bytes. During uncompression, the inverse transform is taken of the 2 to 20 bytes to create an approximation of the original 8x8 group.
JPEG Compression
Original image
10:1 compression
45:1 compression
Example of JPEG distortion. The image on the left is the original, while the center and right are restored images using compression ratios of 10:1 and 45:1, respectively. The high compression ratio used in the right image in each 8x8 pixel group being represented by less than 12 bits.
Original Image
GIF PROBLEMS
Unsuitable for natural images (photos): Maximum 256 colors () bad quality). Repetetive patterns uncommon () bad compression). Alternative: PNG
MPEG
Moving Pictures Experts Group A compression standard for digital video sequences Used in computer video and digital television networks. The future of this technology is to encode the compression and uncompression algorithms directly into integrated circuits . two types of compression - within-the-frame (jpeg) and between-frame. delta encoding to compress the redundant information between frames The addition of color and sound makes this all the more complicated.
CONCLUSION
Importance of data compression Large data in small spaces Compression for the purpose of transmission Compression for the purpose of decreasing storage space requirement Downloading on net becomes easier Mpeg one of the most important technologies of the next generation