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
November 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.11.26 14:17 "Bug in LogLuv", by Antonio Scuri
2003.11.26 16:31 "Re: Bug in LogLuv", by Greg Ward
2003.11.26 17:41 "Re: Bug in LogLuv", by Antonio Scuri
2003.11.26 17:54 "Re: Bug in LogLuv", by Greg Ward
2003.11.27 15:10 "Re: Bug in LogLuv", by Andrey Kiselev
2003.11.27 15:23 "Re: Bug in LogLuv", by Kai-uwe Behrmann
2003.11.27 15:48 "Re: Bug in LogLuv", by Antonio Scuri
2003.11.27 16:01 "Re: Bug in LogLuv", by Kai-uwe Behrmann
2003.11.27 19:10 "Re: Bug in LogLuv", by Greg Ward

2003.11.27 15:48 "Re: Bug in LogLuv", by Antonio Scuri

At 13:23 27/11/2003, Kai-Uwe Behrmann wrote:
> Is there an option in libtiff to convert Your format to 32-bit floats or
> 16-bit ints other than the 8-bit output I optain currently with libtiffs
> fallback functionality ?
> This would help me supporting this format in cinepaint.

Use the pseudo tag TIFFTAG_SGILOGDATAFMT to force the returned data to 
be what you want:

  *  SGILOGDATAFMT_FLOAT       = IEEE 32-bit float XYZ values
  *  SGILOGDATAFMT_16BIT     = 16-bit integer encodings of logL, u and v
  *  SGILOGDATAFMT_RAW         = single 32-bit unsigned integer with 
                                      encoded pixel
  *  SGILOGDATAFMT_8BIT          = 8-bit default RGB gamma-corrected values

Notice that you should set this tag before consulting BitsPerSample and 
SampleFormat, because they will be changed internally when the tag is set.

But in the TIFFRGBAImageBegin function it is hardcoded an 
SGILOGDATAFMT_8BIT conversion. If you use the TIFFRGBAImage interface you 
should be aware of that.

Best,
scuri