Skip to main content

BD-J and Video Resolution changes

4 replies [Last post]
okasha
Offline
Joined: 2007-10-16
Points: 0

Hello,

I'm trying to develop a BD-J Menu that would detect video resolution changes (from SD to HD and vice versa) and draw the graphics with the correct scale and location accordingly. What are the steps to achieve this goal if it's doable?

Does the java graphics resolution plane scale automatically to fit when the video resolution changes? Or do I need to listen to some resolution update events from the player and then manually resize my Java graphics plane?

Thanks,
Okasha

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
blackmage
Offline
Joined: 2007-08-28
Points: 0

How are solutions of the screen obtained through java? And what is used to draw the graphics at the correct size at a current resolution?

richard_xieq
Offline
Joined: 2007-10-23
Points: 0

maybe you can get video device configuration or graphic device configuratie through HAVi's device. such as HScreen.getDefaultHScreen().getDefaultHVideoDevice().getCurrentConfiguration().getPixelResolution();

sandyhxh
Offline
Joined: 2007-10-23
Points: 0

it's depend, if it's has been set to keep_resolution, graphic resolution will not change to fit when the video resolution changes.

alihelmy
Offline
Joined: 2006-03-28
Points: 0

> it's depend, if it's has been set to keep_resolution,
> graphic resolution will not change to fit when the
> video resolution changes.

hello sandy...

according to the guidelines and what you here have suggested, i set the video template to:

[b]this.newVideoTemplate.setPreference(BDVideoConfigTemplate.KEEP_RESOLUTION, BDVideoConfigTemplate.REQUIRED_NOT);[/b]

however, i get IllegalArgumentException thrown on WinDVD and the HW players