www.pudn.com > AVChat0926.rar > CNetOutPin.h


// 
// CNetOutPin.h 
// 
 
#ifndef __H_CNetOutPin__ 
#define __H_CNetOutPin__ 
 
class CFilterNetReceiver; 
class CNetOutPin : public CBaseOutputPin 
{ 
private: 
	CFilterNetReceiver *	mFilter; 
	CMediaType				mPreferredMt; 
 
public: 
	CNetOutPin(CFilterNetReceiver *inFilter, HRESULT *phr, LPCWSTR pName); 
	~CNetOutPin(); 
 
	void SetupMediaType(long inType, char * inFormat, long inLength); 
 
	// check if the pin can support this specific proposed type and format 
	virtual HRESULT CheckMediaType(const CMediaType *); 
	virtual HRESULT DecideBufferSize(IMemAllocator * pAlloc, ALLOCATOR_PROPERTIES * pprop); 
	// returns the preferred formats for a pin 
	HRESULT GetMediaType(int iPosition,CMediaType *pMediaType); 
}; 
 
#endif // __H_CNetOutPin__