次の方法で共有


CTransInPlaceInputPin Class (Compact 2013)

3/26/2014

CTransformInputPin Class

     CTransInPlaceInputPin Class

This class implements the input pin of a transform-inplace filter (CTransInPlaceFilter). This is part of a transform filter that transforms data in place rather than making a copy of it. The CTransInPlaceFilter::InputPin member function returns a pointer to CTransInPlaceInputPin object.

Typically, you can create objects of a class derived from CTransInPlaceInputPin without modifying this class. That is, you can usually override member functions in the CTransInPlaceFilter class that member functions of the CTransInPlaceInputPin class call, and not have to derive your own classes for either of the pin classes.

However, if you want to override this class and derive your filter class from CTransInPlaceFilter, you must override the CTransInPlaceFilter::GetPin member function to create pins of your derived class.

Protected Data Members

Member

Description

m_bReadOnly

Flag to indicate if the stream is read-only.

m_pTIPFilter

Pointer to the CTransInPlaceFilter object that owns this pin.

Member Functions

Member function

Description

CTransInPlaceInputPin

Constructs a CTransInPlaceInputPin object.

PeekAllocator

Retrieves a pointer to the default allocator.

ReadOnly

Retrieves m_bReadOnly to indicate whether a stream is read-only.

Overrideable Member Functions

Member function

Description

CheckMediaType

Determines if the pin can use a specified media type.

Implemented IPin Methods

Method

Description

EnumMediaTypes

Provides a media type enumerator from the downstream filter.

Implemented IMemInputPin Methods

Method

Description

GetAllocator

Retrieves the upstream allocator.

GetAllocatorRequirements

Passes requests for allocator requirements downstream.

NotifyAllocator

Receives notification of which allocator the connected output pin will use.

Requirements

Header

dshow.h,
Streams.h

Library

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

See Also

Reference

DirectShow Classes