www.pudn.com > 3DEDITOR.rar > AVICAPTURE.H
// AVICapture.h: interface for the AVICapture class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_AVICAPTURE_H__703E89CE_2A4E_4DD7_8B80_8AF78597D8B8__INCLUDED_) #define AFX_AVICAPTURE_H__703E89CE_2A4E_4DD7_8B80_8AF78597D8B8__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #includeclass AVICapture { public: AVICapture(); virtual ~AVICapture(); bool start(CString filename, int w, int h, float fps); bool end(); bool captureFrame(); int getWidth() const; int getHeight() const; float getFrameRate() const; private: void cleanup(); private: int width; int height; float frameRate; int frameCounter; bool capturing; PAVIFILE aviFile; PAVISTREAM aviStream; PAVISTREAM compAviStream; unsigned char* image; }; #endif // !defined(AFX_AVICAPTURE_H__703E89CE_2A4E_4DD7_8B80_8AF78597D8B8__INCLUDED_)