Skip to main content

Detecting which java2d operations are accelerated

1 reply [Last post]
wmeissner
Offline
Joined: 2005-10-09

How do I detect when a feature such as bi-linear interpolation can be accelerated by java2d?

This is for video rendering - when the opengl or direct3d pipelines are being used, I want the video component to be able to automagically figure out it can smooth the video scaling using bi-linear interpolation, but when using software rendering, just use nearest-neighbour.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Dmitri Trembovetski

Unfortunately there's no way to tell for sure if a particular
operation is accelerated. There's an RFE for providing an api
for discovering capabilities, but it won't be implemented until
java 7.

Thanks,
Dmitri

java2d@JAVADESKTOP.ORG wrote:
> How do I detect when a feature such as bi-linear interpolation can be accelerated by java2d?
>
> This is for video rendering - when the opengl or direct3d pipelines are being used, I want the video component to be able to automagically figure out it can smooth the video scaling using bi-linear interpolation, but when using software rendering, just use nearest-neighbour.
> [Message sent by forum member 'wmeissner' (wmeissner)]
>
> http://forums.java.net/jive/thread.jspa?messageID=261887
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff JAVA2D-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".