Skip to main content

Only Aspect ratio is used while setting the output configuration using setOutputConfiguration of VideoOutputSettingsProxy

Please note these forums are being decommissioned and use the new and improved forums at
1 reply [Last post]
Joined: 2011-07-18

Output configuration is set for Video output port using setOutputConfiguration API of DeviceSettingsVideoOutputPortImpl class. This class inturn calls setOutputConfiguration of VideoOutputSettingsProxy class.

In this method updateHScreenAspectRatio method is called which updates all the three devices (Graphics, Back ground, Video).
This API takes current HScreen and requested config aspect ratio as input parameters.
For updating the config this aspect ratio is used along with the current grahics device resolution.
As a result coherent configuration selected will have the requested aspect ratio and the resolution of the current graphics device instead of resolution requested.
Should not we be using the resolution also, so that the coherent configuration that is applied will be as near as possible to the requested configuration

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2009-07-21

The current graphics resolution is maintained because the VideoOutputPort API just controls the video output, not both the graphics and video resolution. The setOutputConfiguration method of VideoOutputSettingsProxy changes the coherent config to keep the coherent config consistent with the new video resolution.

To change the graphics and video resolutions simultaneously, an xlet can request a entirely new coherent config rather than using the VideoOutputPort API.