CMpegInputPin.h
上传用户:hhs829
上传日期:2022-06-17
资源大小:586k
文件大小:1k
- //
- // 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__