hi!
I want to ask to the ix86 users if they have problem with writing images to Streams with the ImageIO-plugins provided at Java Advanced Imaging SDK. I can observe various behaviour with the JAI/JIIO impl on ix86 platforms running wih windows both J2SE 5 and 6. I tested with an Intel Celeron D using a d3d card and an Amd Sempron with integrated graphics chipsets. Celeron D w/ d3d works but Sempron w/ integrated (S3 graphics) chipset doesn't.
More exactly with a code example,
the (ImageWriter).write((StreamMetaData), (IIOImage), (WriteParams)) doesn't get in error but the output file is empty with Sempron and integrated graphics chipset. I can't find any explanation of that issue with JAI/JIIO writiing to x-png Streams though it works well when writing to BufferedImages. There's also a mysterious latency with the JFileChooser on some Windows platform, a bug-issue that's already known at Sun... Here's the code sample :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| if (!(data instanceof BufferedImage)) { data = convertToBuffered(data, this); } if(!(data instanceof RenderedImage)) throw new IOException("READ/WRITE ERROR : Sprite image isn't compatible with RenderedImage. " + data.getClass().getName()); ImageWriter w = getWriter(0); IIOMetadata meta = w.getDefaultImageMetadata(ImageTypeSpecifier.createFromRenderedImage((RenderedImage) data), w.getDefaultWriteParam()); w.setOutput(output); waitFor(trackerPty); if (data == null) { throw new NullPointerException("Sprite " + base + " had no data to draw "); } IIOImage iioimage = new IIOImage((RenderedImage) data, null, meta); if (w.canInsertImage(-1)) { w.writeInsert(-1, iioimage, w.getDefaultWriteParam()); } else { w.write(meta, iioimage, w.getDefaultWriteParam()); } System.out.println("writing is done."); |
Can someone give a tip about that issue ?
