Export (0) Print
Expand All

CTransformFilter.CheckTransform method

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
) = 0;

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.

Return codeDescription
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

Transfrm.h (include Streams.h)

Library

Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

 

 

Community Additions

ADD
Show:
© 2014 Microsoft