AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
April 2006

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2006.04.07 07:34 "application supplied JPEGTables", by <yourpattern@126.com>
2006.04.07 09:01 "Re: application supplied JPEGTables", by Joris Van Damme
2006.04.07 10:05 "Re: application supplied JPEGTables", by <yourpattern@126.com>
2006.04.10 14:21 "Re: application supplied JPEGTables", by Gerben Vos
2006.04.11 06:45 "Re: application supplied JPEGTables", by <yourpattern@126.com>
2006.04.11 08:33 "Re: application supplied JPEGTables", by Joris Van Damme
2006.04.11 09:54 "Re: application supplied JPEGTables", by Gerben Vos
2006.04.11 10:12 "Re: application supplied JPEGTables", by Joris Van Damme

2006.04.11 09:54 "Re: application supplied JPEGTables", by Gerben Vos

Joris wrote:

> Meanwhile, why are you refering to a pseudo tag? Would it not 
> suit these needs, if the actual JpegTables tag can be set, 
> and when next LibJpeg is used to compress, in this case, the 
> application supplied tables that are set in this tag are used?

Yes, that could also be an idea. But I suppose you will either have to a)
parse the tables out from the tag yourself, or b) create a temporary libjpeg
decompression object to do that parsing, and then copy the tables into the
libjpeg compression object. Neither seems very elegant to me.

But I'm not going to implement this, and I'm not very much into the libtiff
internals when it comes to JPEG compression, so your ideas are probably
worth more than mine.

> > 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?
>
> You can do that, because the tables inside the strip/tile are 
> supposed to overwrite the tables inside the JpegTables tag, 
> if there are tables in both.

Well you' d have to not write a JpegTables tag in that case of course, or
construct your own (doesn't libtiff support writing a raw JpegTables tag?).

					Gerben.