In Compression, we reduce the size of our data to achieve high efficiency and easy storage. It is quite cumbersome to transfer files having large size so we need to compress it. Compressed file takes less time for data transmission and reduce the cost of storage.

Compression Ratio = B1 / B2
where,
B1 = Total Numbers of bits required to represent a data before compression
B2 = Total Numbers of bits required to represent a data after compression
There are 2 main types of compression:
- Inter Frame Compression
- Intra Frame Compression
Difference between Inter and Intra Frame Compression :
| Inter Frame Compression | Intra Frame Compression |
|---|---|
| In this, Data Reduction takes place between the frames. It Exploits redundancy between successive frames. | In this, Data Reduction takes place within the frames. It exploits redundancy within the frames. |
| It is also known as Temporal redundancy where the image transition is abrupt | It is also known as Spatial redundancy where the image transition is block based. |
| It requires more Processing time because the computer needs to look at several frames. | It requires less processing time because the computer is dealing with single frame, |
| A few popular intra frame codec are: 1. MJPEG-JPEGS bunched together 2. Prores-Apple’s favorite 3. DN*HD-Avid’s baby 4. ALL-I-Found in the newer DSLRs 5. Cinema DNG-Adobe’s baby for raw image sequences. |
A few popular inter frame codec are: 1. H.264-A variant of MPEG-4 2. MPEG-4 3. MPEG-2 4. AVCHD-A variant of H.264 AVC 5. XDCAM-Sony’s baby 6. XAVC-Sony’s new baby |
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.
Recommended Posts:
- Difference between Lossy Compression and Lossless Compression
- Inter-Switch Link (ISL) and IEEE 802.1Q
- Inter VLAN Routing by Layer 3 Switch
- Classless Inter Domain Routing (CIDR)
- What is ISL(Inter-Switch Link)?
- Difference between Frame Relay and ATM
- LZW (Lempel–Ziv–Welch) Compression technique
- Data Compression With Arithmetic Coding
- Shannon-Fano Algorithm for Data Compression
- PGP - Compression
- Compression of IPv6 address
- DjVu Compression in Computer Network
- Comparison between X.25 and Frame Relay
- Ethernet Frame Format
- Token Ring frame format
- IEEE 802.11 Mac Frame
- Basic Frame Structure of HDLC
- Basic Frame Structure of SDLC
- Link Access Procedure Balanced (LAPB) Frame Types
- Link Access Procedure, Balanced (LAPB) Frame Format
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

