Microsoft Windows CE 3.0  

Override the CheckTransform Member Function

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Copy transform filters can transform the media type from the input pin to output pin. Therefore, if the output pin is connected (so its media type is known), when the CTransformInputPin::CheckMediaTypemember function is called during connection, the CheckTransformmember function of the derived class is called to verify that the transform from the input type to the output type is valid. It is also called when CTransformOutputPin::CheckMediaTypeis called.

In the CTransInPlaceFilterclass, this member function is implemented in the base class header file to simply return S_OK, because the functions from CTransformFilterthat call this member function are overridden in CTransInPlaceFilterto call CheckInputTypeinstead. This assumes that the media type doesn't change in a transform-inplace filter, as it might in a copy transform filter.



 Last updated on Tuesday, May 18, 2004

© 2004 Microsoft Corporation. All rights reserved.