2008.03.29 06:05 "Re: [Tiff] TIFFReadRawStrip buffer data type", by Bob Friesenhahn
If I supply TIFFReadRawStrip() with a buffer of type int, and read a grayscale image, I assume that each position in the buffer would be a value between 0 and 255, right? If so, then I'm a little confused about the debug output of my program. It seems to be reading a ten
This is the description for TIFFReadRawStrip:
TIFFReadRawStrip - return the undecoded contents of a strip
of data from an open TIFF file
The term "undecoded" means that you get the raw data as it exists in the TIFF file, including being compressed with some sort of compression.
Maybe you mean to use TIFFReadEncodedStrip() instead?
Even with TIFFReadEncodedStrip() you will get uncompressed data packed according to the bits per sample, samples per pixel, planar configuration, and photometric of the file. So it could be 4 bits per sample (two samples per byte) which refer to a color in a colormap.
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/