共用方式為


IVMRWindowlessControl::GetAspectRatioMode

 
Microsoft DirectShow 9.0

IVMRWindowlessControl::GetAspectRatioMode

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

Syntax

  HRESULT GetAspectRatioMode(

  
  DWORD*
  
  lpAspectRatioMode

  );

Parameters

lpAspectRatioMode

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

Return Values

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

Error Code Description
E_POINTER NULL pointer argument
S_OK Success

Requirements

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

Library: Use Strmiids.lib.

See Also