Microsoft DirectX 8.0

IDMOWrapperFilter Interface

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

Methods in Vtable Order

IUnknown methodsDescription
QueryInterfaceRetrieves pointers to supported interfaces.
AddRefIncrements the reference count.
ReleaseDecrements the reference count.
IDMOWrapperFilter methodsDescription
InitInitializes the DMO Wrapper filter with the specified DMO.

IDMOWrapperFilter::Init

IDMOWrapperFilter Interface

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.