Chapter - 5 Data Compression
Chapter - 5 Data Compression
Data compression
5.1. Data Compression and Coding Fundamentals
Why Compress?
To reduce the volume of data to be transmitted (text, fax, images)
To reduce the bandwidth required for transmission and to reduce
storage requirements (speech, audio, video)
Data compression implies sending or storing a smaller number of bits.
Although many methods are used for this purpose, in general these
methods can be divided into two broad categories: lossless and lossy
methods.
Coding Fundamentals
For the representation of text, two bytes are used for each
character.
For the representation of vector-graphics, a typical still image is
composed of 500 lines. Each line is defined by its horizontal
position, vertical position and an 8-bit attribute field. The
horizontal axis is represented using 10 bits and the vertical axis
is coded using 9 bits.
In very simple color display modes, a single pixel of a bitmap
can be represented by 256 different colors; therefore, one per
pixel is needed.
How is compression possible?
Redundancy in digital audio, image, and video data.
Properties of human perception.
Digital audio is a series of sample values; image is a rectangular
array of pixel values; video is a sequence of images played out at a
certain rate played out at a certain rate.
Neighboring sample values are correlated.
Redundancy
Arithmetic Coding
Source coding takes into account the semantics of the data. The degree
of compression that can be reached by source encoding depends on
the data contents. Different source encoding techniques make
extensive use of the characteristics of the specific medium. An example
is the sound source coding, where sound is transformed from time-
dependent to frequency-dependent sound concatenations. This
transformation reduces the amount of data.
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.
MPEG (Moving Picture Experts Group)
MPEG method is used to compress video. In principle, a motion picture is a
rapid sequence of a set of frames in which each frame is a picture. In other
words, a frame is a spatial combination of pixels, and a video is a temporal
combination of frames that are sent one after another. Compressing video,
then, means spatially compressing each frame and temporally compressing a
set of frames.
I-frame (Intra-frame)
It is a self contained frame, and it is coded without reference to any other
frames.
Video encoding
For motion encoding DVI distinguishes two techniques with different
resolutions and dissimilar goals: