Partager via


Introducing the CTransformFilter and CTransInPlaceFilter Classes (Windows Embedded CE 6.0)

1/6/2010

The easiest solution for writing a transform filter is to use the transform filter classes, which work well for most types of transform filters.

Typically, a noncopying transform filter is derived from the CTransInPlaceFilter class and its associated pin classes; a copy transform filter is derived from the CTransformFilter filter class and its associated pin classes.

Transform filter classes are hierarchical, with the transform-inplace classes at the bottom of the hierarchy tree. CTransInPlaceFilter is derived from CTransformFilter, which is derived from CBaseFilter.

The CTransInPlaceInputPin class is derived from the CTransformInputPin class. The CTransformInputPin class is derived from the CBaseInputPin class.

The CTransInPlaceOutputPin class is derived from the CTransformOutputPin class. The CTransformOutputPin class is derived from the CBaseOutputPin class.

Copy transform and transform-inplace classes share many characteristics, because the transform-inplace classes derive almost all member functions from the copy transform classes.

The principal addition made by the transform classes over the base classes is that all required pin member functions are implemented. So, for default implementation, you need only to derive a main filter class (from CTransInPlaceFilter or CTransformFilter).

See Also

Concepts

Using the CTransformFilter and CTransInPlaceFilter Transform Base Classes