Skip to main content

screen config aspect ratio and resolution

4 replies [Last post]
rdecker
Offline
Joined: 2009-02-25

I have the mpeenv.ini setting DISP.DEFAULT.CONFIG set to 5: 960x540 1:1 graphics, 1920x1080 1:1 video, 1920x1080 1:1 background (with I-frame support)

When I get the best config for the video device I get 8:9 720x480. Is that because it is the aspect ratio and resolution of the video that is playing?

The best configs for background and graphics devices both return a resolution of 640x480. Shouldn't it be 960x540?

I'm using empty config templates.

Reply viewing options

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

I think this may be related to bug 249. I'll check it out as I work on that bug, and get back to you.

sarendt
Offline
Joined: 2009-07-21

Can you post a code snippet of how you are initializing the templates you are passing in? Is it an empty template array, or a single template constructed using the default constructor?

rdecker
Offline
Joined: 2009-02-25

It's the latter:

getBestConfiguration(new HBackgroundConfigTemplate[] {new HBackgroundConfigTemplate()}));
getBestConfiguration(new HGraphicsConfigTemplate[] {new HGraphicsConfigTemplate()}));
getBestConfiguration(new HVideoConfigTemplate[] {new HVideoConfigTemplate()}));

sarendt
Offline
Joined: 2009-07-21

The problem is that the default constructor for the templates gives all the parameters (e.g., resolution, pixel aspect ratio, etc.) a weight of "don't care". This causes every coherent config (SD and HD) to be a match to the template, so the RI picks a config off the list of matches and returns it.