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
December 2004

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

2004.12.11 02:06 "TIFF Pyramid", by Eric Vergnaud
2004.12.11 15:35 "Re: TIFF Pyramid", by Bob Friesenhahn
2004.12.12 11:53 "Re: TIFF Pyramid", by Eric Vergnaud
2004.12.12 16:57 "Re: TIFF Pyramid", by Bob Friesenhahn
2004.12.12 19:06 "Re: TIFF Pyramid", by Eric Vergnaud
2004.12.13 15:07 "Re: TIFF Pyramid", by Ed Grissom
2004.12.13 15:16 "Re: TIFF Pyramid", by Eric Vergnaud
2004.12.14 20:30 "Re: TIFF Pyramid", by Andrey Kiselev
2004.12.13 15:16 "Re: TIFF Pyramid", by Ed Grissom
2004.12.11 17:41 "Re: TIFF Pyramid", by Joris Van Damme
2004.12.12 11:56 "Re: TIFF Pyramid", by Eric Vergnaud
2004.12.13 02:45 "Re: TIFF Pyramid", by Joris Van Damme
2004.12.13 06:38 "Re: TIFF Pyramid", by Andrey Kiselev
2004.12.13 09:56 "Re: TIFF Pyramid", by Eric Vergnaud
2004.12.13 11:38 "Re: TIFF Pyramid", by Joris Van Damme
2004.12.13 12:32 "Re: TIFF Pyramid", by Joris Van Damme
2004.12.13 13:54 "Re: TIFF Pyramid", by Eric Vergnaud

2004.12.13 02:45 "Re: TIFF Pyramid", by Joris Van Damme

Eric,

> Yes I know how it is structured, since that is described in a tech note from
> Adobe. Each image in the main ifd has a subifd for the lowres. All lowres
> are chained in that subifd.
>
> What I'm looking for is sample code to write that.

I see. Sorry I misunderstood.

I'm not a C coder, but as you are you might be able to make sense of it. In the
unit tif_dirwrite, function _TIFFWriteDirectory, section SubIFDs tag writing,
there's this remark in the code:

    * Total hack: if this directory includes a SubIFD
    * tag then force the next <n> directories to be
    * written as ``sub directories'' of this one.  This
    * is used to write things like thumbnails and
    * image masks that one wants to keep out of the
    * normal directory linkage access mechanism.

I am in particular not very sure what '<n>' means here. But presumably, you
could set up your first page IFD in the normal way, including the SubIFD tag,
pass the raster data normal way, and next use TIFFWriteDirectory to flush it.
Next <n> times you repeat the tagsetup-rasterpassing-TIFFWriteDirectory scheme,
you'll be writing the SubIFD chain, instead of appending to the main chain.

It does make some sense to me if <n> means the value you pass for the SubIFD
tag, since that value could only be dummy anyway. But I'm only guessing.

If you can make sense of any of this, please let us know.


Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html