[OpenJDK 2D-Dev]  request for review: 8004801: The image of BufferedImage.TYPE_INT_ARGB is blank.
andrew.brygin at oracle.com
Thu Jan 31 10:54:30 UTC 2013
Hello Jennifer and Phil,
could you please review a fix for CR 8004801?
The test uses reverse lookup with single lookup table. This sort of
operation should change only color components of processed images,
but alpha channel should be unchanged.
However, due to a mistake in color order detection, the reverse
lookup is applied to the alpha channel, that results in completely
transparent destination image.
This mistake in color order is caused by the platform-depended
implementation of awt_getBIColorOrder() routine: for all unix
system, this routine is implemented in assumption that system is
Suggested solution is to move the awt_getBIColorOrder() to shared code,
and re-write taking system endianness into account.
Supplied regression test demonstrates the problem.
Please take a look.
More information about the 2d-dev