Share via


CTransInPlaceFilter Class

This is an abstract base class that provides support for a simple transform filter with a single input and a single output. It is derived from the CUnknown class, and supports the IBaseFilter interface, the IMediaFilter interface, and two pins. Each pin supports the IPin interface and uses the shared memory transport based on the IMemInputPin interface. The filter uses classes derived from the CBaseMediaFilter class to support IBaseFilter and IMediaFilter. The input pin is derived from the CBaseInputPin class, and the output pin is derived from the CBaseOutputPin class.

Protected Data Members

Member Description
m_idTransInPlace Performance-measuring identifier.

Member Functions

Member function Description
Copy Retrieves a pointer to an identical copy of a media sample.
CTransInPlaceFilter Constructs a CTransInPlaceFilter object.
InputPin Retrieves a pointer to the input pin associated with the filter.
OutputPin Retrieves a pointer to the output pin associated with the filter.

Overrideable Member Functions

Member function Description
CheckTransform Verifies that the media type is supported by input and output pins.
CompleteConnect Reconnects the input or output pin if necessary.
DecideBufferSize Determines the size of the transport buffer.
GetMediaType Returns the media type to be used by the output pin.
GetPin Returns a pin if an index is specified.
Receive Receives the sample, calls the derived class's Transform member function, and then delivers the sample.
RegisterPerfId Registers a performance measurement identifier (if PERF is defined).
Transform Performs transformation operations in place on the IMediaSample interface (pure virtual).

Requirements

DirectShow applications and DirectShow filters have different include file and link library requirements. See Setting Up the Build Environment for more information.

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header:

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.