Free JPEG decoder library (LGPL license), written in C++ and assembler. Includes extensive MMX instruction set specific optimizations.
Instructions
..................................
Make sure you have Visual C++ 6.0 Service Pack 3 or higher.
Load the workspace at jpgd/jpgd.dsw. The example console mode program,
jpg2tga, requires two parameters for it to do anything: a source
filename (a valid JPEG image), and a destination filename (TGA).
Example:
jpg2tga input.jpg output.tga
The image input.jpg will be written to ouput.tga. You may then view
output.tga in the viewer of your choice to verify that everything worked
as expected.
There are a number of useful test images in the "test_images" folder
that can be used to help verify that the decoder is working properly.
Notes: I hardcoded the "use_mmx" parameter to true in the jpeg_decoder
constructor call.. If you don't have an MMX capable processor you will
need to change this code. (A production program should check if the
processor supports MMX at run-time and adjust this parameter
accordingly.)
You should be able to compile and link using VC++ 5.0 if you remake the
projects/workspace. I haven't tried this, though.
File List:
bin/
0b
bin/jpg2tga.exe
72Kb
bin/jpg2tga_d.exe
224Kb
inc/
0b
inc/jpegdecoder.h
25Kb
inc/main.h
2Kb
jpg2tga/
0b
jpg2tga/2x2s.tga
12Kb
jpg2tga/Jpg2tga.cpp
6Kb
jpg2tga/jpg2tga.dsp
4Kb
jpg2tga/jpg2tga.plg
9Kb
jpg2tga/writetga.cpp
3Kb
jpg2tga/writetga.h
2Kb
jpgd/
0b
jpgd/jpgd.dsw
1Kb
jpgd/jpgd.ncb
113Kb
jpgd/jpgd.opt
54Kb
jpgdlib/
0b
jpgdlib/H2v2.cpp
10Kb
jpgdlib/idct.cpp
9Kb
jpgdlib/jidctfst.cpp
37Kb
jpgdlib/jpegdecoder.cpp
56Kb
jpgdlib/jpgdlib.dsp
3Kb
jpgdlib/jpgdlib.plg
1Kb
lib/
0b
lib/jpgdlib.lib
66Kb
lib/jpgdlib_d.lib
120Kb
license.txt
26Kb
readme.txt
9Kb
test_images/
0b
test_images/1X1P.JPG
3Kb
test_images/1X1S.JPG
4Kb
test_images/1X2P.JPG
3Kb
test_images/1X2S.JPG
3Kb
test_images/2X1P.JPG
3Kb
test_images/2X1S.JPG
3Kb
test_images/2X2P.JPG
2Kb
test_images/2X2S.JPG
2Kb
test_images/orig.tga
3Kb
Similar code
Dump JPEG marker information
(Popularity: ) : Enclosed are C source code and a DOS executable for jpegdump, a JPEG file inspection program. JPEG compression sources
(Popularity: ) : This distribution contains the second public release of the Independent JPEGGroup's free JPEG software.