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 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.04.02 12:01 "TIFFGetField and TIFFSetField", by Breda Mccolgan
2004.04.02 14:54 "Re: TIFFGetField and TIFFSetField", by Frank Warmerdam

2004.04.02 14:54 "Re: TIFFGetField and TIFFSetField", by Frank Warmerdam

Breda McColgan wrote:
> Hi Frank,
> 
> another question for you: should the list of tags in TIFFGetField and
> TIFFSetField be identical?
> 
> 
> The following tags are listed in TIFFGetField, but not in TIFFSetField:
>   o TIFFTAG_DATATYPE
>   o TIFFTAG_STRIPBYTECOUNTS
>   o TIFFTAG_STRIPOFFSETS
>   o TIFFTAG_TILEBYTECOUNTS
>   o TIFFTAG_TILEOFFSETS
> 
> Should these tags be added to TIFFSetField?

Brenda,

The strip and tile offsets and counts should not be set with TIFFSetField().
They are set internally as the image is written.  The TIFFTAG_DATATYPE
apparently serves a similar purpose to TIFFTAG_SAMPLEFORMAT and should not
be written in new products.  It is only available for reading old products.

In short, I think it is fine that they are not listed for TIFFSetField().

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent