Microsoft DirectX 8.1 (C++) |
The DMO Wrapper Filter enables a DirectShow application to use a DMO within a filter graph. This filter wraps the DMO and handles all the details of using the DMO, such as passing data to and from the DMO. Also, the filter aggregates the DMO, so the application can query the filter for any COM interfaces that the DMO exposes.
However, all stream control should occur between the application and the filter (or between the application and the filter graph manager). Do not call any methods on DMO interfaces that might change the state of the DMO. For example, do not set the media type on a stream, process any buffers, flush the DMO, lock the DMO, enable or disable quality control, or set video optimizations. The DMO Wrapper filter handles all streaming for the DMO, and directly calling these methods might cause an error.
There are two ways to add a DMO to a filter graph: