CMPEG1Builder.h
资源名称:VC++视频传输.rar [点击查看]
上传用户:hxb_1234
上传日期:2010-03-30
资源大小:8328k
文件大小:1k
源码类别:
VC书籍
开发平台:
Visual C++
- //
- // CMPEG1Builder.h
- //
- #ifndef __H_CMPEG1Builder__
- #define __H_CMPEG1Builder__
- #include "IMPEG1Builder.h"
- class CMPEG1Builder : public CUnknown
- , public IMPEG1Builder
- , public IDistributorNotify
- {
- public:
- CMPEG1Builder(LPUNKNOWN pUnk, HRESULT *phr);
- ~CMPEG1Builder();
- DECLARE_IUNKNOWN;
- static CUnknown * WINAPI CreateInstance(LPUNKNOWN punk, HRESULT *phr);
- STDMETHODIMP NonDelegatingQueryInterface(REFIID riid, void ** ppv);
- // --- IMPEG1Builder methods ---
- STDMETHODIMP IsMPEG1File(const char * inFilePath);
- STDMETHODIMP RenderMPEG1File(const char * inFilePath);
- // --- IDistributorNotify methods ---
- STDMETHODIMP NotifyGraphChange(void);
- STDMETHODIMP Pause(void);
- STDMETHODIMP Run(REFERENCE_TIME tStart);
- STDMETHODIMP Stop(void);
- STDMETHODIMP SetSyncSource(IReferenceClock *pClock);
- private:
- IGraphBuilder * RetrieveGraphBuilder(void);
- IPin * GetPinByDirection(IBaseFilter * inFilter, PIN_DIRECTION inDirection);
- IPin * GetPinByName(IBaseFilter * inFilter, const char * inPinName, BOOL inInput = FALSE);
- };
- #endif // __H_CMPEG1Builder__