cfiltermpeg2decinputpin.h

来自「mpeg2 decoder filter过滤服务端」· C头文件 代码 · 共 39 行

H
39
字号
//
// 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 + =
减小字号Ctrl + -
显示快捷键?