Published online by Cambridge University Press: 05 June 2012
In this Appendix we consider data compression algorithms which guarantee that the reconstructed file from the compressed bitstream will bit-by-bit coincide with the original input file. These lossless (entropy-coding) algorithms have many applications. They can be used for archiving different types of datum: texts, images, speech, and audio. Since multimedia data usually can be considered as outputs of a source with memory or, in other words, have significant redundancy, then the entropy coding can be combined with different types of preprocessing, for example, linear prediction.
However, multimedia compression standards are based mainly on lossy coding schemes which provide much larger compression ratios compared to lossless coding. It might seem that for such compression systems entropy coding plays no role but that is not the case. In fact, lossless coding is an important part of lossy compression standards also. In this case we consider quantized outputs of a preprocessing block as the outputs of a discrete-time source, estimate statistics of this source, and apply to its outputs entropy-coding techniques.
Symbol-by-symbol lossless coding
Let a random variable take on values x from the discrete set X = {0, 1, …, M − 1} and let p(x) > 0 be the probability mass function of X or, in other words, the probability distribution on the set X. If we do not take into account that different values x are not equally probable, we can only construct a fixed-length code for all possible values x ∈ X.
To save this book to your Kindle, first ensure [email protected] is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
Find out more about the Kindle Personal Document Service.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.