Microsoft DirectX 8.1 (C++)

CTransInPlaceFilter Class

CTransInPlaceFilter Class Hierarchy

The CTransInPlaceFilter class is a base class for implementing an in-place transform filter. This class is designed for filters that transform data in place, rather than copying the data across buffers. Whenever possible, the filter uses a single allocator. For details, see CTransInPlaceFilter::CompleteConnect.

To use this class, derive a new class from CTransInPlaceFilter and implement the following methods:

This filter uses the CTransInPlaceInputPin class for its input pin, and the CTransInPlaceOutputPin class for its output pin. Typically, you do not need to override these pin classes. The filter creates both pins in the CTransInPlaceFilter::GetPin method. If you do override the pin classes, you must override GetPin to create your custom pins.

Requirements

Header: Declared in Transip.h; include Streams.h.

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

Protected Methods  
Copy Copies a media sample.
InputPin Retrieves a pointer to the filter's input pin.
OutputPin Retrieves a pointer to the filter's output pin.
TypesMatch Determines whether the input media type matches the output media type.
UsingDifferentAllocators Determines whether the input and output pins are using different allocators.
Public Methods  
CTransInPlaceFilter Constructor method.
GetPin Retrieves a pin.
GetMediaType Retrieves a preferred media type for the output pin.
DecideBufferSize Sets the output pin's buffer requirements.
CheckTransform Checks whether an input media type is compatible with an output media type.
CompleteConnect Completes a pin connection.
Receive Receives a media sample, processes it, and delivers it to the downstream filter.
Pure Virtual Methods  
Transform Transforms a sample in place.