Using the DirectShow Filter Wizard

Using the DirectShow Filter Wizard

To use the DirectShow Filter Wizard, run Visual Studio .NET and choose New Project from the File menu. In the New Project dialog box, select Visual C++ Projects. You should see a list of the available wizards, including the DirectShow Filter Wizard, as shown in Figure B-1.

figure b-1 the dswizard used to create directshow filters

Figure B-1. The DSWizard used to create DirectShow filters

Select the DSWizard, type a name for the filter you want to create, select a directory within which the project will be created, and click OK. You will be asked to select the type of transform filter you want to create, as shown in Figure B-2.

figure b-2 selecting either a transform or an in-place transform filter in dswizard

Figure B-2. Selecting either a transform or an in-place transform filter in DSWizard

As discussed in Chapters 10 and 11, a transform filter uses its own internal buffers for media sample processing and can change the media type of a sample as it passes through the filter. An in-place transform preserves the buffers passed through it and can t change the media type of the sample as it passes through the filter, nor can it perform any other operation that would modify the size of the sample buffer.

When you click the Finish button, Visual Studio .NET will load the project, as shown in Figure B-3. You can open any of the code modules and begin to make the changes specific to your filter s needs.

figure b-3 the filter code within visual studio .net, ready to be modified for your specific needs

Figure B-3. The filter code within Visual Studio .NET, ready to be modified for your specific needs



Programming Microsoft DirectShow for Digital Video and Television
Programming Microsoft DirectShow for Digital Video and Television (Pro-Developer)
ISBN: 0735618216
EAN: 2147483647
Year: 2002
Pages: 108
Authors: Mark D. Pesce

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net