Share via


IAMVideoTransformComponent::GetScalingCaps

4/8/2010

Retrieves the scaling capabilities of the implementing filter.

Syntax

HRESULT GetScalingCaps(
     AM_MEDIA_TYPE *pmt
     DWORD *pdwRotationCapsMask
     AMScalingRatio *ppRatios
     ULONG *pCount
  );

Parameters

  • *pmt
    [in] Indicates the type value of the current media.
  • *pdwRotationCapsMask
    [out] Represents the scaling capabilities of the requested filter or DMO. The value of this parameter should be either AM_TRANSFORM_SCALING_LIMITED or AM_TRANSFORM_SCALING_ARBITRARY.
  • *ppRatios
    [out] If pdwScalingCapsMask is set to AM_TRANSFORM_SCALING_LIMITED, this parameter contains the array of ratios that is allowed. If pdwScalingCapsMask is set to AM_TRANSFORM_SCALING_ARBITRARY, this parameter contains the minimum and maximum allowed ratios. If no minimum or maximum is specified, this parameter should contain NULL.
  • *pCount
    [out] Specifies the number of elements present in the ppRatios array.

Return Value

Returns an HRESULT value that depends on the implementation of the interface.

In the current DirectShow implementation, this method returns NOERROR if successful, or E_INVALIDARG or E_FAIL upon failure.