JPEG

所属分类:图形图象
开发工具:C/C++
文件大小:36KB
下载次数:53
上传日期:2010-06-20 14:28:03
上 传 者xiaob
说明:  jpeg编解码程序,c语言的,很好用,直接用vc++打开编译便可使用。很好移植
(jpeg decoding process, c language, useful, open directly vc++ compiler can be used. Good transplant)

文件列表:
J_Decoder_CSRC\DECODER.TXT (1440, 2000-10-10)
J_Decoder_CSRC\JPEGAPP.C (3837, 2000-10-10)
J_Decoder_CSRC\JPEGDEC.C (27954, 2000-10-10)
J_Decoder_CSRC\JPEGDEC.H (473, 2000-10-07)
J_Decoder_CSRC\MAKEWAT.BAT (118, 1999-12-12)
J_Encoder_CSRC\ENC.C (18674, 2003-10-21)
J_Encoder_CSRC\JGLOBALS.H (1452, 2003-10-21)
J_Encoder_CSRC\JPGALGO.TXT (46039, 2000-10-09)
J_Encoder_CSRC\JTABLES.H (3959, 2000-10-10)
J_Encoder_CSRC\JTYPES.H (3361, 2000-10-10)
J_Decoder_CSRC (0, 2010-06-20)
J_Encoder_CSRC (0, 2010-06-20)

Hi there, the archived file you got should contain the C source of my JPEG encoder. Legal stuff ----------- You get this source for free so absolutely no warranty is provided with it. Use it at your own risk. Description ----------- The principles of designing my JPEG encoder were mainly clarity and portability. So it's made in plain ANSI C. That's why it worked, compiled on a lot of C compilers. Here is the list: WATCOM C 10.0, DJGPP 2.0, VISUAL C 6.0, GCC under Linux,Solaris,VMS, FreeBSD. And its simplicity makes it fast enough I think. The FDCT routine is taken with minor modifications from Independent JPEG Group's JPEG software . So don't ask me details about that. The rest it's done by me. The program should give the same results on any C compiler which provides at least 256 kb of free memory. I needed that for the precalculated bitcode (3****k) and category (***k) arrays , not to mention the memory needed for the truecolor BMP. Since it's made to encode a truecolor BMP into a JPG file, I think that it should be no problem for you to figure out how to modify the C source in order to use it with any RGB image you want to compress (small enough to fit into your memory) . A note: The JPG format I used is a personal choice: The sampling factors are 1:1 for simplicity reasons, the Huffman tables are those given in the standard (so it's not optimized for that particular image you want to encode), etc. I coded only what I needed from a JPEG encoder. Probably it could have more advanced features. There are a lot of other JPG formats (markers in another order, another markers), so don't ask me why a JPG file not encoded with this encoder has a different format (different locations , another markers...). Though not necessary, an email saying at least 'THANKS ' would be nice if you find it useful. You are free to use/modify it in a your production(s) but it would be nice to say in your documentation that you used ideas/routines from the JPEG encoder made by Cristi Cuturicu. For more info you can check the doc "jpgalgo.txt" or the JPEG standard. Both can be found at www.wotsit.org If you have questions regarding this encoder, want to improve it, maybe report bugs, here is my email address: cristic22@yahoo.com

近期下载者

相关文件


收藏者