IVMRWindowlessControl::GetAspectRatioMode method

The GetAspectRatioMode method queries whether the VMR will preserve the aspect ratio of the source video.

Syntax

HRESULT GetAspectRatioMode(
  DWORD *lpAspectRatioMode
);

Parameters

lpAspectRatioMode

Pointer to a variable that receives a VMR_ASPECT_RATIO_MODE value indicating the aspect ratio mode.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Return code Description
E_POINTER
NULL pointer argument
S_OK
Success

Requirements

   
Minimum supported client Windows XP with SP1 [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header strmif.h (include Dshow.h)
Library Strmiids.lib

See Also

Error and Success Codes

IVMRWindowlessControl Interface

IVMRWindowlessControl::SetAspectRatioMode

Using the Video Mixing Renderer