2009.03.16 10:54 "Re: [Tiff] Needs help on implementing the JPEG 7 compression", by Gerben Vos
I have a requirement where in i had to incorporate the JPEG 7
> compression. When i searched in the net i am getting an algorithm for > only JPEG 6. I am in need of some sample c code for implementin the
> JPEG 7 compression to the TIFF images. If some one is having kindly > do share the same if possible.
Interesting! Where did you find the algorithm for compression type 6 (old-style JPEG-in-TIFF)?
C code for compression type 7 (new-style JPEG-in-TIFF) has been available for a long time as part of libtiff. Just download it from http://www.remotesensing.com/libtiff/. The code is in tif_jpeg.c.
A specification of compression type 7 can be found at http://www.remotesensing.org/libtiff/TIFFTechNote2.html
This document also explains why it is a terribly bad idea to try to implement compression type 6. Libtiff contains read-only code for this deprecated compression type.