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

📄 cfiltertssource.h

📁 最近在学习directshow, Directshow实务精选的源代码
💻 H
字号:
//
// CFilterTSSource.h
//

#ifndef __H_CFilterTSSource__
#define __H_CFilterTSSource__

#include "CTSOutPin.h"

class CFilterTSSource : public CSource, public IFileSourceFilter
{
private:
	CFilterTSSource(LPUNKNOWN lpunk, HRESULT *phr);
	~CFilterTSSource();

public:
	static CUnknown * WINAPI CreateInstance(LPUNKNOWN lpunk, HRESULT *phr);
	DECLARE_IUNKNOWN;
	// Basic COM - used here to reveal our own interfaces
	STDMETHODIMP NonDelegatingQueryInterface(REFIID riid, void ** ppv);

	// you need to supply these to access the pins from the enumerator
	// and for default Stop and Pause/Run activation.
	virtual int GetPinCount();
	virtual CBasePin *GetPin(int n);
	STDMETHODIMP FindPin(LPCWSTR Id, IPin ** ppPin);

	// --- IFileSourceFilter methods ---
	STDMETHODIMP Load(LPCOLESTR pszFileName, const AM_MEDIA_TYPE *pmt);
	STDMETHODIMP GetCurFile(LPOLESTR *ppszFileName, AM_MEDIA_TYPE *pmt);	

protected:
	CTSOutPin * OutPin() {return (CTSOutPin *)m_paStreams[0];};
};

#endif // __H_CFilterTSSource__

⌨️ 快捷键说明

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