AVIDump.h 702 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright 2008 Dolphin Emulator Project
  2. // Licensed under GPLv2+
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #ifdef _WIN32
  6. #include <windows.h>
  7. #else
  8. #include <stdint.h>
  9. #endif
  10. #include "Common/CommonTypes.h"
  11. class AVIDump
  12. {
  13. private:
  14. static bool CreateFile();
  15. static void CloseFile();
  16. static void SetBitmapFormat();
  17. static bool SetCompressionOptions();
  18. static bool SetVideoFormat();
  19. static void StoreFrame(const void* data);
  20. static void* GetFrame();
  21. public:
  22. #ifdef _WIN32
  23. static bool Start(HWND hWnd, int w, int h);
  24. #else
  25. static bool Start(int w, int h);
  26. #endif
  27. static void AddFrame(const u8* data, int width, int height);
  28. static void Stop();
  29. static void DoState();
  30. };