In this chapter we present libraries and APIs for lossless compression. Even with the geometric rise in memory capacity, the information theoretic compression gains provided at relatively cheap computing power can result in impressive performance and capacity gains. In this chapter we present with the help of examples, the use of the ZLIB and BZIP2 libraries. Examples are presented using C/C++ API as well as Python modules. More recently, LZMA and XZ Utilities also provide even better compression, albeit at slightly slower speed. Their use is also described in this chapter.
Unable to display preview. Download preview PDF.