Sign in to follow this  
CaptainL

[direct 9.0c & c++]direct3D

Recommended Posts

CaptainL    122
Hi, (I remove error controls like (if FAILED(hr)) for a light message) //------------------------------------------------------ IGraphBuilder *m_g_pGraph ; IBaseFilter *m_pVmr ; CoCreateInstance (CLSID_FilterGraph, NULL, CLSCTX_INPROC_SERVER, IID_IGraphBuilder, (void **) &m_g_pGraph); CoCreateInstance(CLSID_VideoMixingRenderer, 0, CLSCTX_INPROC_SERVER, IID_IBaseFilter, (void**)&m_pVmr); m_g_pGraph->AddFilter(m_pVmr, L"Video Mixing Renderer 7"); IVMRFilterConfig* m_pConfigg; m_pVmr->QueryInterface(IID_IVMRFilterConfig, (void**)&m_pConfigg); m_pConfigg->SetRenderingMode(VMRMode_Windowless); m_pConfigg->SetNumberOfStreams(1); m_pConfigg->Release(); //------------------------------------------------------ --Why "m_pConfigg->SetNumberOfStreams(1)" fails if i disable Direct3D (for example with the dxdiag tool, Display tab then click disable Direct3D) ? Directdraw alone should be enough. The goal is to load the mixer component: "Even though the VMR-7 has a single input pin by default, this method must be called in order to force it to load its mixer component" (-> http://msdn2.microsoft.com/en-us/library/ms783364.aspx ) --Is there other way to load this component ? (with direct3D disabled I mean) (the target computer for my application has a graphic card that does not support direct3D but support wonderfully directdraw) Thx a lot. Cap

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this