VMR9AspectRatioMode enumeration (vmr9.h)

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The VMR9AspectRatioMode enumeration type is used with the IVMRWindowlessControl9::GetAspectRatioMode and IVMRWindowlessControl9::SetAspectRatioMode methods to set and retrieve the aspect ratio mode (VMR-9 only).

Syntax

typedef enum __MIDL___MIDL_itf_vmr9_0000_0004_0001 {
  VMR9ARMode_None = 0,
  VMR9ARMode_LetterBox
} VMR9AspectRatioMode;

Constants

 
VMR9ARMode_None
Value: 0
Indicates that the VMR is not attempting to maintain the aspect ratio of the source video.
VMR9ARMode_LetterBox
Indicates that the VMR will maintain the aspect ratio of the source video by letterboxing within the output rectangle.

Requirements

Requirement Value
Header vmr9.h

See also

DirectShow Enumerated Types