Microsoft DirectX 9.0

CTransformFilter::CheckTransform

The CheckTransform method checks whether an input media type is compatible with an output media type.

Syntax

virtual HRESULT CheckTransform(
    const CMediaType *mtIn,
    const CMediaType *mtOut
) PURE;

Parameters

mtIn

Pointer to a CMediaType object that specifies the input type.

mtOut

Pointer to a CMediaType object that specifies the output type.

Return Value

Returns an HRESULT value. Possible values include those shown in the following table.

Value Description
S_OK The media types are compatible.
VFW_E_TYPE_NOT_ACCEPTED The media types are not compatible.

Remarks

The derived class must implement this method. Return S_OK if the filter can accept both of the specified media types, or an error code otherwise.

See Also

CTransformFilter Class