Copie de Video.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef _Video_h_
  2. #define _Video_h_
  3. #include "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. #if defined( WIN32 ) && !defined( IMT_DLL )
  18. HBITMAP GetFrameBitmap( unsigned int i = 0 );
  19. #else
  20. char* GetFrameBitmap( unsigned int i = 0 );
  21. #endif
  22. unsigned int GetFrameCount();
  23. void AddFrame( unsigned char* data, bool isMonochrome );
  24. void EraseFirstFrame();
  25. bool IsNull();
  26. void Clear();
  27. private:
  28. unsigned long m_width;
  29. unsigned long m_height;
  30. #if defined( WIN32 ) && !defined( IMT_DLL )
  31. unsigned long m_deltaW;
  32. unsigned long m_deltaH;
  33. #endif
  34. double m_resX;
  35. double m_resY;
  36. std::vector< ExtendedImage* > m_frames;
  37. };
  38. #endif