Microsoft DirectX 8.0 |
Enables applications to use a Microsoft® DirectX® Media Object (DMO) in a filter graph. The DMO Wrapper filter exposes this interface.
To add a DMO to the filter graph, create an instance of the DMO Wrapper filter and query it for the IDMOWrapperFilter interface. Then call the Init method to initialize the filter with the DMO. For more information, see Using DMOs in a DirectShow Application.
Requirements
Requires Dmodshow.h
IUnknown methods Description QueryInterface Retrieves pointers to supported interfaces. AddRef Increments the reference count. Release Decrements the reference count. IDMOWrapperFilter methods Description Init Initializes the DMO Wrapper filter with the specified DMO.
Initializes the DMO Wrapper filter with the specified DMO.
Syntax
HRESULT Init( REFCLSID clsidDMO, REFCLSID catDMO );
Parameters
- clsidDMO
- Class identifier (CLSID) of the DMO.
- catDMO
- CLSID that specifies the category of the DMO.
Return Value
Returns S_OK if successful. Otherwise, returns an HRESULT value indicating the cause of the error.
Remarks
For a list of DMO categories, see Category GUIDs. In some cases, the DMO Wrapper filter performs optimizations based on the category.