MandelVideoGenerator.h 778 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef MANDELVIDEOGENERATOR_H
  2. #define MANDELVIDEOGENERATOR_H
  3. #include "Mandel.h"
  4. #include "Gradient.h"
  5. #include "Bitmap.h"
  6. struct ExportVideoInfo
  7. {
  8. mnd::MandelViewport start;
  9. mnd::MandelViewport end;
  10. Gradient gradient;
  11. int width;
  12. int height;
  13. int maxIterations;
  14. int fps;
  15. double zoomSpeed;
  16. std::string path;
  17. /// bitrate in kbps
  18. int bitrate;
  19. std::string preset;
  20. };
  21. class MandelVideoGenerator
  22. {
  23. const ExportVideoInfo evi;
  24. public:
  25. MandelVideoGenerator(const ExportVideoInfo& evi);
  26. void generate(void);
  27. private:
  28. Bitmap<RGBColor> overlay(const Bitmap<RGBColor>& outer,
  29. const Bitmap<RGBColor>& inner,
  30. double scale);
  31. };
  32. #endif // MANDELVIDEOGENERATOR_H