⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cnetoutpin.h

📁 实现视频点播功能,c_s结构,服务器端共享文件,客户端可以播放,媒体数据传输通过RTP协议,播放通过Directshow
💻 H
字号:
//
// CNetOutPin.h
//

#ifndef __H_CNetOutPin__
#define __H_CNetOutPin__
#include <streams.h>
class CFilterNetReceiver;
class CNetOutPin : public CBaseOutputPin
{
//	friend class CFilterNetReceiver;
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__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -