Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
CDXGraph.h
Package: VC++视频传输.rar [view]
Upload User: hxb_1234
Upload Date: 2010-03-30
Package Size: 8328k
Code Size: 2k
Category:
Visual C++ Books
Development Platform:
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__