Incorrect display of 16-bit raw PNM
Posted: Sat Feb 14, 2009 5:20 am
Hi,
I noticed that the raw PNM formats (both PGM "P5" and PPM "P6") that have MAXVAL=65535 are displayed incorrectly. I believe you somehow get the endianness wrong, because I'm seeing the least-significant 8 bits from the 16-bit image.
If MAXVAL is anything less than 65535, or if the format is text ("P2" or "P3"), everything works fine.
The problem exists both in XnView and NConvert.
Best regards,
Cosmin
I noticed that the raw PNM formats (both PGM "P5" and PPM "P6") that have MAXVAL=65535 are displayed incorrectly. I believe you somehow get the endianness wrong, because I'm seeing the least-significant 8 bits from the 16-bit image.
If MAXVAL is anything less than 65535, or if the format is text ("P2" or "P3"), everything works fine.
The problem exists both in XnView and NConvert.
Best regards,
Cosmin