Video.h 898 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef _Video_h_
  2. #define _Video_h_
  3. #include "../Container/extendedimage.h"
  4. #include <vector>
  5. class Video
  6. {
  7. public:
  8. Video();
  9. virtual ~Video();
  10. unsigned long GetWidth();
  11. unsigned long GetHeight();
  12. void SetSize( unsigned long width, unsigned long height );
  13. void SetResolution( double resX, double resY );
  14. double GetResolutionX() { return m_resX; }
  15. double GetResolutionY() { return m_resY; }
  16. ExtendedImage* GetFrame( unsigned int i = 0 );
  17. char* GetFrameBitmap( unsigned int i = 0 );
  18. unsigned int GetFrameCount();
  19. void AddFrame( unsigned char* data, bool isMonochrome );
  20. void EraseFirstFrame();
  21. bool IsNull();
  22. void Clear();
  23. private:
  24. unsigned long m_width;
  25. unsigned long m_height;
  26. double m_resX;
  27. double m_resY;
  28. std::vector< ExtendedImage* > m_frames;
  29. };
  30. #endif