3 调用vmr的ivmrfilterconfig::setrenderingmode方法设置vmrmode_windowless标志。
4调用ivmrwindowlesscontrol::setvideoclippingwindow 给视频指定一个显示窗口。
然后调用igraphbuilder::renderfile或者其他的方法来创建其他的graph。
下面的代码显示了如何创建一个vmr,将其添加到graph,如何设置无窗口模式
hresult initwindowlessvmr(
hwnd hwndapp, // window to hold the video.
igraphbuilder* pgraph, // pointer to the filter graph manager.
ivmrwindowlesscontrol** ppwc, // receives a pointer to the vmr. )
{