首先解释以下两个名词(仅供参考,可跳过)
JPEG=Joint Photographic Experts Group(联合图像专家小组),是第一个国际图像压缩标准。JPEG图像压缩算法能够在提供良好的压缩性能的同时,具有比较好的重建质量,被广泛应用于图像、视频处理领域。人们日常碰到的.jpeg,.jpg等指代的是图像数据经压缩编码后在媒体上的封存形式,不能与JPEG压缩标准混为一谈。(百度百科)
IJG is an informal group that writes and distributes a widely used free library for JPEG image compression. The first version was released on 7-Oct-1991. (http://www.ijg.org/)
本文将关注IJG提供的JPEG图像压缩/解压缩库的编译与初步使用。
首先在IJG网站http://www.ijg.org/下载源代码,此文编辑时已发布的版本为version 9a
编译
我们将要在Visual Studio 2010环境下编译,编译目标为libjpeg.lib