Skip to main content

HVideoConfiguration & HGraphicsConfiguration are null for ZERO_GRAPHICS_IMPACT

4 replies [Last post]
tkooger
Offline
Joined: 2010-09-08

When trying to get the HVideoConfiguration and HGraphicsConfiguraton from the HVideDevice and HGraphicsDevice usnig a HGraphicsConfigTemplate/HVideoConfigTemplate will always return null for ZERO_GRAPHICS_IMPACT
What I have seen in the code is that there is no configuraton for ZERO_GRAPHICS_IMPACT in the VideoConfiguation/GraphicsConfiguration. So if I have either the HGraphicsDevice or HVideoDevice and I try to get the best configuraton for either by using the following code I will always get null
HGraphicsConfigTemplate template = graphicsConfig.getConfigTemplate(); //graphicsConfig is an instance of HGraphicsConfiguration
template.setPreference(HGraphicsConfigTemplate.ZERO_VIDEO_IMPACT, HGraphicsConfigTemplate.REQUIRED);
graphicsConfig = device.getBestConfiguration(template); // device is an instance of HGraphicsDevice
From here graphicsConfig will always be null. This is the exact same for getting the HVideoConfiguration from the HVideoDevice. Is this proper, does the RI not support the ZERO_GRAPHICS_IMPACT configuration?

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 see code in the RI for ZERO_VIDEO_IMPACT and ZERO_GRAPHICS_IMPACT in the RI. I tried your example code snippet (using the default HScreen, the defaultGraphicsDevice and the current graphics config), and it seems to work fine.
So it sounds like I'm missing something -- can you tell me more about what you are trying to do?

tkooger
Offline
Joined: 2010-09-08

What version of the RI do you see this code?

sarendt
Offline
Joined: 2009-07-21

The code I see is in HScreenDevice (see the method getMatchStrength which calls methods HDScreen.getGraphicsImpact and HDScreen.getVideoImpact for ZERO_GRAPHICS_IMPACT and ZERO_VIDEO_IMPACT). I'm using v1.1.4H of the RI, but, looking at the SVN logs, the code in HScreenDevice had been in there for at least a year.

p.s. I'm going out of town for a week, so I won't be able to monitor this thread for a week or so after today.

raja2526
Offline
Joined: 2011-05-17

It is not possible to get the best configuration with ZERO_VIDEO/GRAPHICS_IMPACT with the priority as REQUIRED as said by tkooger.
This is because of the mismatch in either pixel aspect ratio OR screen aspect ratio with the existing list of configurations in the RI.