| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #ifndef _Video_h_
- #define _Video_h_
- #include "ExtendedImage.h"
- #include <vector>
- class Video
- {
- public:
- Video();
- virtual ~Video();
- unsigned long GetWidth();
- unsigned long GetHeight();
- void SetSize( unsigned long width, unsigned long height );
- void SetResolution( double resX, double resY );
- double GetResolutionX() { return m_resX; }
- double GetResolutionY() { return m_resY; }
- ExtendedImage* GetFrame( unsigned int i = 0 );
- #if defined( WIN32 ) && !defined( IMT_DLL ) && !defined( PLAQUE_DLL )
- HBITMAP GetFrameBitmap( unsigned int i = 0 );
- #else
- char* GetFrameBitmap( unsigned int i = 0 );
- #endif
- unsigned int GetFrameCount();
- void AddFrame( unsigned char* data, bool isMonochrome );
- void EraseFirstFrame();
- bool IsNull();
- void Clear();
- private:
- unsigned long m_width;
- unsigned long m_height;
- #if defined( WIN32 ) && !defined( IMT_DLL ) && !defined( PLAQUE_DLL )
- unsigned long m_deltaW;
- unsigned long m_deltaH;
- #endif
- double m_resX;
- double m_resY;
- std::vector< ExtendedImage* > m_frames;
- };
- #endif
|