views:

922

answers:

5

I have written code to compress and decompress image files using a proprietary SDK for transmission from an aircraft via satellite. Unfortunately a license must be purchased for decompression as well as compression. Until now my applications have been mostly used in-house so I can keep track of the licenses and distribution. Now I need to provide the applications for outsiders and I can neither control distribution nor want to pay for the licenses.

Does anyone know of free de-compression programs, SDKs, or libraries? I program in C++ for Windows NT, 2000, XP.

My image files are raw data, monochrome, with 16bit unsigned pixels and the compression that is used is lossless or very mildly lossy.

+2  A: 

Maybe this could be a good starting point: OpenJPEG. If it doesn't meet your requirements then ask at their forum for some hints.

Some people at my university used jj2000 for various tests. However it is in Java...

Anonymous
I've had success with OpenJPEG in Windows. (C#; I wrote my own wrapper in C and call that DLL with C#). It's kind of slow but it works.
Jared Updike
A: 

Why would anyone tagetting the windows platform pay someone for a Jpeg library when GdiPlus does it already?

http://msdn.microsoft.com/en-us/library/ms533844(VS.85).aspx

should be a good starting point. gdiplus has the 2nd best jpeg decompression speedwise (in my tests for whatever that counts for). And is distributed as an OS component with Windows 5 and up. i.e. Windows XP and greater.

If, for any reason, GdiPlus is unacceptable...

Intel used to distribute a jpeg decompression * compression library, inventively named the "intel jepg library" or ijl. the redistributable consists of a single dll, ijl15.dll If you can find the original distribution, its licensed for free distribution and use. Intel just dont host it any more. Its been replaced with the intel performance primitives library, which does contain jpeg compression and decompression, but the per seat licensing is very fair, and again theres no limit on redistribution of the coff redistributables.

Chris Becke
There's a difference between JPEG and JPEG2000. JPEG2000 is a totally different animal with much better compression.
daub815
+2  A: 

also libjasper: link text

+3  A: 

It's just a thought, but the de facto standard for JPEG2000 is Kakadu because Dr. Taubman pretty much wrote the JPEG2000 standard. Although it costs some money, it is the best library that I know of.

daub815