| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2005.10.28 04:21 "Re: How located pixels with BitsPerSample not bound to byte?", by Chris Cox> > > The second problem involves this same section of code (1-32 bit sample... > > > > I'll stay out of this issue, though I suspect that 24bit data should not > > be byte swapped. > > The latest libtiff does byte-swap 24-bit data because Chris Cox at > Adobe claims that this is what the TIFF specification implies and > because it is necessary to read/write the new 24-bit floating format > from Adobe Photoshop CS2. I must admit to being dubious about this > claim, and I believe that Joris is as well. But if Adobe Photoshop > CS2 does it, by-golly it must be right! 24 bit RGB is usually a misnomer for 8 bits/channel * 3 channels, and doesn't get any byte swapping. But a single 24 bit value (integer or float, aka 24 bit/channel) needs to be byte swapped - as does any single value that has bits/channel equal to a multiple of 8. (if (bitsPerSample % 8 == 0) then byteswap) Chris |
|||||||