Multimedia Computing · Unit 3
Data Compression Techniques
Exam-focused notes for Data Compression Techniques (Multimedia Computing, BIT356): what the TU syllabus asks and how it has actually been tested, with 3 solved past questions from this unit.
Data Compression Techniques in short
Audio, images and video take a lot of space. Compression makes them smaller so they can be stored and sent easily. This chapter covers the main methods, with worked examples.
What this unit covers
- Data compression definition and necessity
- Lossy compression methods
- Lossless compression methods
- Huffman coding algorithm
- DCT compression mode
- Expanded lossy DCT mode
- Compression mechanism comparison
Data compression definition and necessity
2081 · 5 marks
Why is data compression needed? How is lossy compression different from lossless compression? [5]
Expanded lossy DCT mode
0 · 10 marks
What is data compression? How working mechanism of lossy DCT mode is different from expanded lossy DCT mode of data compression?[10]
Show solved answerHide answer
Model Answer: Data Compression and DCT Modes
What is Data Compression?
Data compression is a technique used to reduce the size of data files by removing redundancy and unnecessary information. It involves encoding information using fewer bits than the original representation, thereby reducing storage space and transmission bandwidth requirements.
Key objectives of data compression:
- Reduce file size for efficient storage
- Minimize transmission time and bandwidth usage
- Maintain data integrity (in lossless) or acceptable quality (in lossy)
Lossy DCT Mode vs. Expanded Lossy DCT Mode
Lossy DCT (Discrete Cosine Transform) Mode
Working Mechanism:
- Divides image/data into fixed-size blocks (typically 8×8 pixels)
- Applies DCT to transform spatial domain data into frequency domain
- Quantizes high-frequency components by dividing by quantization matrix values
- Discards or heavily reduces high-frequency coefficients (human eye is less sensitive to these)
- Applies entropy coding (Huffman/arithmetic coding) to compress further
- Result: Irreversible compression with some quality loss
Characteristics:
- Simple block-based processing
- Moderate compression ratios
- Visible artifacts at block boundaries
- Suitable for JPEG compression
Expanded Lossy DCT Mode
Working Mechanism:
- Extends standard DCT by processing overlapping blocks instead of fixed non-overlapping blocks
- Uses window functions (e.g., sine window) to smooth transitions between blocks
- Applies DCT on overlapped regions to reduce blocking artifacts
- Quantization and entropy coding similar to standard DCT
- Result: Better quality with reduced block boundary artifacts
Key Differences:
| Aspect | Lossy DCT | Expanded Lossy DCT |
|---|---|---|
| Block Processing | Non-overlapping fixed blocks | Overlapping blocks with windowing |
| Artifacts | Visible block boundaries | Smoother transitions, fewer artifacts |
| Compression Ratio | Higher | Slightly lower (due to overlap) |
| Quality | Moderate | Better visual quality |
| Computational Cost | Lower | Higher (overlap processing) |
| Application | Standard JPEG | Advanced codecs (MPEG, H.264) |
Summary
The primary difference is that expanded lossy DCT uses overlapping blocks with window functions to eliminate blocking artifacts present in standard lossy DCT, resulting in superior visual quality at the cost of slightly reduced compression efficiency and increased computation.
Huffman coding algorithm
0 · 5 marks
Let A = {a/20, b/15, c/5, d/15, e/45} be the alphabet and its frequency distribution. Now show how Huffman Coding works. Make your assumptions if required. [5]
Make Unit 3 stick
Practice BIT356 with flashcards & quizzes