Applications Graphics & Sound Computer Graphics Graphic formats JPEG  

Small JPEG decoder library

download download  
important code information
author:
Rich geldreich
minimum requirements:
Small JPEG decoder library description

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.exe72Kb
bin/jpg2tga_d.exe224Kb
inc/0b
inc/jpegdecoder.h25Kb
inc/main.h2Kb
jpg2tga/0b
jpg2tga/2x2s.tga12Kb
jpg2tga/Jpg2tga.cpp6Kb
jpg2tga/jpg2tga.dsp4Kb
jpg2tga/jpg2tga.plg9Kb
jpg2tga/writetga.cpp3Kb
jpg2tga/writetga.h2Kb
jpgd/0b
jpgd/jpgd.dsw1Kb
jpgd/jpgd.ncb113Kb
jpgd/jpgd.opt54Kb
jpgdlib/0b
jpgdlib/H2v2.cpp10Kb
jpgdlib/idct.cpp9Kb
jpgdlib/jidctfst.cpp37Kb
jpgdlib/jpegdecoder.cpp56Kb
jpgdlib/jpgdlib.dsp3Kb
jpgdlib/jpgdlib.plg1Kb
lib/0b
lib/jpgdlib.lib66Kb
lib/jpgdlib_d.lib120Kb
license.txt26Kb
readme.txt9Kb
test_images/0b
test_images/1X1P.JPG3Kb
test_images/1X1S.JPG4Kb
test_images/1X2P.JPG3Kb
test_images/1X2S.JPG3Kb
test_images/2X1P.JPG3Kb
test_images/2X1S.JPG3Kb
test_images/2X2P.JPG2Kb
test_images/2X2S.JPG2Kb
test_images/orig.tga3Kb

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.
User reviews

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
Email*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
 
Rate me
supported os
stats
downloads 503
version 0.92
size in Kb 323
popularity   4428/7913374
user rating 6/10
ad


New Code
Popular Code