JDK-8100249 : Use faster JPEG loading mechanism in ImageLoader
  • Type: Sub-task
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: fx1.2
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2008-11-22
  • Updated: 2015-06-16
  • Resolved: 2009-10-16
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.
Other
fx1.3Fixed
Description
Currently ImageLoader uses Image I/O for loading images, which means it's using the core ImageReader plugins (reliable but not necessarily fast).  We should consider bundling a slimmed down version of the SSE-accelerated JAI IIO Tools JPEG reader for better performance (offers approx. 2x better performance than the core JPEGImageReader).  We would need some help from the mediaLib team to provide a minimal native binary, and also some minor tweaks to jai-imageio-core to build a minimal JAR file.

Another option on Mac OS X is to write a little adapter that uses the native ImageIO.framework to load JPEGs (and other images) directly into BufferedImages.  The benefit here would be better performance without increasing the download size.


Comments
Fixed by the JPEGImageLoader in the javafx-iio and javafx-iio-native sub-projects of soma/scrum/graphics/runtime.
16-10-2009

Assigning to Brian just so we can take it into account in the work for RT-5322. Most likely we'll just enable this in the new image loader but not port it to the IIO-based image loader, at which point we can consider closing this issue.
12-08-2009

I've split off the "use ImageIO.framework for loading images on Mac OS X" idea off into a separate issue; see RT-2465.
01-12-2008