Create a custom DirectShow Filter SDK DLL
To create a new DirectShow®
filter, all you need to do is to implement a standard
Dynamic Link Library (DLL). A valid DLL must provide (export) the
functions declared in the FilterSDKLib.h include file.
Additionally, to compile the DLL, it must be linked against
FilterSDKLib.lib. This library file encapsulates the code
for a complete DirectShow® filter utilizing
the FilterSDK.axwrapper. The
FilterSDK.ax is a DirectShow® filter proxy which loads all
available Filter SDK DLLs and registers them as DirectShow®
filters. Also the DLL must provide a couple of global
variables containing information about the filter.
To speed up the development,
the MontiVision Development Kit includes two
wizards
which create DLLs as described above. The wizards are
capable of creating a project for Microsoft Visual C++ 6.0 or 7.0
(.NET). The wizards create a skeleton source file with all of the
necessary functions. All you have to do is to populate the
functions with your custom code. For more information on
creating a DLL project using wizards, have a look at the
wizards help page.
The settings of the new filter can be accessed through the
filters IMVFilterSDK COM interface.
The filter provides a property page for |