Lossy compression and lossless compression are both compression technologies, but no matter which technical model is used, the essence of the two is the same, that is, they both use a special encoding method to effectively reduce the repetition and redundancy in data information, thereby achieving the purpose of data compression. The basic principle is to retain only some "key points" in the original data without affecting the basic use of the file, and remove the repeated and redundant information in the data, thereby achieving the purpose of compression.
Definition of Lossy and Lossless Compression
Lossy compression takes advantage of the fact that humans are insensitive to certain frequency components in images or sound waves, allowing a certain amount of information to be lost during the compression process; although the original data cannot be fully restored, the impact of the lost part on understanding the original image is reduced, but in exchange for a much higher compression ratio, that is, the compressed data is used for reconstruction, and the reconstructed data is different from the original data, but it does not cause people to misunderstand the information expressed by the original data. Lossy compression is suitable for occasions where the reconstructed signal does not necessarily have to be exactly the same as the original signal. Image and sound compression (because the data contained in them is often more than our visual and auditory systems can receive, throwing away some data will not cause misunderstanding of the meaning of the sound or image, but can greatly improve the compression ratio). Lossy compression is widely used in the compression of voice, image and video data.
The lossless compression format uses the statistical redundancy of data for compression, which can completely restore the original data without causing any distortion. However, the compression rate is subject to the theoretical limit of the statistical redundancy of the data, which is generally 2:1 to 5:1. This type of method is widely used for the compression of text data, programs and image data in special applications (such as fingerprint images, medical images, etc.). It means using the compressed data for reconstruction (or restoration, decompression), and the reconstructed data is exactly the same as the original data; lossless compression is used in situations where the reconstructed signal is required to be completely consistent with the original signal.
Difference between lossy and lossless compression
1. Difference in reducibility
Lossless compression means that the file can be completely restored; after lossy compression, the file cannot be the same as the original file and there will be a certain amount of loss.
2. Difference in compression rate
The compression rate of lossless compression is theoretically limited by the statistical redundancy of the data, and is generally 2:1 to 5:1.
Lossy compression takes advantage of the fact that humans are insensitive to certain frequency components in images or sound waves, allowing a certain amount of information to be lost during the compression process. Although the original data cannot be completely restored, the impact of the lost part on understanding the original image is reduced, but in return a much larger compression ratio is achieved, up to 200:1 or even more.
3. Differences in compressed file formats
mp3, divX, Xvid, jpeg, rm, rmvb, wma, wmv and other formats are all lossy compression;
commonly used lossless compression formats include APE, FLAC, TAK, WavPack, TTA, etc.
4. Differences in compression principles
There are two basic mechanisms for lossy compression:
One is lossy transform coding, which first samples the image or sound, cuts it into small blocks, transforms it to a new space, quantizes it, and then entropy codes the quantized value.
The other is predictive coding, where previous data and subsequently decoded data are used to predict the current sound sample or image frame, and the error between the predicted data and the actual data and some other information to reproduce the prediction are quantized and encoded.
The principles of lossless compression include run-length encoding, Huffman coding and arithmetic coding.
5. Differences in application areas
Lossy compression is widely used for compression of voice, image and video data;
Due to the limitation of compression ratio, lossless compression is currently only used for the compression of text data, programs and image data in special application scenarios (such as fingerprint images, medical images, etc.). However, the prospects for lossless compression format are undoubtedly bright. As time goes by, various factors limiting lossless format will gradually be eliminated. For example, with the continuous increase in hard disk capacity, 1TB mechanical hard disks have become mainstream, and 200GB solid-state hard disks will also be popular. The problem of large space occupied by lossless format will no longer be a problem, and faster decoding chips will also be developed. It is believed that more and more hard disk players will support lossless format. In the near future, even the capacity of flash memory players will be calculated in TB. In order to pursue higher sound quality, lossless compression format will be increasingly valued.
Previous article:What are the lossless compression algorithms?
Next article:Audio compression technology coding classification
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications