5 Data Compression Ioenotes
5 Data Compression Ioenotes
net/publication/328491948
DATA COMPRESSION
CITATIONS READS
0 888
1 author:
Subarna Shakya
Tribhuvan University
146 PUBLICATIONS 436 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Subarna Shakya on 24 October 2018.
Our eyes
y and ears cannot distinguish
g subtle changes
changes.
g . In
such cases, we can use a lossy data compression method.
method.
These methods are cheaper
cheaper— —they take less time and
space when it comes to sending millions of bits per
second for images and video.
video. Several methods have
been developed using lossy compression techniques
techniques..
JPEG (Joint Photographic Experts Group) encoding is
used to compress pictures and graphics, MPEG
(Moving Picture Experts Group) encoding is used to
compress video, and MPMP33 (MPEG audio layer 3) for
audio compression
compression..
Image
g compression
p – JPEG encodingg
an image can be represented by a two-dimensional array
(table) of picture elements (pixels).
A grayscale picture of 307,200 pixels is represented by
2,457,600 bits, and a color picture is represented by
7,372,800 bits.
IIn JPEG,
JPEG a grayscale l picture
i t i divided
is di id d into bl k off 8 × 8
i t blocks
pixel blocks to decrease the number of calculations because,
as we will see shortly,
shortly the number of mathematical
operations for each picture is the square of the number of
units.
Figure 2 JPEG grayscale example, 640 × 480 pixels
The whole idea of JPEG is to change the picture into a linear
(vector) set of numbers that reveals the redundancies. The
redundancies (lack of changes) can then be removed using
one of the lossless compression methods we studied
previously.
i l A simplified
i lifi d version
i off the
h process isi shown
h i
in
Figure 3.
Audio compression
p can be used for speech
p or music. For
speech we need to compress a 64 kHz digitized signal,
while for music we need to compress a 1.411 MHz signal.
Two categories of techniques are used for audio
compression: predictive encoding and perceptual
encoding.
encoding
D t Compression
Data C mpr i n
By changing appropriate parameters,
the user can select
D t Compression
Data C mpr i n
Summary
Compression methods — lossless vs.
lossy
ossy
Entropy coding — run-length
encoding,
g, Huffman encoding
g
Source coding — prediction (DPCM,
DM), transformation (DCT)
hybrid coding — JPEG, MPEG