Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

DirectShowFrameGrabber.h

Go to the documentation of this file.
00001 
00042 #ifndef _AMIRE_COMMON_DIRECT_SHOW_FRAME_GRABBER_H
00043 #define _AMIRE_COMMON_DIRECT_SHOW_FRAME_GRABBER_H
00044 
00045 #ifdef WIN32
00046 
00047 #include <amire/common/Defines.h>
00048 #include <amire/common/DirectShowUtils.h>
00049 #include <amire/common/FrameGrabber.h>
00050 
00051 namespace amire {
00052   namespace common {
00056     class DirectShowFrameGrabber : public virtual FrameGrabber {
00057     private:
00058       CComPtr<IMediaEvent> mediaEvent;
00059       CComPtr<IMediaControl> mediaControl;
00060       CComPtr<ISampleGrabber> sampleGrabber;
00061       unsigned char *buffer;
00062       long bufferLength;
00063       BitmapFormat bitmapFormat;
00064       int width;
00065       int height;
00066       bool horizontalFlipped;
00067       bool verticalFlipped;
00068 
00069     public:
00073       DirectShowFrameGrabber(bool showSettingsDialog = true);
00074 
00075       virtual ~DirectShowFrameGrabber();
00076       virtual void grabFrame();
00077       virtual unsigned char *getFrame() const;
00078       virtual long getFrameBufferLength() const;
00079       virtual BitmapFormat getFormat() const;
00080       virtual int getWidth() const;
00081       virtual int getHeight() const;
00082       virtual bool isHorizontalFlipped() const;
00083       virtual bool isVerticalFlipped() const;
00084     };
00085   }
00086 }
00087 #endif
00088 #endif

Generated on Tue May 20 17:23:52 2003 for AMIRE-Framework by doxygen1.3