Professional Documents
Culture Documents
Presentation 2
Presentation 2
Supervisors:
Prof. Dr./ Abdelhalim Abdelnaby Zekry
Dr. / Hatem Mohamed Zakaria
Agenda
Introduction.
CODEC.
Data Compression Methods.
Lossless Compression Methods.
Lossy compression methods.
General architecture of CODEC system.
Compressor Coder internal Block Diagram.
Aim of Research.
Introduction
Video: 30 pictures per second
Each picture = 200,000 dots or pixels
8-bits to represent each primary color
For RGB = 28 x 28 x 28
Bits required for one second movie =
503316480 pixels
Two hour movie requires = 2 x 60 x 60 x
503316480
IT IS VERY
LARGE AMOUNT
OF DATA
ISN’T IT ?
.Compression is necessary
The method can be more efficient if the data uses only 2 symbols
(0s and 1s) in bit patterns and 1 symbol is more frequent than
another.
Huffman coding
In Huffman coding, you assign shorter
codes to symbols that occur more
frequently and longer codes to those that
occur less frequently.
For example:
Character A B C D E
------------------------------------------------------
Frequency 17 12 12 27 32
Table 15.1 Frequency of characters
Figure 15-4
Huffman coding
Figure 15-5
Huffman encoding
Figure 15-7
Huffman decoding
Huffman coding
The beauty of Huffman coding is that no code in
the prefix of another code.
There is no ambiguity in encoding.
The receiver can decode the received data
without ambiguity.
Huffman code is called instantaneous code
because the decoder can unambiguously
decode the bits instantaneously with the
minimum number of bits.
Lempel Ziv encoding
LZ encoding is an example of a category
of algorithms called dictionary-based
encoding.
The idea is to create a dictionary (table) of
strings used during the communication
session.
The compression algorithm extracts the
smallest substring that cannot be found in
the dictionary from the remaining non-
compressed string.
Figure 15-8:Part I