Jump to content
  • Advertisement
Sign in to follow this  

VMR9 Rendering to a texture in VISTA

This topic is 3393 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have my own test application for VMR9 Allocator which has its own rendering loop for rendering quads with textures. The texture is set from my allocator presenter. I have seen people talk about mixing mode which will force vmr9 not use another render target so that the rendering can be smooth enough.
    CComPtr<IVMRMixerControl9> pMix;
    DWORD dwPrefs=0;
    FAIL_RET(mVMR9->QueryInterface(IID_IVMRMixerControl9, (void**)&pMix));
    if (SUCCEEDED(pMix->GetMixingPrefs(&dwPrefs))) {
	dwPrefs &= ~MixerPref9_RenderTargetMask;
	dwPrefs |= MixerPref9_RenderTargetYUV;		
	hr = pMix->SetMixingPrefs(dwPrefs);

Everything is fine in windows xp. But in vista, the application behaviors in a strange way. For example, I play 3 movies (in 3 seperate graph). The first two movies stay black until the third one start to play. I also saw some people talked about black screen problem in vista.They simplely turn off YUV mixing mode. But in my case, I cant turn off mixing mode, I must have 1 render target all the time, otherwise the rendering will be very jittery. Is there any solution for it?? Thank you. -------------------- [Edited by - chiyuwang on June 10, 2009 4:43:00 AM]

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!