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.22 23:59 "undefined reference to `TIFFDataWidth'", by Pushkar Pradhan
2003.12.23 02:00 "FW: [Tiff] undefined reference to `TIFFDataWidth'", by Pushkar Pradhan
2003.12.23 08:32 "Re: undefined reference to `TIFFDataWidth'", by Andrey Kiselev

2003.12.23 08:32 "Re: undefined reference to `TIFFDataWidth'", by Andrey Kiselev

On Mon, Dec 22, 2003 at 05:59:25PM -0600, Pushkar Pradhan wrote:
> I've another question too, I'm calculating the bitspersample tag from
> sampleformat tag, will this always give the correct result: (dType is
> TIFFDataType) (wtags is just a struct containing all the tags I want).
>   wtags.sampleFormat = dType;
>   wtags.bitsPerSample = TIFFDataWidth(dType)*8;

Yes, this should work right, but it is better to check value
returned by the TIFFDataWidth() against 0 before using. It is possible
you can get broken or esoterical TIFF with unknown sample type, in this
case 0 will be returned.

						Andrey

-- 
Andrey V. Kiselev
Home phone:  +7 812 5274898  ICQ# 26871517