共用方式為


IVMRAspectRatioControl Interface

 
Microsoft DirectShow 9.0

IVMRAspectRatioControl Interface

The IVMRAspectRatioControl interface controls whether the Video Mixing Renderer Filter 7 (VMR-7) preserves the aspect ratio of the source video. This interface is available when the VMR-7 is operating in either windowed or windowless modes. In windowless mode, the same functionality is provided by the IVMRWindowlessControl interface.

In addition to the methods inherited from IUnknown, the IVMRAspectRatioControl interface exposes the following methods.

Method Description
GetAspectRatioMode Queries whether the VMR will preserve the aspect ratio of the source video.
SetAspectRatioMode Specifies whether the VMR will preserve the aspect ratio of the source video.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.