DirectShow Samples
DirectShow例子
The Microsoft® DirectShow® SDK samples are divided into categories according to functionality:
微软DirectShow SDK例子按功能分为以下种类:
1.Base Classes
1.基类
2.BDA Sample Application
2.BDA例子程序
3.Capture Samples
3.捕捉例子
4.DMO Samples
4.DMO例子
5.DVD Samples
5.DVD例子
6.Filter Samples
6.过滤器例子
7.Miscellaneous DirectShow Samples
7.各种各样的DirectShow例子
8.Player Application Samples
8.播放器应用程序例子
9.Video Control Samples
9.视频控制例子
10.Video Editing Samples
10.视频编辑例子
11.Video Mixing Renderer Samples
11.视频混合提交者例子
Building the Samples
建立例子
There are multiple ways to build the DirectShow SDK samples. Project files are included for both Visual C++ 6.0 and Visual Studio.NET. To build with Visual C++ 6.0, use the workspace files (.dsw). To build with Visual Studio.NET, use the solution files (.sln). All of the samples can be built for ANSI or Unicode.
有很多种方法可以建立DirectShow SDK例子。Visual C++ 6.0与Visual Studio.NET都包含有工程文件。如果用Visual C++ 6.0来建立例子,请使用工作区文件(.dsw)。如果用Visual Studio.NET来建立例子,请使用解决方案文件(.sln)。所有例子都可以用ANSI或Unicode字符编码来建立。
Use the main workspace to build all of the samples
使用主工作区来建立所有例子
The easiest way to build all of the samples is to open DShow.dsw (or DShow.sln), which is located in the DirectShow samples root directory. This workspace includes references to each of the project files for the individual samples. You can batch-build all or some of the projects from this workspace.
建立所有例子最简单的方法是打开DShow.dsw文件(或DShow.sln文件),它可以在DirectShow例子的根目录中找到。这个工作区包含有每一个单独例子的工程文件的引用。你可以从这个工作区中成批地建立所有工程或其中一些。
Some of the projects included in the SDK build support libraries that are used by other projects. For example, the GargleDMO sample depends on the ControlBase and MedParamBase projects. If you build GargleDMO, Visual C++ will automatically build the and link these dependencies.
SDK中的一些工程用来建立支持库,而这些库可以被其它工程使用。例如,例子GargleDMO依赖于工程ControlBase和MedParamBase。如果你想建立例子GargleDMO,Visual C++将会自动建立它并链接到那些支持库。
Use the workspace for a category of samples
给某一类例子使用工作区
Each of the subdirectories within the main DirectShow samples directory has a workspace (and solution) that builds all of the samples in that subdirectory. For example, if you want to build all of the capture samples, you can use the Capture.dsw workspace (or the Capture.sln solution) in the Capture directory.
DirectShow例子主目录中的每一个子目录都有一个工作区(与解决方案),我们可以在这些子目录中建立所有例子。例如,如果你想建立所有捕捉例子,你可以在捕捉目录中使用工作区Capture.dsw(或Capture.sln解决方案)。
Build individual projects
建立单独的工程
Each sample includes a workspace file and a solution file to build that sample individually. Many of samples link to the base class library, so you will need to build that first. See Base Classes.
每一个例子包含有一个工作区文件和解决方案文件用来单独地建立那个例子。很多例子都链接到基类库中,所以你需要首先建立那些基类。请参考Base Classes。
See Also
也请参考以下主题:
1.Setting Up the Build Environment
1.建立生成环境