Is there any project for increment render speed?.
One way I'd like to see this happen is by using java.nio. For example, if you have code that reads from jni into a direct nio Buffer, there's no (efficient) way to create an Image from that Buffer without copying it into a primitive array. I'd like to see this feature added to mustang. There are lots of situations in multimedia where nio could be useful jmf, javasound. It eases greatly endian conversion, or converting from primitive types for example. I'd like to see a way to create a BufferedImage from a java.nio.ByteBuffer or javax.sound.sampled.AudioInputStream implement a [code]getInputChannel()[/code] method and [code]javax.sound.sampled.SourceDataLine [/code]implement [code]getOutputChannel().[/code]
So that for example I can get data in little-endian format, do my operations in big-endian and output back in big-endian.
An other example is jmf. Rather than writing a codec that can only handle short for example, I could write a codec that uses ShortBuffer. If the preceding codec uses ByteBuffer, no need to convert things manually, just use asShortBuffer().
I think it would make the API more coherent if use Buffers everywhere you use primitive arrays, just like you can use CharSequence everywhere String is used.
What do other people think about it ?
This is a good idea, but not at the top of my priority list. I'd prefer working on Webstart and other visible "Java on the desktop" issues rather than stuff that happens behind the scenes. With the exception of games (which are darn cool, don't get me wrong) I find Java imaging performance to be quite satisfactory for now.
I'm not sure I understand the question. What do you mean by increment render speed?
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.