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

Improve performance of ColorConvertOp for default destinations with alpha

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 17, 21
    • client-libs
    • None
    • 2d
    • b07
    • generic
    • generic

      The "default destination" for the ColorConvertOp is used when the user passes "null" as the DST parameter. In this case, the "ColorConvertOp.filter" creates the default image and uses ComponentColorModel- 8 bits per color component and optionally 8 bits for the alpha channel. For example for the ARGB source default destination will be RGBA format. Note that the RGBA format is not supported by BufferedImage directly, so the custom image type will be used.

      Generic filtering of the CUSTOM image type is slow because we cannot pass that format directly to the CMM. It would be good to support CUSTOM images that were created by the ColorConvertOp.

      Support of the default destination w/o alpha was implemented as part of the https://bugs.openjdk.org/browse/JDK-8005530. Since then we added support of the alpha to CMM code https://bugs.openjdk.org/browse/JDK-8012229.
      Now we can improve the performance of the default destination if it has the alpha channel.

            serb Sergey Bylokhov
            serb Sergey Bylokhov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: