United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-5051527 Faster, more direct software transformation of images
JDK-5051527 : Faster, more direct software transformation of images

Details
Type:
Bug
Submit Date:
2004-05-22
Status:
Resolved
Updated Date:
2005-12-01
Project Name:
JDK
Resolved Date:
2004-10-25
Component:
client-libs
OS:
solaris_8,windows_2003,generic,windows_xp,windows_2000
Sub-Component:
2d
CPU:
x86,sparc,generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
1.2.1,1.4.0,5.0,5.0u4
Fixed Versions:

Related Reports
Duplicate:
Duplicate:
Duplicate:
Duplicate:
Relates:
Relates:

Sub Tasks

Description
The current code to transform images uses an image processing library
to do the work.  For many common image types the image data must first
be massaged into the correct format and data structures that are
needed by the general-purpose image processing library.  Also, since
the library does not provide an operation which both transforms the
data and also composites the results into a destination image, there
is always at least one intermediate buffer created for each transform
operation, possibly more if various image format conversions end up
being necessary to communicate with the library's internal formats.

It should be possible to create our own routines to perform the
task of image transformation and blending/compositing it into a
destination in one operation with no expensive intermediate buffers.

Finally, the glue code that translates our internal image formats
and data into the format needed by the library has been the source
of many recent bugs and it has been difficult to maintain that
code.  Image transformation loops written specifically to our own
internal data structures should not only perform better, but produce
fewer bugs in the future.

                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mustang

FIXED IN:
mustang


                                     
2004-10-01
EVALUATION

New code has been prototyped which allows us to transform any of our
internally handled formats and composite to any of our internally
handled formats in one operation with only a minimal stack-allocated
one-line pixel buffer.  The new code performs much better for many
common image operations, handles any combination of source and destination
image formats and any type of alpha compositing with a great deal of
code sharing.

###@###.### 2004-05-21

The new transformation loops also fix some outstanding bugs in the
old interpolation code which was not premutliplying the alpha before
doing the color interpolations.  The new loops perform all interpolations
in a premultiplied color format...

###@###.### 2005-1-19 01:46:05 GMT
                                     
2005-01-19



Hardware and Software, Engineered to Work Together