United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 4268438 drawImage from 8-bit indexed image to a 15/16/24/32 bit destination is slow
4268438 : drawImage from 8-bit indexed image to a 15/16/24/32 bit destination is slow

Details
Type:
Bug
Submit Date:
1999-09-03
Status:
Resolved
Updated Date:
1999-09-21
Project Name:
JDK
Resolved Date:
1999-09-21
Component:
client-libs
OS:
generic
Sub-Component:
2d
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
1.2.0
Fixed Versions:
1.3.0

Related Reports
Relates:

Sub Tasks

Description
Drawing an 8-bit indexed image to a destination that is 15, 16, 24 or 32
bits deep is much slower than it was in 1.1.

                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
kestrel

FIXED IN:
kestrel

INTEGRATED IN:
kestrel


                                     
2004-06-14
SUGGESTED FIX

The colormaps are specified in ARGB format and need to be converted
for any of the destination types except for ARGB and XRGB.

The image loops that render these types of source images convert each
pixel individually when the colormap should be converted once up front
and then the pixels should just be sent through a lookup table when
copied to the screen.
                                     
2004-06-11
EVALUATION

The blit loops are all converting each pixel to the destination format
rather than creating a converted color table and just using a lookup
to convert the image.

Also, if the IndexColorModel contains all gray values, then the image is
tagged as "Index8Gray" internally and there are no blit loops for images
of these formats to the popular screen formats.  These images can use the
same loops as the indexed color images, so the same loops should be
registered for both types of formats.

jim.graham@Eng 1999-09-07
                                     
1999-09-07



Hardware and Software, Engineered to Work Together