Partager via


VMR Modes of Operation

 
Microsoft DirectShow 9.0

VMR Modes of Operation

The component architecture of the VMR enables applications to configure it in various ways, depending on how rendering is to be performed. The following table shows the three presentation modes and the two mixing modes, and the components that are present for each configuration.

Mode Single Stream Multiple Streams (Mixing Mode)
Windowed Allocator-presenter

Core Synchronization Unit

Window Manager

Mixer

Compositor*

Allocator-presenter

Core Synchronization Unit

Window Manager

Windowless Allocator-presenter

Core Synchronization Unit

Mixer

Compositor*

Allocator-presenter

Core Synchronization Unit

Renderless Allocator-presenter (provided by application)

Core Synchronization Unit

Mixer

Compositor*

Allocator-presenter (provided by application)

Core Synchronization Unit

* Indicates that the application has the option to provide a custom component or use the default component.

In all configurations, the main point to remember when you create filter graphs with the VMR is that you must configure the VMR before you connect it.

For all configurations, pins cannot be dynamically added or removed after the VMR is connected to the upstream filter, but they can be connected and disconnected. If the application is unsure how many pins will be needed, it should configure the VMR for the maximum number that might be needed. The presence of unused input pins on the filter does not degrade rendering performance. Unlike the old Overlay Mixer, the VMR has no output pin because it does not require a separate filter for window management.

The following sections describe how to configure the VMR for a given mode: