What is compression?
The process of reducing the number of bits required to represent data
Why might compression be used? [3]
Lossless Compression
When decompressing the image, the original uncompressed image is restored exactly as it was.
Lossy Compression
When irrelevant data is discarded such that when decompressed, the original file is not recovered.
State the advantages of lossless compression [2]
The file can be reproduced exactly as it was originally;
A. The quality of an image/sound/video would not be reduced.
The original data can be fully recovered if lossless compression has been used // lossless data compression can be reversed;
NE. no data is lost NE. no loss of quality
The original data cannot be recovered if lossy compression has been used // lossy compression cannot be reversed // the data is degraded by lossy compression;
A. redundant / less important data removed
NE. data is lost
NE. quality is reduced
State one disadvantage of lossless compression [2]
Not as big a file size reduction as lossy compression
State one advantage of lossy compression [1]
Greater file size reduction than lossless compression
State two disadvantages of lossy compression [2]
May result in lower quality image/sound; Unable to recover discarded data
When can run-length encoding (RLE) be used with bitmaps?
If three or more consecutive pixels contain the same bit pattern, then a run of cells can be compressed.
How does RLE reduce file size?
The run of identical pixels can be stored in two bytes: number in the run; colour of the pixels.
Describe how dictionary-based compression works