cmpeginputpin.h
来自「DIRECTSHOW 开发指南电子书」· C头文件 代码 · 共 39 行
H
39 行
//
// CMpegInputPin.h
//
#ifndef __H_CMpegInputPin__
#define __H_CMpegInputPin__
class CFilterMpeg2VD;
class CMpegInputPin : public CBaseInputPin
{
friend class CFilterMpeg2VD;
protected:
CFilterMpeg2VD * mDecodeFilter;
public:
CMpegInputPin(TCHAR * inObjectName, CFilterMpeg2VD * inFilter, HRESULT * outResult);
~CMpegInputPin();
// 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 + -
显示快捷键?