Share via


CTransInPlaceFilter Class

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

Aa920705.160f5542-e27d-476c-971a-c584022a9c5f(en-us,MSDN.10).gif

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

Windows Embedded CE Windows CE 2.12 and later
Note Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements
For more information, see Setting Up the Build Environment