AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2006.04.07 07:34 "[Tiff] LibTiff Suggestion, Need help to support application supplied JPEGTables.", by yourpattern
2006.04.07 09:01 "Re: [Tiff] LibTiff Suggestion, Need help to support application supplied JPEGTables.", by Joris
2006.04.07 10:05 "Re: [Tiff] LibTiff Suggestion, Need help to support application supplied JPEGTable s.", by yourpattern
2006.04.10 14:21 "Re: [Tiff] LibTiff Suggestion, Need help to support application supplied JPEGTables.", by Gerben Vos
2006.04.11 06:45 "Re: [Tiff] LibTiff Suggestion, Need help to support application supplied JPEGTabl es.", by yourpattern
2006.04.11 08:33 "Re: [Tiff] LibTiff Suggestion, Need help to support application supplied JPEGTables.", by Joris
2006.04.11 09:54 "Re: [Tiff] LibTiff Suggestion, Need help to support application supplied JPEGTables.", by Gerben Vos
2006.04.11 10:12 "Re: [Tiff] LibTiff Suggestion, Need help to support application supplied JPEGTables.", by Joris

2006.04.10 14:21 "Re: [Tiff] LibTiff Suggestion, Need help to support application supplied JPEGTables.", by Gerben Vos

It's quit useful if the use can specified it's own quantization tables for JPEG compression.

and I would like to propose the addition of the capablity of supporting application supplied JPEGTables. this would make the control of image quality of JPEG compress more powerful. currently, the only way to control the jpeg quality is TIFFSetField(tif, TIFFTAG_JPEGQUALITY, nQuality); and if we supply a way like:

TIFFSedField(tif,TIFFTAG_JPEGQUALITYTABLE,nTableType,nTableData,nTableDataSize);

or something else.

I agree that it would be nice to be able to specify the quantisation tables using a pseudo tag. I think the only problem will be that you have to be careful with the TIFFTAG_JPEGTABLESMODE pseudo tag, because it also affects the quantisation table handling.

However, maybe for your application at this moment it would be easier to do the JPEG compression yourself, and then use the raw strip/tile writing functions?

Gerben Vos.