IBasicVideo2::GetPreferredAspectRatio

 
Microsoft DirectShow 9.0

IBasicVideo2::GetPreferredAspectRatio

The GetPreferredAspectRatio method retrieves the preferred aspect ratio.

Syntax

  HRESULT GetPreferredAspectRatio (
  long *plAspectX,
  long *plAspectY
);

Parameters

plAspectX

[out] Pointer to a value that indicates the x-axis aspect ratio.

plAspectY

[out] Pointer to a value that indicates the y-axis aspect ratio.

Return Values

Returns an HRESULT value. Possible values include the following.

Return code Description
S_OK Success.
E_INVALIDARG One or both of the parameters are invalid.
E_NOINTERFACE The renderer does not implement IBasicVideo2.

Requirements

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

Library: Use Strmiids.lib.

See Also