| 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 |
Thread2008.04.24 14:16 "Re: TIFFReadRawStrip buffer data type", by James SumnersThank you guys. I got everything working as it should be. On Sat, Mar 29, 2008 at 12:51 PM, Bob Friesenhahn <bfriesen@simple.dallas.tx.us> wrote: > On Sat, 29 Mar 2008, James Sumners wrote: > > > > That makes a little sense. I was reading the image into a char buffer > > before, but got the feeling that I wasn't working with the correct > > values. I didn't think about an unsigned char. I'll give that a try > > and see how it works for me. > > > > The only time there is benefit to using something other than an 'unsigned > char' buffer type is when the bits per sample is 16, 32, or 64 and the data > is presented the same as the CPU's native respresentation. Otherwise the > data is packed in bitwise "natural" (MSB) order and needs to be unpacked > using bit shifts/masks or some other approach. > > > > Bob -- James Sumners http://james.roomfullofmirrors.com/ "All governments suffer a recurring problem: Power attracts pathological personalities. It is not that power corrupts but that it is magnetic to the corruptible. Such people have a tendency to become drunk on violence, a condition to which they are quickly addicted." Missionaria Protectiva, Text QIV (decto) CH:D 59 |
|||||||