Compartilhar via


CTransInPlaceFilter Class (Compact 2013)

3/26/2014

CTransformFilter Class

     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

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

DirectShow Classes