JPEGLIB Version 0.1.1 	(24/08/2000) pack 2
promethee@voila.fr

The library can be used in two ways, you can either use the provided dll 
(JPEGLIB.dll - found in dir Resource.Example) along with the lib file in
the same directory (note: for TASM users, the lib file must first be 
processed by COFF2OMF.EXE to be compatible); or use only the lib file
(which is then going to be linked with your exe - thus producing a SINGLE
file). Either way, the usage of the library is the same:


* There is a JPEG_STRUCTURE with following members,
	# dwWidth : actual width of the picture (what is to be displayed)
	# dwHeight : ditto but height
	# BMPWidth : width of the decompressed bitmap MUST be a 
			multiple of 16
	# BMPHeight : ditto but height
	# lpBitMap : address of the memory buffer allocated by the lib
			and holding the pixels (32-bit)
* Mapping2BMP(lpJPEG, lpJPEG_STRUCTURE)
	decodes the memory-mapped JPEG file located at lpJPEG and fills
	the JPEG_STRUCTURE whose pointer is passed.
* Res2BMP(hInstance, resID, lpJPEG_STRUCTURE)
	decodes the resource resID of the module hInstance and fills the
	structure.
* Kill_JPEG(lpJPEG_STRUCTURE)
	deallocates memory needed by the picture associated with the
	passed structure (do this to avoid memory LEAKS).


It is up to the caller to allocate a JPEG_STRUCTURE (well, one for each
picture).

IMPORTANT NOTE:
Not all JPEG formats are supported (well, at least in current version).
According to feedback, I could add more formats (but keep in mind that
both the JPG file AND the library will be larger). Like I said, the
supported format is one of the smallest, still allowing good quality -
the picture must be compressed using BASELINE DCT coding (this means NOT
PROGRESSIVE) and with a YUV sampling of 2:1:1, this sampling is the most
widely found among encoders (ie the one often used when you cannot choose).
You can for example use ACDSEE or LView Pro to convert your picts to the
right format.

SECOND IMPORTANT NOTE:
Current version of the lib-only solution only works with MASM (and I think TASM -
though tests still need to be run). But if the need arises, I could try and make
it compatible with HLLs, but this will be achieved only if I guet FEEDBACK.

I you use the library please include me in the greetings, and let me know
what you used it for ...

promethee@voila.fr
promethee
