Jump to content
  • Advertisement
Sign in to follow this  
Fenrhyr

VMR9 - "filter in wrong state" ?

This topic is 4986 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

Hello I managed, not without any hurt ^^, to capture live video incoming from my camera with DirectShow and VMR9. Now, I'm willing to add and overlay onto this video a bitmap. Thanks to DirectX SDK, there is Watermark9 application which do what I need. Just to verify I were right, I copy-paste the code of the function BlendApplicationImage(HWND hwndApp) in my class and call it when my graph is running (I also called it before ->Run). Of course, that doesn't work. There is a problem when calling SetAlphaBitmap function which returns :0x80040227 error, that is to say VFW_E_WRONG_STATE, in other words "The operation could not be performed because the filter is in the wrong state". ... ... ? o_O I don't undestand why... Where am I doing wrong ? I don't think I need a filter for doing any overlaying bitmap. Thank you Fenrhyr

Share this post


Link to post
Share on other sites
Advertisement
try calling SetAlphaBitmap() before conecting the VMR9 renderer.
I don't know if this will work though, I've never used VMR9 before.

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!