IAMVideoTransformComponent::GetScalingCaps (Compact 7)
3/12/2014
This method returns the scaling capabilities of the stream.
Syntax
HRESULT GetScalingMode (
const AM_MEDIA_TYPE *pmt,
DWORD * pdwScalingModeCapsMask,
AMScalingRatio **ppRatios,
ULONG *pCount
);
Parameters
- pScalingMode
[in] A pointer to an AM_MEDIA_TYPE enumeration value specifying the media type.
- pdwScalingModeCapsMask
[out] A pointer to the scaling mode capabilities mask. For more information, see the AM_TRANSFORM_SCALING_CAPS enumeration.
ppRatios
[out] A pointer to the array of ratios. This parameter can be one of the following:AM_TRANSFORM_SCALING_LIMITED: the array of allowed ratios.
AM_TRANSFORM_SCALING_ARBITRARY: the minimum and maximum ratios.
NULL: all ratios are allowed.
- pCount
[out] A pointer to the number of elements in the ppRatios array
Return Value
Returns an HRESULT value that depends on the implementation of the interface. Current DirectShow implementation return values include the following.
Value | Description |
---|---|
E_FAIL |
Failure to return the capabilities. |
S_OK |
The capabilities were returned. |
Requirements
Header |
dshow.h |
Library |
Strmiids.lib |