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 2003

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

2003.12.26 02:25 "problems with custom TIFF", by Pushkar Pradhan
2003.12.26 09:36 "Re: problems with custom TIFF", by Andrey Kiselev
2003.12.30 00:09 "Re: problems with custom TIFF", by Pushkar Pradhan
2003.12.30 00:27 "Re: problems with custom TIFF", by Joris Van Damme
2003.12.30 00:47 "Re: problems with custom TIFF", by Pushkar Pradhan
2003.12.30 01:09 "Re: problems with custom TIFF", by Joris Van Damme
2003.12.31 11:40 "Re: problems with custom TIFF", by Andrey Kiselev
2004.01.01 23:11 "Re: problems with custom TIFF", by Pushkar Pradhan

2003.12.30 00:47 "Re: problems with custom TIFF", by Pushkar Pradhan

Here's mail with > prefix, I was using "Indent original messages on replies
and forwards" but it seems that not all can see that indent. I wasn't sure
how much to remove from the original post so I mailed the whole messages.

Now my question:
> On Thu, Dec 25, 2003 at 08:25:47PM -0600, Pushkar Pradhan wrote:
> > Here's my code for more information:
> >  size = TIFFReadEncodedStrip(tif, strip, bufRGB, (tsize_t)-1);
>                                                   ^^^^^^^^^^^^^
> Why do you using -1 here? It should be a size of bufRGB in bytes.
I read the libtiff tutorial which suggests using (tsize_t)-1) as it will
read in the whole tile/strip by default. It seems to work okay for me.

I'm now writing out the extrasamples tag but still IMAGINE can't open the
file for viewing.
This is how I get/set in the tags is this correct?
 TIFFGetField(tif, TIFFTAG_EXTRASAMPLES, &tags->extra, &tags->extraTypes);
 TIFFSetField(wtif, TIFFTAG_EXTRASAMPLES, wtags.extra, wtags.extraTypes);

 Where tag members are:
   uint16 extra;
   uint16 *extraTypes;

Thanks,
Pushkar