Advertisement

JPG pictures

Started by January 28, 2000 05:58 AM
1 comment, last by Gandalf 25 years, 1 month ago
How is a JPG-picture coded? What is the main diffrence between a JPG and a BMP? Is it hard reading it in c++? Gandalf the White
Gandalf the Black
JPEG images are coded by using the limitations of the human visual system. This involves transforming pixels to frequency components and the like. A bit too much to explain here. Visit www.jpeg.org or so for more information.

About using .JPG''s: this is very simple to do with the IJG jpeglib-6b code. If you search for jpeglib-6a or jpeglib-6b, I am sure you will find the source code of the jpeg encoder/decoder lib. Run this source through your preferred C compiler, and read the doc. It is easy to use.

There is also something called the Intel JPEG Library, which has optimized routines in it. I don''t know if it is useful, and how it works. Visit www.intel.com for that

DaBit.


Advertisement
you could also check www.wotsit.org for additional information about the jpeg format.

beware, jpeg is very slow! if you need to load things fast you should consider sticking with bmp (or likewise), which i myself find quite sufficient.

This topic is closed to new replies.

Advertisement