Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6207877

OGL: remove code for unused pixel formats

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 5.0
    • client-libs
    • 2d
    • b33
    • generic
    • solaris_9

      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

            campbell Christopher Campbell (Inactive)
            campbell Christopher Campbell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: