www.pudn.com > JpegTest.rar > README.SRC


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*64k) and 
category (64k) 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: 
		 cccrx@kermit.cs.pub.ro 
                or cristic22@yahoo.com