共用方式為


DVD Filter Graph Configuration

 
Microsoft DirectShow 9.0

DVD Filter Graph Configuration

This section describes the various filter graph configurations for DVD playback in DirectShow. These diagrams are provided mainly for reference. The DVD Navigator builds the graph, so in general it is not necessary to understand the details of how the graph is configured. For more information, see Building the DVD Filter Graph.

The following illustration shows a DVD filter graph with a software decoder for applications that run on Microsoft® Windows® 98SE, Windows 2000, or Windows Me.

DVD Filter Graph

On Windows XP, the Overlay Mixer and Video Renderer are replaced by the Video Mixing Renderer Filter 7, and the Line 21 Decoder is replaced by the Line 21 Decoder 2 filter, as shown in the following illustration. This graph also has a software decoder.

DVD Filter Graph for Windows XP

When a hardware decoder is present, it is typically connected directly to the video card by a video port. This enables the decoded video bits to be sent directly to the frame buffer on the graphics card without passing into host memory. To manage this direct connection on earlier versions of Windows, DirectShow supports DirectDraw Video Port Extensions (VPE) through an interface on the Overlay Mixer Filter. The following diagram shows a filter graph with a hardware decoder for applications running on Windows® 98SE, Windows 2000, or Windows Me.

DVD graph with a hardware decoder for Windows 98/2000

The next diagram shows a DVD filter graph for applications running on Windows XP.

DVD graph for Windows XP with a hardware decoder

In all these graphs, the DVD Navigator is the source filter; it performs several tasks:

  • Reads the navigation and video data from the disc.
  • Demultiplexes the video, audio, and subpicture data into separate streams.
  • Pumps the streams into the graph for further processing and eventual rendering.
  • Informs your application of DVD-related events.

On the audio stream, the DVD Navigator connects downstream to an audio decoder, which connects to the DirectSound Renderer Filter, the default audio renderer. On the video and subpicture streams, the downstream filters are the third-party video decoder, and the Video Mixing Renderer (or the Overlay Mixer, and the Video Renderer on downlevel applications). If your application will handle line 21 closed-captioned data, you must add the DirectShow Line 21 Decoder 2 filter to the graph. This involves a single method call; the filter will be connected automatically.

Your application communicates with and controls the DVD Navigator through the custom interfaces that the DVD Navigator exposes: IDvdControl2—the "set" methods—and IDvdInfo2—the "get" methods. It also must communicate with the filter graph manager (through IMediaControl) to stop, start, and otherwise control the graph. You might also need to control other individual filters, such as the Overlay Mixer filter for switching between windowed and full-screen display. For more information, see IMixerPinConfig2. The exact configuration of the graph will vary depending on what type of MPEG-2 decoder you have installed, whether you need to handle line 21 closed-captioned data, and other factors.

See Also