Multimedia 1
Multimedia 1
Multimedia 1
School of Informatics
1
Compression techniques are used to reduce the
size of digital data, making it faster and easier to
transmit and store. Lossless compression
preserves all the original data, while lossy
compression sacrifices some data to achieve
higher compression ratios. Here are examples of
lossy and lossless compression techniques:
2
2. Lempel-Ziv-Welch (LZW) Compression:
3
notice. The compression process includes sub-
sampling chroma information, quantization of
color values, and discrete cosine transformation
(DCT). These steps selectively reduce the data
without significantly compromising visual quality.
While it is best suited for photographs and natural
images, JPEG may result in visible artifacts when
used for line drawings or text.
2. MP3 Compression:
MP3 is a popular lossy compression format for
audio. The compression process in MP3 involves
discarding frequencies that are less audible to the
human ear. It achieves this by using a combination
of psychoacoustic models and transform coding
techniques. By removing redundant information
and sounds that are outside the human hearing
range, MP3 significantly reduces the file size while
maintaining relatively high audio quality.
However, excessive compression can lead to a loss
of fidelity and noticeable degradation in audio
quality.
4
Comparison of the Techniques:
1. Lossless Compression:
Lossless compression techniques ensure that the
original data can be perfectly reconstructed from
the compressed data, which is essential for
applications where data integrity is critical, such
as text documents and program files. While
lossless compression preserves all the original
information, it generally achieves lower
compression ratios compared to lossy
compression. Therefore, it is ideal for scenarios
where data fidelity is paramount and where
storage space or transmission bandwidth is not
severely constrained.
2. Lossy Compression:
Lossy compression is effective for scenarios where
the priority is on reducing file size at the cost of
sacrificing some information. It is commonly used
for multimedia applications such as images, audio,
5
and video, where a certain degree of data loss can
be tolerated without significant impact on
perceived quality. Lossy compression can achieve
higher compression ratios compared to lossless
compression, making it suitable for scenarios
where storage or bandwidth limitations are a
concern.