- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
CDXGraph.h
资源名称:VC++视频传输.rar [点击查看]
上传用户:hxb_1234
上传日期:2010-03-30
资源大小:8328k
文件大小:2k
源码类别:
VC书籍
开发平台:
Visual C++
- //
- // CDXGraph.h
- //
- #ifndef __H_CDXGraph__
- #define __H_CDXGraph__
- // Filter graph notification to the specified window
- #define WM_GRAPHNOTIFY (WM_USER+20)
- class CDXGraph
- {
- private:
- IGraphBuilder * mGraph;
- IMediaControl * mMediaControl;
- IMediaEventEx * mEvent;
- IBasicVideo * mBasicVideo;
- IBasicAudio * mBasicAudio;
- IVideoWindow * mVideoWindow;
- IMediaSeeking * mSeeking;
- DWORD mObjectTableEntry;
- public:
- CDXGraph();
- virtual ~CDXGraph();
- public:
- virtual bool Create(void);
- virtual void Release(void);
- virtual bool Attach(IGraphBuilder * inGraphBuilder);
- HRESULT QueryInterface(REFIID inIID, void ** ppvObject);
- IGraphBuilder * GetGraph(void); // Not outstanding reference count
- IMediaEventEx * GetEventHandle(void);
- bool ConnectFilters(IPin * inOutputPin, IPin * inInputPin, const AM_MEDIA_TYPE * inMediaType = 0);
- void DisconnectFilters(IPin * inOutputPin);
- bool SetDisplayWindow(HWND inWindow);
- bool SetNotifyWindow(HWND inWindow);
- bool ResizeVideoWindow(long inLeft, long inTop, long inWidth, long inHeight);
- void HandleEvent(WPARAM inWParam, LPARAM inLParam);
- bool Run(void); // Control filter graph
- bool Stop(void);
- bool Pause(void);
- bool IsRunning(void); // Filter graph status
- bool IsStopped(void);
- bool IsPaused(void);
- bool SetFullScreen(BOOL inEnabled);
- bool GetFullScreen(void);
- // IMediaSeeking
- bool GetCurrentPosition(double * outPosition);
- bool GetStopPosition(double * outPosition);
- bool SetCurrentPosition(double inPosition);
- bool SetStartStopPosition(double inStart, double inStop);
- bool GetDuration(double * outDuration);
- bool SetPlaybackRate(double inRate);
- bool RenderFile(const char * inFile);
- private:
- void AddToObjectTable(void) ;
- void RemoveFromObjectTable(void);
- bool QueryInterfaces(void);
- };
- #endif // __H_CDXGraph__