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

📄 cfiltermpeg2decinputpin.h

📁 mpeg2 decoder filter过滤服务端
💻 H
字号:
//
// CFilterMpeg2DecInputPin.h
//

#ifndef __H_CMpegInputPin__
#define __H_CMpegInputPin__

class CFilterMpeg2Dec;
class CFilterMpeg2DecInputPin : public CBaseInputPin
{
	friend class CFilterMpeg2Dec;

protected:
	CFilterMpeg2Dec *    mDecodeFilter;

public:
	CFilterMpeg2DecInputPin(TCHAR * inObjectName, CFilterMpeg2Dec * inFilter, HRESULT * outResult);
	~CFilterMpeg2DecInputPin();

	// check if the pin can support this specific proposed type and format
    virtual HRESULT CheckMediaType(const CMediaType * mtIn); // PURE
	// chance to customize the transform process
    STDMETHODIMP Receive(IMediaSample *pSample);

	// passes it to the filter
	STDMETHODIMP EndOfStream(void);
	STDMETHODIMP BeginFlush(void);
	STDMETHODIMP EndFlush(void);
	STDMETHODIMP NewSegment(REFERENCE_TIME tStart,
                        REFERENCE_TIME tStop, double dRate);

	HRESULT CompleteConnect(IPin *pReceivePin);

	// Media type
public:
    CMediaType& CurrentMediaType(void) { return m_mt; }
};

#endif // __H_CMpegInputPin__

⌨️ 快捷键说明

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