Compartilhar via


CTransformFilter::CheckTransform

 
Microsoft DirectShow 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.

Requirements

**  Header:** Declared in Transfrm.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also

CTransformFilter Class