2005.02.15 15:40 "[Tiff] Regarding the decoding of uncompressed Big Endian RGB TIFF files.", by Chinku Miandad M, Noida
I am facing some problem in the decoding of uncompressed big endian
RGB TIFF images. I am doing the testing with a particular file.
I found that in the file the value of the "SamplesPerPixel" tag is 3. Also
the value of the "BitsPerSample" tag is 8, 8, 8. Also the value of the "Planar configuration" tag is one which means that the image data is present in the chunky format. i.e. RGBRGBRGBRGBRGB..........
But I am not getting the proper image after decoding.
The decoded image appears like a grayscale one. Also colored lines are appearing above the image. It seems like the image lines are getting corrupted slightly.
Do I need to do some swapping in the RGB data that I read from the image file? I am asking this since the file is of a big endian type.
I think I am getting the luminance component correct. But it seems like there is some problems with the chrominance components since I am not getting the proper color.
The same method is working fine with little endian RGB files.
Please give some comments on the same.
Any help will be deeply appreciated.
Chinku Miandad M
Member Technical Staff
A-5, Sector 24
Noida, Uttar Pradesh - 201301
Office Phone: +91-120-2411502, Ext.: 2341
mobile - 9871340518