jpeg

所属分类:图形图像处理
开发工具:Visual C++
文件大小:21KB
下载次数:135
上传日期:2008-02-07 20:00:16
上 传 者time2fly
说明:  jpeg encoder and decoder 都很好用,前者的注释清晰,后者就少了一点。
(jpeg encoder and decoder are very easy to use, the former clearly notes, the latter on少了一点.)

文件列表:
enc\ENC.C (18674, 2003-10-21)
enc\JGLOBALS.H (1452, 2003-10-21)
enc\JTABLES.H (3959, 2000-10-10)
enc\JTYPES.H (3361, 2000-10-10)
dec\DECODER.TXT (1440, 2000-10-10)
dec\JPEGAPP.C (3837, 2000-10-10)
dec\JPEGDEC.C (27954, 2000-10-10)
dec\JPEGDEC.H (473, 2000-10-07)
enc (0, 2008-02-07)
dec (0, 2008-02-07)

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

近期下载者

相关文件


收藏者