CScaleFilter Class Reference

Inheritance diagram for CScaleFilter:

CCustomBaseFilter CSettingsInterface CStatusInterface ISettingsInterface IStatusInterface

Detailed Description

Definition at line 57 of file ScaleFilter.h.


Public Member Functions

 CScaleFilter ()
 Constructor.
 ~CScaleFilter ()
 Destructor.
HRESULT SetMediaType (PIN_DIRECTION direction, const CMediaType *pmt)
 Overriding this so that we can set whether this is an RGB24 or an RGB32 Filter.
HRESULT GetMediaType (int iPosition, CMediaType *pMediaType)
 Used for Media Type Negotiation Returns an HRESULT value.
HRESULT DecideBufferSize (IMemAllocator *pAlloc, ALLOCATOR_PROPERTIES *pProp)
 Buffer Allocation.
HRESULT CheckTransform (const CMediaType *mtIn, const CMediaType *mtOut)
 The CheckTransform method checks whether an input media type is compatible with an output media type.
virtual void InitialiseInputTypes ()
 Overridden from CCustomBaseFilter.
virtual void initParameters ()
 Overridden from CSettingsInterface.
STDMETHODIMP SetParameter (const char *type, const char *value)
STDMETHODIMP GetPages (CAUUID *pPages)
STDMETHODIMP NonDelegatingQueryInterface (REFIID riid, void **ppv)

Static Public Member Functions

static CUnknown *WINAPI CreateInstance (LPUNKNOWN pUnk, HRESULT *pHr)
 Static object-creation method (for the class factory).

Data Fields

 DECLARE_IUNKNOWN

Member Function Documentation

HRESULT CScaleFilter::GetMediaType ( int  iPosition,
CMediaType *  pMediaType 
)

Used for Media Type Negotiation Returns an HRESULT value.

Possible values include those shown in the following table.
ValueDescription
S_OKSuccess
VFW_S_NO_MORE_ITEMSIndex out of range
E_INVALIDARGIndex less than zero
The output pin's CTransformOutputPin::GetMediaType method calls this method. The derived class must implement this method. For more information, see CBasePin::GetMediaType. To use custom media types, the media type can be manipulated in this method.

Definition at line 118 of file ScaleFilter.cpp.

HRESULT CScaleFilter::DecideBufferSize ( IMemAllocator *  pAlloc,
ALLOCATOR_PROPERTIES *  pProp 
)

Buffer Allocation.

The output pin's CTransformOutputPin::DecideBufferSize method calls this method. The derived class must implement this method. For more information, see CBaseOutputPin::DecideBufferSize.

Parameters:
pAlloc Pointer to the IMemAllocator interface on the output pin's allocator.
pProp Pointer to an ALLOCATOR_PROPERTIES structure that contains buffer requirements from the downstream input pin.
Returns:
Value: Returns S_OK or another HRESULT value.

Definition at line 168 of file ScaleFilter.cpp.

HRESULT CScaleFilter::CheckTransform ( const CMediaType *  mtIn,
const CMediaType *  mtOut 
)

The CheckTransform method checks whether an input media type is compatible with an output media type.

Value Description
S_OK The media types are compatible.
VFW_E_TYPE_NOT_ACCEPTED The media types are not compatible.

Definition at line 202 of file ScaleFilter.cpp.


The documentation for this class was generated from the following files:
Generated on Fri Mar 13 14:12:39 2009 for RTVC by  doxygen 1.5.3