JDK-6207877 : OGL: remove code for unused pixel formats
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_9
  • CPU: generic
  • Submitted: 2004-12-13
  • Updated: 2008-02-06
  • Resolved: 2005-04-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b33Fixed
Related Reports
Relates :  
Description
There are a number of "pixel formats" defined in OGLSurfaceData.c that are
never used for various reasons.  We have purposely not defined blit loops
involving these formats (in OGLBlitLoops.java) because they are not
compatible with OpenGL.

For example:
  ThreeByteBgr
  FourByteAbgr
  FourByteAbgrPre
are not used because we cannot guarantee the byte alignment of data specified
in these formats.

Also:
  ByteIndexed
  Index8Gray
  Index12Gray
are not used because they rely on OpenGL color tables, which are not well
supported and typically offer poor performance (it's faster for us to just
expand indexed images into something like IntArgbPre and send that down to
OpenGL).  The code in OGLBlitLoops.c that deals with indexed images and
color tables should be removed as well.
###@###.### 2004-12-13 22:11:03 GMT

Comments
EVALUATION The pixel formats described here were part of some experimental code from early on in the development of the OGL pipeline. I left them in there in case some day we wanted to put more effort into making them work, but that day is here and it appears that there's no use in pursuing them further; all they add is code clutter. This should be a quick clean-up project. ###@###.### 2004-12-13 22:19:21 GMT
13-12-2004