This ensures that the Render Engine does not create its own Filter Graph Manager, but instead uses the instance that you have configured for callbacks. Next, create the Render Engine and call the IRenderEngine::SetFilterGraph method with a pointer to the Filter Graph Manager. Hr = pSite->SetSite((IUnknown*)&GraphCB) Hr = pGraph.CoCreateInstance(CLSID_FilterGraph) Then create an instance of the Filter Graph Manager and register your class to receive callback notifications: // Declare an instance of the callback object. Start by implementing a class that exposes the IAMGraphBuilderCallback interface: class GraphBuilderCB : public IAMGraphBuilderCallback By implementing this interface in your application, you can receive notifications during the graph-building process and reject certain filters from the graph. However, you can choose the decoder indirectly through the IAMGraphBuilderCallback callback interface. There is no way for the application to specify directly which decoder to use. ![]() When multiple decoders are available, DES uses the Intelligent Connect algorithm to select the decoder. This may happen inside the IRenderEngine::ConnectFrontEnd method, or else dynamically during rendering.Ī user might install several decoders that are capable of decoding a particular file. When DirectShow Editing Services (DES) renders a video editing project, the Rendering Engine automatically selects the necessary decoders.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |