[OpenJDK 2D-Dev] RFR: 8145019: Exceptions from TIFFImageReader.read() when loading bit depth test images

Brian Burkhalter brian.burkhalter at oracle.com
Wed Dec 28 22:17:59 UTC 2016

Please review at your convenience.

Issue:	https://bugs.openjdk.java.net/browse/JDK-8145019
Patch:	http://cr.openjdk.java.net/~bpb/8145019/webrev.00/

The problems were that in some cases an incorrect ImageTypeSpecifier was being created for the layout of the image, that odd bit-depth data, e.g., 6 bits per sample, were not being expanded into, e.g., 8-bit components, and that the data expansion for planar (banded) images was using sizes appropriate to all bands as opposed to single bands. With this change, all the “flower” images in the “depth” subdirectory of the “libtiffpic” test image set are able to be displayed without exceptions.



More information about the 2d-dev mailing list