Compression techniques

37 篇文章 6 订阅
11 篇文章 1 订阅

Why are compression techniques necessary?

Previously, we talked about the representations of number, text, image, sound, video in binary form (Chapter 1). The file size of data is always a major concern when the data need to be stored and transmitted because our computers have limited memory & disk size and we want to store as more data as possible. When transmitted over internet, big file takes more time and we want fast speed of data transferring.

Compression techniques provide ways to reduce memory & disk storage requirements and to increase the file transmission rate.

The categories of compression techniques?

There are 2 categories of compression techniques:

Lossless compression

Lossless compression is a coding technique that allows subsequent decoding to create exactly the original file. As its name implies, not data is lost. After decoding, we can get the same data as the original.

Lossy compression

Lossy compression is a coding technique that cause some data to be lost and original file cannot be recovered in sub sequential decoding.as its name implies, some data is lost. After decoding, we can not get the same data as the original.

You may wonder why we need lossy compression since data could be lost. in some cases, the lost data is so minor that you can not even notice it. Lossy compression is more appropriate in these cases because it can reduce the size of data dramatically. For example, an image of 24 bits might looks the same as a 32 bits image because human eyes cannot detect the differences. Another sample, a 16 bits audio might sounds the same as a 24 bits audio because human ears cannot detect the differences.

The benefits and drawbacks.

The benefits of lossless compression:

  • The original data can be recovered exactly.

The benefits of lossy compression:

  • The size of data can be reduces dramatically

The drawback of lossy compression:

  • When an image, audio or video goes through a lossy compression, the quality is reduced. Because some data is removed.

File format and compression techniques

bitmap

Lossy or uncompressed

JPG(JPEG)

Lossy

PNG

lossless

Mp3/Mp4

lossy

avi

lossless

wav

lossless

ALAC

lossless

FLAC

lossless

NOTE:

Due to the loss of data, lossy compression is not suitable for text, such program code,  data sheet, etc. 

The steps taken to compress is refered to as compression algorithm.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值