tony_jpeglib
所属分类:图片显示
开发工具:Visual C++
文件大小:82KB
下载次数:94
上传日期:2006-04-12 16:50:31
上 传 者:
赤冰晶
说明: 一个不错的BMP转JPP,JPP转BMP的程序.压缩比很高.
(a good turn JPP BMP and BMP JPP transfer procedures. Very high compression ratio.)
文件列表:
JppDemo.zip (82398, 2001-09-17)
/********************************************************************************
* Author: Dr. Tony Lin *
* graduated from Peking University in 2001, *** *
* Email: In china: tonylin0602@263.net; *
* Foreign: tonylin0602@sina.com *
* Release Date: 2001/9/14 *
* *
* Name: mini JPEG class, rewrite from IJG codes *
* Source: IJG v.6a JPEG LIB *
* Purpose 1. Readable, reusable *
* 2. Customized Jpeg format, so compact *
* 3. Standard c++ types, for easily understanding *
* Acknowlegement: Thanks for great IJG, and Chris Losinger *
* *
* Legal Issues: (almost same as IJG with followings) *
* *
* 1. We don't promise that this software works. *
* 2. You can use this software for whatever you want. *
* You don't have to pay. *
* 3. You may not pretend that you wrote this software. If you use it *
* in a program, you must acknowledge somewhere. That is, please *
* metion IJG, and Me, Dr. Tony Lin. *
* *
*********************************************************************************/
/////////////////////////////////////////////////////////////////////////////////
JppDemo platform: vc 6.0
Important files: MiniJpegEnc.h/cpp; MiniJpegDec.h/cpp; Dib.h/cpp
JPP format:
image width, 2 bytes;
image height, 2 bytes;
quality, 2 bytes;
real huffman-encoded image data, left bytes.
Compress key steps (with decompress in inverse order):
(1) Color convertion and sub-sampling;
(2) DCT: AA&N integer dct algorithm;
(3) Quantization;
(4) Huffman entropy encoding.
Notice:
We dont need any marker which started with 0xFF; So we can safely put only
one byte with 0xFF if one huffman-encoder outputing byte is 0xFF.
近期下载者:
相关文件:
收藏者: